Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Updating a class file inside a EJB Project or a WAR file inside an EAR

 
Moha Shaf
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to be able to update / add a new class file inside a jar/war inside a ear file. Is there a way to do this using jar utility or using ant. This is because it takes time to FTP the ear from teh build server to the deployment server.
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use the JAR utility to do this yes (jar -u), but I'd suggest it's not recommended (it's all to easy to make errors).
 
Moha Shaf
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply. If i want to update a class file within a .war which is inside a .ear file , then i need to extract the .war and update the class file in it and then update then updated war file into the .ear file. This is a three step process.
Is there a direct way to do this (one step process) i.e. update the class file directly inside the .war file (which is inside .ear file) without having to extract it to a temporary folder and update it?
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not that I'm aware of no.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic