You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Edson Alves Pereira <Ca...@netscape.net> on 2001/09/07 23:23:31 UTC

GenKey Erro with ExecTask.setCommand( )

I've just trying to use ANT with my little project, i needed to build a signed jar file with a key. I receive this message:

C:\teste\xlib_site>ant
Buildfile: build.xml

init:

compilar_classes_base:

montar_biblioteca_xlib:
      [jar] Building jar: C:\teste\xlib_site\web\bin\xlib.jar

criar_chave_biblioteca:
   [genkey] Generating Key for edson
     [exec] The command attribute is deprecated. Please use the executable attri
bute and nested arg elements.
   [genkey] keytool error: java.io.IOException: Incorrect AVA format

BUILD FAILED

exec returned: 1

 The version is:
Ant version 1.4Beta2 compiled on August 20 2001

  The part of my build.xml that invokes <genkey>:
  <target name="criar_chave_biblioteca"
      depends="montar_biblioteca_xlib">
    <genkey alias="${apelido}"
        storepass="${arq_password}"
        keystore="${bin}/bin/${nome_arq_chave}"
        keypass="${chave_password}"
        dname="${dname}">
    </genkey>
  </target>

  I'm looking for this bug now, but is it really a bug?

  With best wishes,
  Edson Alves Pereira
-- 
////////////////////////////////////////
Well done is better than well said 
////////////////////////////////////////



__________________________________________________________________
Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/


Re: GenKey Erro with ExecTask.setCommand( )

Posted by Peter Donald <do...@apache.org>.
On Sat, 8 Sep 2001 07:23, Edson Alves Pereira wrote:
> I've just trying to use ANT with my little project, i needed to build a
> signed jar file with a key. I receive this message:
>
> C:\teste\xlib_site>ant
> Buildfile: build.xml
>
> init:
>
> compilar_classes_base:
>
> montar_biblioteca_xlib:
>       [jar] Building jar: C:\teste\xlib_site\web\bin\xlib.jar
>
> criar_chave_biblioteca:
>    [genkey] Generating Key for edson
>      [exec] The command attribute is deprecated. Please use the executable
> attri bute and nested arg elements.
>    [genkey] keytool error: java.io.IOException: Incorrect AVA format

Try running ant in debug mode. It will output the line that it actually runs 
and try putting that on commandline to see if it works for you then.

-- 
Cheers,

Pete

---------------------------------------
Be nice to your friends. If it weren't 
for them, you'd be a complete stranger.
---------------------------------------