On Monday July 17, 2006 17:06, Bala Paranj <[EMAIL PROTECTED]> wrote:
> I am using the following ant section to generate the manifest file
> so that I can run the program by using the generated jar file.
>
>       <target name="compress" description="Compression target"
> depends="compile">
>
>               <jar destfile="${output}/MyClient.jar" basedir="${output}">
>                       <include name="**/*.*" />
>
>                       <manifest file="${output}/MANIFEST.MF">

[snip]

> I am getting the following error message when I run the ant script.
>
> C:\Java\AntBuildProject\ Class
> org.apache.tools.ant.taskdefs.Manifest doesn't support the "file"
> attribute.
>
> How can I fix this? TIA.

Delete the file attribute, you don't need it.

When the manifest task is used as a nested element of the Jar task, 
the "file" and "mode" attributes must be removed as the location and 
name of a manifest file in a jar file is fixed and cannot be changed, 
so you don't need to specify the output location.

- Rob

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to