private Token createVmArgsToken(){
  StringBuilder jvmArgs=new StringBuilder();
  File hotFixJar=new File(jrunContainer.getHome() + "/servers/lib/54101.jar");
  if (hotFixJar.exists()) {
    jvmArgs.append("-Djava.rmi.server.RMIClassLoaderSpi=jrunx.util.JRunRMIClassLoaderSpi ");
  }
  jvmArgs.append("-Dsun.io.useCanonCaches=false ");
  jvmArgs.append("-Djmx.invoke.getters=true ");
  jvmArgs.append("-Xms32m ");
  jvmArgs.append("-Xmx128m ");
  ReplaceTokens.Token tokenVmArgs=new ReplaceTokens.Token();
  tokenVmArgs.setKey("jrun.jvm.args");
  tokenVmArgs.setValue(jvmArgs.toString());
  return tokenVmArgs;
}

private Token createVmArgsToken ( ) { StringBuilder jvmArgs = new StringBuilder ( ) ; File hotFixJar = new File ( jrunContainer . getHome ( ) + "/servers/lib/54101.jar" ) ; if ( hotFixJar . exists ( ) ) { jvmArgs . append ( "-Djava.rmi.server.RMIClassLoaderSpi=jrunx.util.JRunRMIClassLoaderSpi " ) ; } jvmArgs . append ( "-Dsun.io.useCanonCaches=false " ) ; jvmArgs . append ( "-Djmx.invoke.getters=true " ) ; jvmArgs . append ( "-Xms32m " ) ; jvmArgs . append ( "-Xmx128m " ) ; ReplaceTokens . Token tokenVmArgs = new ReplaceTokens . Token ( ) ; tokenVmArgs . setKey ( "jrun.jvm.args" ) ; tokenVmArgs . setValue ( jvmArgs . toString ( ) ) ; return tokenVmArgs ; }
creates the vm args token for the jvm . config file .
