Posts Tagged ‘ant manifest.mf file’
Create MANIFEST.MF file using ANT script
October 15, 2011
Leave a comment
Here I have give the ANT script snippet to create MANIFEST.MF file in jar
<target name="jar" depends="compile"> <jar destfile="${dist}/MyApplication.jar" basedir="${build}"> <manifest file="MANIFEST.MF"> <attribute name="Built-By" value="${user.name}"/> <section name="common"> <attribute name="Specification-Title" value="MyApplictaion"/> <attribute name="Specification-Version" value="${version}"/> <attribute name="Specification-Vendor" value="Sample Org."/> <attribute name="Implementation-Title" value="CustomerUtility"/> <attribute name="Implementation-Version" value="${version} ${TODAY}"/> <attribute name="Implementation-Vendor" value="Sample Corp."/> <attribute name="Class-Path" value="./lib/jasper.jar ./lib/servlet-api.jar" /> </section> </manifest> </jar> </target>