Hello! I'm new to Boot and probably a lot of the answers to this issue is already in the Wiki, but I'm writing it here just in case and I'll read the docs afterwards.
Problem Description
I am trying to use Java's ClassLoader/getResources to find all the resource files with a given name in the classpath.
the result is 1 instead of the expected 2. I believe because Boot seems to merge all the resource-path files into a single temp directory:
Also, I see that if the paths are stored in a set, the sense of ordering (which I use to shadow files) is lost right? so that would break any assumptions I have on the order of the classpath?
Steps to reproduce
Create two directories each containing a file named the same
Add those directories to the classpath
Run Boot REPL with that classpath an try using Java's ClassLoader/getResources to find all the instances of that filename in the classpath
Platform details
Platform (macOS, Linux, Windows): macOS
Platform version: macOS High Sierra Version 10.13.3
JRE/JDK version (java -version): java version "1.8.0_152"
Boot details
Boot version (2.7.1): 2.7.2
build.boot present? (yes/no): yes
~/.boot/profile present? (yes/no): no
Task name? (if applicable): Custom task dev
Please also provide the contents of build.boot and ~/.boot/profile (if applicable).
Hello! I'm new to Boot and probably a lot of the answers to this issue is already in the Wiki, but I'm writing it here just in case and I'll read the docs afterwards.
Problem Description
I am trying to use Java's ClassLoader/getResources to find all the resource files with a given name in the classpath.
I have the current task:
where both,
dev-resources
andtest-resources
contain a file namedconfig.edn
.When I boot the REPL with
boot dev
I have that:but when I execute:
the result is 1 instead of the expected 2. I believe because Boot seems to merge all the resource-path files into a single temp directory:
Also, I see that if the paths are stored in a set, the sense of ordering (which I use to shadow files) is lost right? so that would break any assumptions I have on the order of the classpath?
Steps to reproduce
Platform details
Platform (macOS, Linux, Windows): macOS Platform version: macOS High Sierra Version 10.13.3 JRE/JDK version (
java -version
): java version "1.8.0_152"Boot details
Boot version (2.7.1): 2.7.2
build.boot
present? (yes/no): yes~/.boot/profile
present? (yes/no): no Task name? (if applicable): Custom taskdev
Please also provide the contents of
build.boot
and~/.boot/profile
(if applicable).