Better is to use the genkey task of ANT. 

I prefer argument instead of argline, but then you have to set every single 
word.

Instead of              <arg value="-keystore ${keystore_name}" />
write
 <arg value="-keystore" />
 <arg value="${keystore_name}" />



-- 
Jürgen Knuplesch                    www.icongmbh.de
icon Systemhaus GmbH                Tel. +49 711 806098-275
Sophienstraße 40                    
D-70178 Stuttgart                   Fax. +49 711 806098-299

Geschäftsführer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121 
-----Ursprüngliche Nachricht-----
Von: supareno [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 16. Oktober 2007 15:59
An: Ant Users List
Betreff: keytool with ant

hi guys,

i tried this with and under ubuntu 7.04 with a jdk 1.5 and eclipse...

...
<!--
command line:
keytool -genkey -alias <alias> -keystore <certifname> -keypass "<keypass>" 
-dname "<dname>" -storepass "<storepass>"
-->
<target name="keytoolexec" depends="jarfile">
   <exec dir="." executable="keytool" os="Linux" failonerror="true">
             <arg value="-genkey "/>
             <arg value="-alias ${alias} />
             <arg value="-keystore ${keystore_name}" />
             <arg value="-keypass ${keypass}" />
             <arg value="-dname ${dname}" />
             <arg value="-storepass ${storepass}" />           
  </exec>
</target>
...

the command line works well but with ant it fails !!
the error is the "-alias" argument...
i tried with:

...
<arg value="-genkey  -alias ${alias} -keystore ${keystore_name} -keypass 
${keypass} -dname ${dname} -storepass ${storepass}" /> ...
and it fails again :-(

did anybody try this and did it without error??

frederic

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


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

Reply via email to