maven-surefire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r398534 - in /maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter: ForkConfiguration.java SurefireBooter.java
Date Mon, 01 May 2006 05:50:29 GMT
Author: brett
Date: Sun Apr 30 22:50:28 2006
New Revision: 398534

URL: http://svn.apache.org/viewcvs?rev=398534&view=rev
Log:
[MSUREFIRE-56] rename pertest to "always"

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

Modified: maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkConfiguration.java
URL: http://svn.apache.org/viewcvs/maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkConfiguration.java?rev=398534&r1=398533&r2=398534&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkConfiguration.java
(original)
+++ maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkConfiguration.java
Sun Apr 30 22:50:28 2006
@@ -34,7 +34,7 @@
 {
     public static final String FORK_ONCE = "once";
 
-    public static final String FORK_PERTEST = "pertest";
+    public static final String FORK_ALWAYS = "always";
 
     public static final String FORK_NONE = "none";
 
@@ -56,7 +56,11 @@
 
     public void setForkMode( String forkMode )
     {
-        if ( forkMode.equals( FORK_NONE ) || forkMode.equals( FORK_ONCE ) || forkMode.equals(
FORK_PERTEST ) )
+        if ( "pertest".equalsIgnoreCase( forkMode ) )
+        {
+            this.forkMode = FORK_ALWAYS;
+        }
+        else if ( forkMode.equals( FORK_NONE ) || forkMode.equals( FORK_ONCE ) || forkMode.equals(
FORK_ALWAYS ) )
         {
             this.forkMode = forkMode;
         }

Modified: maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/SurefireBooter.java
URL: http://svn.apache.org/viewcvs/maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/SurefireBooter.java?rev=398534&r1=398533&r2=398534&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/SurefireBooter.java
(original)
+++ maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/SurefireBooter.java
Sun Apr 30 22:50:28 2006
@@ -137,7 +137,7 @@
         {
             result = runSuitesForkOnce();
         }
-        else if ( ForkConfiguration.FORK_PERTEST.equals( forkConfiguration.getForkMode()
) )
+        else if ( ForkConfiguration.FORK_ALWAYS.equals( forkConfiguration.getForkMode() )
)
         {
             result = runSuitesForkPerTestSet();
         }



Mime
View raw message