Apologies for my confused thinking. I'm learning all the time. My original
thought was correct. I need the image directory in the root of the jar. This is
how I got rid of the error 43/45. Please let me know if there is a better way :
<target name="dist" depends="compile">
<jar jarfile="${dist}/MyApplet.jar" basedir="${build}">
<exclude name="*.bat"/>
<exclude name="*.html"/>
<fileset dir=".">
<include name="**/image/**"/>
</fileset>
</jar>
</target>
Thanks, Tom.
-----Original Message-----
From: Tom Corcoran [mailto:[EMAIL PROTECTED]
Sent: 15 November 2006 11:00
To: Ant Users List
Subject: RE: Error 43 if jar already exists?
Sorry, I think I now need the images directory to be packaged in the jar under
the com/trilogycomms directory but the source stays the same. I can't figure
out how to effect the location within the jar. Is this possible?
Thanks,
Tom.
-----Original Message-----
From: Tom Corcoran [mailto:[EMAIL PROTECTED]
Sent: 15 November 2006 09:54
To: Ant Users List
Subject: RE: Error 43 if jar already exists?
Sounds like not be doing this the right way? The below has the effect of
packaging the whole directory <image>, which is at the same level as <classes>,
shoes contents I want in the jar (not the directory classes).
Is there a better way to do it?
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 14 November 2006 18:51
To: [email protected]
Subject: AW: Error 43 if jar already exists?
What is with
<jar jarfile="${dist}/ MyApplet.jar" basedir="." update="True">
<include name="**/image/*.*" />
<include name="${build}/" />
</jar>
Jan
>-----Ursprüngliche Nachricht-----
>Von: Tom Corcoran [mailto:[EMAIL PROTECTED]
>Gesendet: Dienstag, 14. November 2006 19:34
>An: Ant Users List
>Betreff: Error 43 if jar already exists?
>
>I am building a jar including my <classes> directory. I need
>to roll up the content of another directory, <image> which is
>at the same level as <classes> and include the directory name
>in the jar.
>
>
>
> <property name="build" location="classes"/>
>
> <property name="dist" location="jar"/>
>
> <property name="image" location="image"/>
>
>
>
><target name="dist" depends="compile"
>
> description="generate the distribution" >
>
> <jar jarfile="${dist}/MyApplet.jar" basedir="${build}">
>
> </jar>
>
>
>
> <jar jarfile="${dist}/ MyApplet.jar" basedir="." update="True">
>
> <include name="**/image/*.*"/>
>
> </jar>
>
> </target>
>
>
>
>This works if the jar does not already exist but if it does I
>get a weird error : 43 unable to rename old file (my jar) to
>temporary file.
>How do I get around this? Or perhaps there is a better way of
>doing my build. Note, basedir="." Contains lots of other
>directories I do not need in the build.
>
>
>
>Thanks,
>
>
>
>Tom.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]