ant-user mailing list archives

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

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
too...
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.
 Example:
 If you have a file called Manifest.mf
 which looks like this:

   Manifest-Version: 1.1
   Package-Version: 2.1
   ...............etc

 and now you run

   <SetManifestProperty filename="Manifest.mf" property="Package-Version"
value="NIGHTLY"/>

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

 <<SetManifestProperty.java>> 

-Aarti 

Mime
View raw message