On Thu, 17 Mar 2005, THUFIR HAWAT <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to