Fork me on GitHub
#boot
<
2019-04-02
>
alexyakushev09:04:33

Is there a way to add a directory to classpath so that the top-level path is retained? E.g., I want to add res/ to :resource-paths, so that on the classpath the files are accessible as res/foo/bar..., not foo/bar....

flyboarder17:04:06

@alexyakushev no, you would need to nest your folders one more level to do that

alexyakushev17:04:13

Perhaps, there is a hack to do that using sift magic?

alexyakushev17:04:33

I need to add a bunch of dirs that are top-level in the project, and putting them in another folder would break a lot of conventions

dave17:04:35

i wonder if symlinks could help?

dave17:04:44

no idea how well boot handles those

flyboarder20:04:34

@dave simlinks have issues, there is an untested patch

flyboarder20:04:07

@alexyakushev you could use sift task and move the files around

flyboarder20:04:53

Although I wonder how moving the files down one folder would break conventions, is there something else this would affect?

mobileink22:04:29

@alexyakushev sift is definitely your friend.