maven-surefire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dfabul...@apache.org
Subject svn commit: r606813 - in /maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter: ForkConfiguration.java SurefireBooter.java
Date Tue, 25 Dec 2007 21:26:20 GMT
Author: dfabulich
Date: Tue Dec 25 13:26:20 2007
New Revision: 606813

URL: http://svn.apache.org/viewvc?rev=606813&view=rev
Log:
[SUREFIRE-418] Don't delete surefire temp files if running under -X

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/viewvc/maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkConfiguration.java?rev=606813&r1=606812&r2=606813&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
Tue Dec 25 13:26:20 2007
@@ -217,11 +217,13 @@
      * @return
      * @throws IOException
      */
-    private static File createJar( List classPath )
+    private File createJar( List classPath )
         throws IOException
     {
         File file = File.createTempFile( "surefirebooter", ".jar" );
-        file.deleteOnExit();
+        if ( !debug ) {
+            file.deleteOnExit();
+        }
         ManifestJarWriter writer = new ManifestJarWriter(file);
 
         // we can't use StringUtils.join here since we need to add a '/' to

Modified: maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/SurefireBooter.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/SurefireBooter.java?rev=606813&r1=606812&r2=606813&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
Tue Dec 25 13:26:20 2007
@@ -506,7 +506,10 @@
         throws IOException
     {
         File file = File.createTempFile( name, "tmp" );
-        file.deleteOnExit();
+        if ( !forkConfiguration.isDebug() )
+        {
+            file.deleteOnExit();
+        }
 
         writePropertiesFile( file, name, properties );
 



Mime
View raw message