ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Error 43 if jar already exists?
Date Tue, 14 Nov 2006 18:51:16 GMT
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:Tom.Corcoran@trilogycomms.com] 
>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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message