You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by D Sledge <va...@yahoo.com> on 2005/03/01 22:29:38 UTC

Problem Manipulating a Jar File -- P.S.

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 <va...@yahoo.com> 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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Problem Manipulating a Jar File -- P.S.

Posted by "Alexey N. Solofnenko" <A....@mdl.com>.
It can be used by some process (maybe by ANT itself - there was a 
discussion that it can load all jar files in the current directory). 
Trying creating it in a different folder.

- Alexey.

D Sledge wrote:

>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
>
>  
>

-- 
------------------------------------------------------------------------
/ Alexey N. Solofnenko
home: http://trelony.cjb.net/
/

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