maven-surefire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject svn commit: r353880 - /maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/SurefireBooter.java
Date Sun, 04 Dec 2005 18:29:02 GMT
Author: jvanzyl
Date: Sun Dec  4 10:28:59 2005
New Revision: 353880

URL: http://svn.apache.org/viewcvs?rev=353880&view=rev
Log:
o add parameter for the jvm path

Modified:
    maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/SurefireBooter.java

Modified: maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/SurefireBooter.java
URL: http://svn.apache.org/viewcvs/maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/SurefireBooter.java?rev=353880&r1=353879&r2=353880&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/SurefireBooter.java
(original)
+++ maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/SurefireBooter.java
Sun Dec  4 10:28:59 2005
@@ -61,6 +61,8 @@
 
     private String basedir;
 
+    private String jvm;
+
     // ----------------------------------------------------------------------
     // Accessors
     // ----------------------------------------------------------------------
@@ -112,6 +114,11 @@
         this.forkMode = forkMode;
     }
 
+    public void setJvm( String jvm )
+    {
+        this.jvm = jvm;
+    }
+
     // ----------------------------------------------------------------------
     //
     // ----------------------------------------------------------------------
@@ -212,8 +219,6 @@
     private boolean fork( String[] args )
         throws Exception
     {
-        String executable = "java";
-
         File workingDirectory = new File( "." );
 
         Commandline cli = new Commandline();
@@ -222,7 +227,7 @@
 
         cli.setWorkingDirectory( basedir );
 
-        cli.setExecutable( executable );
+        cli.setExecutable( jvm );
 
         cli.addArguments( args );
 



Mime
View raw message