• Post Reply Bookmark Topic Watch Topic
  • New Topic

resources/file.properties not apparent in .jar, but code that depends on it still works?  RSS feed

 
Iarla O'Riada
Ranch Hand
Posts: 87
Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have this code in the constructor of a class in the .jar:


The code responds to the contents of the properties file as I have created it before build. But when I open the jar and browse it, there is no properties file. What happens to it at build time?
 
sai rama krishna
Ranch Hand
Posts: 524
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you please post your property file?
 
Iarla O'Riada
Ranch Hand
Posts: 87
Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have replaced some values that may be sensitive data with (...):
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!