ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From D Sledge <>
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"/>

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

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:

  [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

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

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

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

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.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message