ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@locus.apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Java.java
Date Wed, 29 Mar 2000 17:13:32 GMT
rubys       00/03/29 09:13:32

  Modified:    docs     index.html
               src/main/org/apache/tools/ant/taskdefs Java.java
  Log:
  Allow java classes to be called with no arguments
  PR: 133
  
  Revision  Changes    Path
  1.17      +3 -3      jakarta-ant/docs/index.html
  
  Index: index.html
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/docs/index.html,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- index.html	2000/03/27 00:46:34	1.16
  +++ index.html	2000/03/29 17:13:31	1.17
  @@ -532,7 +532,7 @@
       <td valign="top" align="center">Yes</td>
     </tr>
     <tr>
  -    <td valign="top">class</td>
  +    <td valign="top">classname</td>
       <td valign="top">the class to look for in classpath.</td>
       <td valign="middle" align="center" rowspan="3">Yes</td>
     </tr>
  @@ -1211,7 +1211,7 @@
       <td align="center" valign="top"><b>Required</b></td>
     </tr>
     <tr>
  -    <td valign="top">class</td>
  +    <td valign="top">classname</td>
       <td valign="top">the Java class to execute.</td>
       <td align="center" valign="top">Yes</td>
     </tr>
  @@ -1854,7 +1854,7 @@
       <td valign="top" align="center">Yes</td>
     </tr>
     <tr>
  -    <td valign="top">class</td>
  +    <td valign="top">classname</td>
       <td valign="top">the class for which to run <code>rmic</code>.</td>
       <td valign="top" align="center">Yes</td>
     </tr>
  
  
  
  1.6       +3 -1      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Java.java
  
  Index: Java.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Java.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- Java.java	2000/02/16 14:31:45	1.5
  +++ Java.java	2000/03/29 17:13:31	1.6
  @@ -80,7 +80,7 @@
           project.log("Calling " + classname, "java", project.MSG_VERBOSE);
   
           if (classname == null) {
  -            throw new BuildException("Class name must not be null.");
  +            throw new BuildException("Classname must not be null.");
           }
   
           if (fork) {
  @@ -187,6 +187,8 @@
        */
       protected Vector tokenize(String args) {
           Vector v = new Vector();
  +        if (args == null) return v;
  +
           StringTokenizer t = new StringTokenizer(args, " ");
           
           while (t.hasMoreTokens()) {
  
  
  

Mime
View raw message