maven-surefire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject svn commit: r356442 - /maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/SurefireBooter.java
Date Tue, 13 Dec 2005 01:15:10 GMT
Author: jvanzyl
Date: Mon Dec 12 17:15:05 2005
New Revision: 356442

URL: http://svn.apache.org/viewcvs?rev=356442&view=rev
Log:
o add general command line options for setting things like -enableassertions and
  any other JVM options you might want to set

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=356442&r1=356441&r2=356442&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
Mon Dec 12 17:15:05 2005
@@ -39,7 +39,7 @@
 
 /**
  * @author Jason van Zyl
- * @author <a href="mail-to:emmanuel@venisse.net">Emmanuel Venisse</a>
+ * @author Emmanuel Venisse
  * @version $Id$
  */
 public class SurefireBooter
@@ -277,6 +277,11 @@
 
         cli.setExecutable( jvm );
 
+        if ( argLine != null )
+        {
+            cli.addArguments( StringUtils.split( argLine, " " ) );
+        }
+
         cli.createArgument().setValue( "-classpath" );
 
         cli.createArgument().setValue( surefireBooterJar + PS + plexusUtilsJar );
@@ -285,7 +290,7 @@
 
         cli.createArgument().setValue( basedir );
 
-        //System.out.println( Commandline.toString( cli.getCommandline() ) );
+        System.out.println( Commandline.toString( cli.getCommandline() ) );
 
         Writer stringWriter = new StringWriter();
 



Mime
View raw message