DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29764>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29764

genkey fails when the jre bin directory is not in the path

           Summary: genkey fails when the jre bin directory is not in the
                    path
           Product: Ant
           Version: 1.1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


the following exception will be displayed:

Execute failed: java.io.IOException: java.io.IOException: keytool: not found

the solution is to use JavaEnvUtils like so (in GenerateKey.java):
<         cmd.setExecutable(JavaEnvUtils.getJdkExecutable("keytool"));
instead of ---
>         cmd.setExecutable("keytool");

Note (seperate bug i haven't really played with much):  it seems like genkey has
issues when passed param values with spaces (i'm not sure if this is valid)
<genkey ...>
  <dname>
     <param name="CN" value="nospaces"/>
     <param name="OU" value="this will fail because of spaces"/>
     ...
  </dname>
</genkey>

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

Reply via email to