Just a little more info on the problem; ant has no problem reading the file or 
creating
some.jar.sig from it, so I checked the permissions on the file and made sure I 
had read and write
permissions on the file.  Any light that can be shed on the problem would be 
appreciated.

Thanks,

D Sledge

--- D Sledge <[EMAIL PROTECTED]> wrote:

> 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 - 250MB free storage. Do more. Manage less. 
http://info.mail.yahoo.com/mail_250

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

Reply via email to