geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject cvs commit: incubator-geronimo/modules/maven-plugin/src/java/org/apache/geronimo/deployment/mavenplugin StartRemoteServer.java
Date Sat, 04 Sep 2004 20:35:50 GMT
adc         2004/09/04 13:35:50

  Modified:    modules/maven-plugin/src/java/org/apache/geronimo/deployment/mavenplugin
                        StartRemoteServer.java
  Log:
  Allow maven scripts to pass VM args.
  
  Revision  Changes    Path
  1.3       +15 -1     incubator-geronimo/modules/maven-plugin/src/java/org/apache/geronimo/deployment/mavenplugin/StartRemoteServer.java
  
  Index: StartRemoteServer.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/maven-plugin/src/java/org/apache/geronimo/deployment/mavenplugin/StartRemoteServer.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- StartRemoteServer.java	1 Sep 2004 16:38:14 -0000	1.2
  +++ StartRemoteServer.java	4 Sep 2004 20:35:50 -0000	1.3
  @@ -24,12 +24,14 @@
   import java.util.ArrayList;
   import java.util.StringTokenizer;
   
  +
   /**
    * @version $Revision$ $Date$
    */
   public class StartRemoteServer {
   
       private String geronimoTarget;
  +    private String vmArgs = "";
       private String configs;
       private String debugPort;
   
  @@ -41,6 +43,14 @@
           this.geronimoTarget = geronimoTarget;
       }
   
  +    public String getVmArgs() {
  +        return vmArgs;
  +    }
  +
  +    public void setVmArgs(String vmArgs) {
  +        this.vmArgs = vmArgs;
  +    }
  +
       public String getConfigs() {
           return configs;
       }
  @@ -71,6 +81,10 @@
               cmd.add("-Xnoagent");
               cmd.add("-Djava.compiler=NONE");
               cmd.add("-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=" + debugPort);
  +        }
  +
  +        for (StringTokenizer st = new StringTokenizer(getVmArgs()); st.hasMoreTokens();)
{
  +            cmd.add(st.nextToken());
           }
   
           cmd.add("-ea");
  
  
  

Mime
View raw message