Title: SetManifestProperty Task

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

SetManifestProperty.java

Reply via email to