| Author |
Updating a class file inside a EJB Project or a WAR file inside an EAR
|
Moha Shaf
Ranch Hand
Joined: Aug 30, 2008
Posts: 30
|
|
|
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
Joined: Jun 24, 2003
Posts: 3268
|
|
|
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).
|
Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
|
 |
Moha Shaf
Ranch Hand
Joined: Aug 30, 2008
Posts: 30
|
|
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
Joined: Jun 24, 2003
Posts: 3268
|
|
|
Not that I'm aware of no.
|
 |
 |
|
|
subject: Updating a class file inside a EJB Project or a WAR file inside an EAR
|
|
|