I want to set a property in a .properties
file. It should reference another package or project. I am using spring / spring boot
For example:
some_file: ${another_package_name}/src/main/resources/some_file.txt
Where you say ${another_package_name} that is where the project would be for a gradle or maven project so I'm going to assume you are attempting to cross reference resources between projects.
The location of
${another_package_name}/src/main/resources/some_file.txt
could also be called
classpath:some_file.txt
So then you would just need to make sure that both projects are on the classpath and then some_file.txt should be available to the project as a whole.
Reference
http://docs.spring.io/autorepo/docs/spring/3.2.x/spring-framework-reference/html/resources.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With