ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aarti Chandnani <>
Subject SetManifestProperty Task
Date Thu, 03 May 2001 17:35:10 GMT

I have written a task called SetManifestProperty.
I thought I will pass it on, and anyone who needs it can use it!

This is something what i needed, I wonder if anyone out there needs it
Anyways what this task does is:

It is used to set the attribute value of an entry in the Manifest file.
 there are 3 attributes:
 viz filename,property & value
 All attributes are required.
 If you have a file called
 which looks like this:

   Manifest-Version: 1.1
   Package-Version: 2.1

 and now you run

   <SetManifestProperty filename="" property="Package-Version"

   the result will be
   Manifest-Version: 1.1
   Package-Version: NIGHTLY
 Thus you can change any value of any entry in the Manifest file and then
use it to make your jar! 



View raw message