You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "David Colton (ext. 799)" <Da...@fineos.com> on 2002/06/14 15:58:00 UTC

Help: not behaving

Ant Version 1.5 Beta1 and Beta2 (I too far gone to revert to 1.4.1)
OS WinNT
JDK 1.3.1_02

When I execute this task from within my main buildfile ...

<signjar	keystore="${key.store}" keypass="${key.pass}"
storepass="${store.pass}"
	 	alias="Ta"
	 	verbose="true">

	<fileset dir=".">
		<include name="Ta.jar"/>
	</fileset>

</signjar>

I get this error (I have also tried it without the fileset !)
  ...
  [signjar]   signing: com/fineos/ta/util/XmlUtils.class
  [signjar] jarsigner: attempt to rename
E:\builds\java\install\classes\Ta.jar to
E:\builds\java\install\classes\Ta.jar.orig failed

BUILD FAILED
E:\builds\ant\package.xml:510: exec returned: 1

The funny this is that should be working on Ta.jar.sig not Ta.jar.orig
(there is no .orig file in the directory). Also, <signjar> successfully
signs all my other, 10, jars)

Yet if I extract this exact same task out to a simple test build.xml it
works fine.

Any suggestions.

Thanks.

David Colton
Production Team Lead (Technical Architecture)



**************************************************************************
The information contained in this e-mail is confidential,
may be privileged and is intended only for the use of the
recipient named above. If you are not the intended
recipient or a representative of the intended recipient,
you have received this e-mail in error and must not copy,
use or disclose the contents of this email to anybody
else. If you have received this e-mail in error, please
notify the sender immediately by return e-mail and
permanently delete the copy you received. This email has
been swept for computer viruses. However, you should
carry out your own virus checks.


Registered in Ireland, No. 205721. http://www.FINEOS.com
**************************************************************************


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Help: not behaving

Posted by Stefan Bodewig <bo...@apache.org>.
On Fri, 14 Jun 2002, David Colton <Da...@fineos.com> wrote:

>   [signjar] jarsigner: attempt to rename
> E:\builds\java\install\classes\Ta.jar to
> E:\builds\java\install\classes\Ta.jar.orig failed
> 

> The funny this is that should be working on Ta.jar.sig not
> Ta.jar.orig (there is no .orig file in the directory).

Of course there isn't.  Ant tries to rename Ta.jar to Ta.jar.orig to
sign this one and create a new Ta.jar.  I guess your Ta.jar is locked
and so Ant cannot move it.

> Yet if I extract this exact same task out to a simple test build.xml
> it works fine.

Wild guess: Ta.jar is on the classpath of the VM running Ant in your
normal build process, but not in your simple test file.  It is not
possible to rename a JAR that is in the CLASSPATH or (for example) in
the <classpath> of a <javac> task that has been run - the JVM will
lock it.

If <javac> is the problem, you can try to fork it.

Stefan

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>