Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WAR file update through program

 
L Goundalkar
Ranch Hand
Posts: 395
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can I update WAR file, by adding or replacing new files into it through J2SE API.? If so which API I need to use?
Cheers.
 
Peter Storch
Ranch Hand
Posts: 74
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would use ANTs war task to work with war files programatically. But I don't know if it is able to just update an existing war file.
But it recognises if a war has to be recreated while checking the dependend files.
 
Karthik Guru
Ranch Hand
Posts: 1209
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i think setting update flag to "true" when using the war task s'd do the job.
i mean
<war update="true"
....
</war>
u can try it anyways.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can I update WAR file, by adding or replacing new files into it through J2SE API.? If so which API I need to use?

java.util.jar
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic