ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs GenerateKey.java
Date Thu, 21 Feb 2002 07:08:11 GMT
stevel      02/02/20 23:08:11

  Modified:    src/main/org/apache/tools/ant/taskdefs GenerateKey.java
  Log:
  bug Id 6601; deprecation warning.
  
  Revision  Changes    Path
  1.9       +4 -2      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/GenerateKey.java
  
  Index: GenerateKey.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/GenerateKey.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- GenerateKey.java	26 Jan 2002 19:13:12 -0000	1.8
  +++ GenerateKey.java	21 Feb 2002 07:08:11 -0000	1.9
  @@ -256,7 +256,7 @@
   
           final StringBuffer sb = new StringBuffer();
   
  -        sb.append("keytool -genkey ");
  +        sb.append("-genkey ");
   
           if (verbose) {
               sb.append("-v ");
  @@ -332,7 +332,9 @@
   
           log("Generating Key for " + alias );
           final ExecTask cmd = (ExecTask) project.createTask("exec");
  -        cmd.setCommand(new Commandline(sb.toString()));
  +        cmd.setExecutable("keytool");
  +        Commandline.Argument arg=cmd.createArg();
  +        arg.setLine(sb.toString());
           cmd.setFailonerror(true);
           cmd.setTaskName( getTaskName() );
           cmd.execute();
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message