Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ear / jar build question...  RSS feed

 
Sam Smoot
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, not sure if this goes here, but..
I have a process that will create .jar files from specific folders in my development space to go to production. When building the .ear, I want to bundle all the .jar's from production then overlay the production .jar with my version of the updated .jar. Is this as simple as loading the production versions then adding the new .jar (same name) afterwards in the .ear build process?
Thanks...
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you don't need to modify the deployment descriptors or manifest files (i.e. there is an older version of the .jar file), that's exactly how simple it is. Just add your latest version to the .ear file and it will replace the existing .jar file within the .ear file.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!