ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From D Sledge <valen...@yahoo.com>
Subject Problem Manipulating a Jar File
Date Tue, 01 Mar 2005 20:33:17 GMT
First the basics:

Ant  v1.6.2
JRE  v1.4.2_01
OS   Windows XP

Next the build file:

<project name="jits" default="clean" basedir=".">
  <target name="sign">
    <signjar jar="some.jar" keystore=".keystore"
        alias="alias" storepass="storepass" keypass="keypass"/>
  </target>

  <!-- Clean up crew -->
  <target name="clean">
    <delete>
      <fileset dir="${basedir}" includes="some.jar"/>
    </delete>
  </target>
</project>

Now, the problem:  I get an error anytime I try to manipulate the file "some.jar".  When I
run the
signjar task, I get the following output:

sign:
  [signjar] Signing JAR: C:\path\to\some.jar
  [signjar] jarsigner: attempt to rename C:\path\to\some.jar to C:\path\to\some.jar.orig failed

BUILD FAILED
C:\path\to\build.xml:7: exec returned: 1

And, when I run the delete task, I get the following:

clean:
   [delete] Deleting 1 files from C:\path\to

BUILD FAILED
C:\path\to\build.xml:12: Unable to delete file C:\path\to\some.jar




	
		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we. 
http://promotions.yahoo.com/new_mail

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


Mime
View raw message