• Post Reply Bookmark Topic Watch Topic
  • New Topic

Automatically add entry to manifest file  RSS feed

 
Fred Victa
Ranch Hand
Posts: 206
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an application that should have this line of text in the manifest file: Main-Class: com.project.images.admin.StartupMyProject

When I build a jar file, how would I ensure that the above line of text is automating added to the manifest file? I don't want to keep adding a line of text to the manifest file everything I build the jar file.
 
Stefan Evans
Bartender
Posts: 1837
10
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like a job for ant or maven.
How are you building your jar file and Manifest right now?


 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!