Menu

Option to set Ant Task VM Size

b1alpha
2007-03-30
2013-04-25
  • b1alpha

    b1alpha - 2007-03-30

    Regarding: setting ant task vm size options through the build.xml.

    At this documentation for using build.xml >> http://jameleon.sourceforge.net/antTasks.html#Test_Case_Execution_Separate_VM_Task thre is some missing abilities that we would greatly appreciate.

    That is, the Class, "net.sf.jameleon.ant.ExecuteTestCaseSeparateVMTask" options to set;

      void     setJvmargs(String s)

    And it would be nice to have this option built into the build.xml ability.
    >>http://jameleon.sourceforge.net/antTasks.html#Test_Case_Execution_Separate_VM_Task

     
    • b1alpha

      b1alpha - 2007-03-30

      Ok although deprecated this works;

      <jmln-test-vm classpathref="classpath" fork="true"
      separateVmPerScript="true"
      Jvmargs="-Xms128m -Xmx256m">

       
      • Stephane Elie

        Stephane Elie - 2007-03-31

        I think you can also use:
            /**
             * Corresponds to -mx or -Xmx depending on VM version.
             */
            public void setMaxmemory(String max){
                cmdl.setMaxmemory(max);
            }

        like:

        <jmln-test-vm classpathref="classpath" fork="true"
        separateVmPerScript="true"
        Maxmemory="256m">

         
    • b1alpha

      b1alpha - 2007-04-02

      OK thanks

       

Log in to post a comment.