• Post Reply Bookmark Topic Watch Topic
  • New Topic

How can i set jar file with version number or info  RSS feed

 
Meir Yan
Ranch Hand
Posts: 599
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all

is there any way to include in jar file the option to get information about the jar file

when doing some thing like MyApp.jar -version and it will print me some info i predefined?

not programmatically

Thanks
 
gaurav abbi
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
for ZipOutPutStream class
there is setComment() method, but not very sure anything apart from programming level.
otherwise jar -tvf can be used to extract information
and while creating a jar we can also specify the META-INF file ,
may be there you can write something using -m option
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!