This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

modifying an existing jar file using ant

 
gaurav abbi
Ranch Hand
Posts: 108
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
can we modify an existing jar file with ant.
is there any ant task available for this.
modifications is like adding a class file to a jar.
 
karthikeyan Chockalingam
Ranch Hand
Posts: 259
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can again create the jar file. It will override the existing jar file with the new class added.

I have not tried this but there is an update attribute in the jar task
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, the update attribute should do the trick. Keep in mind that it can be quite slow with big jar files.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic