sample:
<jar destfile="test.jar" basedir=".">
<include name="build"/>
<manifest>
<attribute name="Built-By" value="${user.name}"/>
<section name="common/class1.class">
<attribute name="Sealed" value="false"/>
</section>
</manifest>
</jar>
from
<http://ant.apache.org/manual/CoreTasks/jar.html>
sample:
<manifest file="MANIFEST.MF">
<attribute name="Built-By" value="${user.name}"/>
<section name="common">
<attribute name="Specification-Title"
value="Example"/>
<attribute name="Specification-Version"
value="${version}"/>
<attribute name="Specification-Vendor"
value="Example Organization"/>
<attribute name="Implementation-Title"
value="common"/>
<attribute name="Implementation-Version"
value="${version} ${TODAY}"/>
<attribute name="Implementation-Vendor"
value="Example Corp."/>
</section>
<section name="common/class1.class">
<attribute name="Sealed" value="false"/>
</section>
</manifest>
from
<http://ant.apache.org/manual/CoreTasks/manifest.html>
but, how do you put these together into a target?
<target name="package" depends="compile">
<jar destfile="test.jar" basedir=".">
<include name="build"/>
<manifest file="MANIFEST.MF">
<attribute name="Built-By" value="${user.name}"/>
<section name="common">
<attribute name="Specification-Title" value="Example"/>
<attribute name="Specification-Version" value="${version}"/>
<attribute name="Specification-Vendor" value="Example Organization"/>
<attribute name="Implementation-Title" value="common"/>
<attribute name="Implementation-Version" value="${version} ${TODAY}"/>
<attribute name="Implementation-Vendor" value="Example Corp."/>
</section>
<section name="common/class1.class">
<attribute name="Sealed" value="false"/>
</section>
</manifest>
</jar>
</target>
thanks,
Thufir
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
|