Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Ant SignJar task problem in 1.7.0

Thread Tools

Ant SignJar task problem in 1.7.0

Posts: n/a
We used to have Ant 1.6.x with which we signed our JARs for use with
Webstart. Recently we upgraded to Eclipse 3.3.0 and that comes with
Ant 1.7.0.

Now we discovered that our JARs aren't signed correctly any more.

In the output there now appears a request for the pass phrase for each

[signjar] Signing JAR: C:\projects\nokeos\nokeos.war\client\lib\client
\commons-validator__V1.3.0.jar to C:\projects\nokeos\nokeos.war\client
ommons-validator__V1.3.0.jar as OurAlias
[signjar] Warning: The signer certificate will expire within six
[signjar] Enter Passphrase for keystore:
[signjar] Signing JAR: C:\projects\nokeos\nokeos.war\client\lib
\client\jakarta-oro__V2.0.8.jar to C:\projects\nokeos\nokeos.war\client
-oro__V2.0.8.jar as OurAlias
[signjar] Warning: The signer certificate will expire within six
[signjar] Enter Passphrase for keystore:

These are the targets that work with 1.6.5:

<target name="sign_jars" depends="generate_keystore">
<signjar keystore="keystore" alias="OurAlias" storepass="xyz"
verbose="no" lazy="yes">
<fileset refid="fileset.web.client" />

<target name="generate_keystore" depends="check_keystore"
<genkey alias="OurAlias" storepass="xyz" keystore="keystore">
<param name="CN" value="OurCommonName" />

What's wrong?

Reply With Quote
Andrew Thompson
Posts: n/a
On Oct 18, 9:07 pm, NickDG <(E-Mail Removed)> wrote:
> What's wrong?

Dunno. Been signing Jar's all evening using Ant 1.7.
No problem whatsoever.

You got an SSCCE that replicates this behaviour you

Andrew T.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing ant task name when running a task teggy Java 0 05-29-2007 02:20 PM
Maven using ANT plugin for SCP task : Embedded error: Could not create task or type of type: scp. krabhi Java 1 08-09-2006 04:19 PM
Re: Problem in ant replace task and replaceregexp task to update xml Victor Java 0 09-01-2004 03:58 AM
Ant problem with Exec task Michael Champigny Java 0 10-03-2003 06:01 PM
Re: Problem with ant's javac task z3 Java 0 07-23-2003 06:39 PM