ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: putting it together
Date Thu, 17 Mar 2005 08:40:32 GMT
On Thu, 17 Mar 2005, THUFIR HAWAT <hawat.thufir@gmail.com> wrote:

> but, how do you put these together into a target?

By reading the first paragraph under the headline "manifest" in
<http://ant.apache.org/manual/CoreTasks/jar.html> which says

,----
| This element is identical to the manifest task, but the file and mode
| attributes must be omitted.
`----

and then removing the file attribute from the manifest element in

> <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>

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message