ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: keytool with ant
Date Wed, 17 Oct 2007 06:52:01 GMT
Dont use <arg value>, use <arg line> or two different <arg value>s.
With "line" a blank seperates different values while "value" just passes one and masks all
blanks.
So you didnt get
  keytool
  -alias
  myalias
you got
  keytool
  "-alias myalias"

(you can see that when running Ant in -verbose mode).






Jan

 

>-----Urspr√ľngliche Nachricht-----
>Von: supareno [mailto:reno.rkcrew@free.fr] 
>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: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>

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


Mime
View raw message