ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <co...@m64.com>
Subject RE: [PATCH] SignJar task
Date Sat, 08 Jul 2000 08:27:41 GMT
Peter,

I am trying to commit this patch. Under NT, however, it does not work
because of the single quotes characters that you have used with the
parameters.

     [Exec] jarsigner error: java.lang.RuntimeException: keystore load:
Keystore was tampered with, or password was incorrect

If I change these to a \", it works on NT and Linux (RedHat 6.2) I can make
the change if you think it is OK.

What about usage under JDK 1.1? An exception or a message?

--
Conor MacNeill
Home: conor@m64.com
Work: conor@cortexebusiness.com.au
Web:  www.cortexebusiness.com.au


> -----Original Message-----
> From: Peter Donald [mailto:donaldp@mad.scientist.com]
> Sent: Saturday, 8 July 2000 1:04
> To: ant-dev@jakarta.apache.org
> Subject: [PATCH] SignJar task
>
>
> Hi,
>
> a simple task to sign a jar. Unfortunately my dev machine is *nix
> and where
> I downloaded the cvs tree is dos based so I tried and failed several times
> to get diffs working. As these are simple diffs I will just tell you. (Soz
> about that :P)
>
> put this in properties file for tasks
> ------------------------
> signjar=org.apache.tools.ant.taskdefs.SignJar
> ------------------------
>
> place the following in appropriate place in documentation.
>
> ------------------------
> <hr>
> <h2><a name="signjar">SignJar</a></h2>
> <h3>Description</h3>
> <p>Signs a jar or zip file with the javasign command line tool.</p>
>
> <h3>Parameters</h3>
> <table border="1" cellpadding="2" cellspacing="0">
>   <tr>
>     <td valign="top"><b>Attribute</b></td>
>     <td valign="top"><b>Description</b></td>
>     <td align="center" valign="top"><b>Required</b></td>
>   </tr>
>   <tr>
>     <td valign="top">jar</td>
>     <td valign="top">the jar file to sign</td>
>     <td valign="top" align="center">Yes.</td>
>   </tr>
>   <tr>
>     <td valign="top">alias</td>
>     <td valign="top">the alias to sign under</td>
>     <td valign="top" align="center">Yes.</td>
>   </tr>
>   <tr>
>     <td valign="top">storepass</td>
>     <td valign="top">password for keystore integrity.</td>
>     <td valign="top" align="center">Yes.</td>
>   </tr>
>   <tr>
>     <td valign="top">keystore</td>
>     <td valign="top">keystore location</td>
>     <td valign="top" align="center">No</td>
>   </tr>
>   <tr>
>     <td valign="top">storetype</td>
>     <td valign="top">keystore type</td>
>     <td valign="top" align="center">No</td>
>   </tr>
>   <tr>
>     <td valign="top">keypass</td>
>     <td valign="top">password for private key (if different)</td>
>     <td valign="top" align="center">No</td>
>   </tr>
>   <tr>
>     <td valign="top">sigfile</td>
>     <td valign="top">name of .SF/.DSA file</td>
>     <td valign="top" align="center">No</td>
>   </tr>
>   <tr>
>     <td valign="top">signedjar</td>
>     <td valign="top">name of signed JAR file</td>
>     <td valign="top" align="center">No</td>
>   </tr>
>   <tr>
>     <td valign="top">signedjar</td>
>     <td valign="top">name of signed JAR file</td>
>     <td valign="top" align="center">No</td>
>   </tr>
>   <tr>
>     <td valign="top">verbose</td>
>     <td valign="top">(true|false) verbose output when signing</td>
>     <td valign="top" align="center">No</td>
>   </tr>
>   <tr>
>     <td valign="top">internalsf</td>
>     <td valign="top">(true|false) include the .SF file inside the
> signature
> block</td>
>     <td valign="top" align="center">No</td>
>   </tr>
>   <tr>
>     <td valign="top">sectionsonly</td>
>     <td valign="top">(true|false) don't compute hash of entire
> manifest</td>
>     <td valign="top" align="center">No</td>
>   </tr>
> </table>
> <h3>Examples</h3>
> <blockquote>
>   <p><code>&lt;signjar jar=&quot;${dist}/lib/ant.jar&quot;
> alias=&quot;apache-group&quot; storepass=&quot;secret&quot;
> /&gt;</code></p>
> </blockquote>
> <p>signs the ant.jar with alias &quot;apache-group&quot; accessing the
> keystore and private key via &quot;secret&quot; password.</p>
> <hr>
> ------------------------
>
> And the actual file should be attached.
>


Mime
View raw message