You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bo...@locus.apache.org on 2000/08/01 12:26:01 UTC

cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Java.java

bodewig     00/08/01 03:25:59

  Modified:    docs     index.html
               src/main/org/apache/tools/ant/taskdefs Java.java
  Log:
  Added maxmemory attribute to <java>.
  
  Revision  Changes    Path
  1.61      +7 -0      jakarta-ant/docs/index.html
  
  Index: index.html
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/docs/index.html,v
  retrieving revision 1.60
  retrieving revision 1.61
  diff -u -r1.60 -r1.61
  --- index.html	2000/07/31 16:21:50	1.60
  +++ index.html	2000/08/01 10:25:54	1.61
  @@ -1673,6 +1673,13 @@
       <td align="center" valign="top">No</td>
     </tr>
     <tr>
  +    <td valign="top">maxmemory</td>
  +    <td valign="top">Max amount of memory to allocate to the forked VM
  +      (ignored if fork is disabled)</td>
  +    <td align="center" valign="top">all</td>
  +    <td align="center" valign="top">No</td>
  +  </tr>
  +  <tr>
       <td valign="top">failonerror</td>
       <td valign="top">Stop the buildprocess if the command exits with a
         returncode other than 0. Only available if fork is true.</td>
  
  
  
  1.15      +11 -0     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.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- Java.java	2000/07/31 12:32:02	1.14
  +++ Java.java	2000/08/01 10:25:58	1.15
  @@ -201,6 +201,17 @@
       }
   
       /**
  +     * -mx or -Xmx depending on VM version
  +     */
  +    public void setMaxmemory(String max){
  +        if (Project.getJavaVersion().startsWith("1.1")) {
  +            createJvmarg().setValue("-mx"+max);
  +        } else {
  +            createJvmarg().setValue("-Xmx"+max);
  +        }
  +    }
  +
  +    /**
        * Executes the given classname with the given arguments as it
        * was a command line application.
        */