ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From THUFIR HAWAT <hawat.thu...@gmail.com>
Subject putting it together
Date Thu, 17 Mar 2005 08:30:51 GMT
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


Mime
View raw message