file properties is in the main project folder but I want it in the .jar folder

0

I added a properties file to my project, this file is saved in the main folder of the project while the jar is saved in the dist folder. Every time I want to test the jar I have to move the properties file to its folder and every time I compile the solution it is deleted and I have to do it again.

  

Is there a way that every time the properties file is compiled   also be stored in the jar folder?

    
asked by jorge marquez 23.10.2017 в 18:05
source

1 answer

2

You can place the file .properties within the default package of the project, that way the file will be part of your sources and will be available inside the jar.

    
answered by 23.10.2017 / 18:07
source