Repository: maven-surefire
Updated Branches:
  refs/heads/2.19.2-experimental 729ecb44a -> c5d9ea8a5


Java 7, closeEntry(), and new implementation of JarOutputStream.flush()


Project: http://git-wip-us.apache.org/repos/asf/maven-surefire/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-surefire/commit/c5d9ea8a
Tree: http://git-wip-us.apache.org/repos/asf/maven-surefire/tree/c5d9ea8a
Diff: http://git-wip-us.apache.org/repos/asf/maven-surefire/diff/c5d9ea8a

Branch: refs/heads/2.19.2-experimental
Commit: c5d9ea8a549cbeaadcc09e43bb1f67b4ccd9061d
Parents: 729ecb4
Author: Tibor17 <tibo...@lycos.com>
Authored: Wed Mar 1 06:59:52 2017 +0100
Committer: Tibor17 <tibo...@lycos.com>
Committed: Wed Mar 1 06:59:52 2017 +0100

----------------------------------------------------------------------
 .../maven/plugin/surefire/booterclient/ForkConfiguration.java  | 6 ++++++
 pom.xml                                                        | 6 +++---
 2 files changed, 9 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/c5d9ea8a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/ForkConfiguration.java
----------------------------------------------------------------------
diff --git 
a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/ForkConfiguration.java
 
b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/ForkConfiguration.java
index 988af8f..58754cf 100644
--- 
a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/ForkConfiguration.java
+++ 
b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/ForkConfiguration.java
@@ -200,6 +200,9 @@ public class ForkConfiguration
 
         cli.setWorkingDirectory( getWorkingDirectory( threadNumber 
).getAbsolutePath() );
 
+        System.out.println( System.currentTimeMillis() + " " + 
getClass().getSimpleName() + "#" + hashCode()
+                                    + "createCommandLine() returned" );
+
         return cli;
     }
 
@@ -297,6 +300,9 @@ public class ForkConfiguration
             man.getMainAttributes().putValue( "Main-Class", startClassName );
 
             man.write( jos );
+
+            jos.closeEntry();
+            jos.flush();
         }
         finally
         {

http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/c5d9ea8a/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 1eb5572..b742e03 100644
--- a/pom.xml
+++ b/pom.xml
@@ -86,8 +86,8 @@
   </distributionManagement>
 
   <properties>
-    <maven.compiler.source>1.6</maven.compiler.source>
-    <maven.compiler.target>1.6</maven.compiler.target>
+    <maven.compiler.source>1.7</maven.compiler.source>
+    <maven.compiler.target>1.7</maven.compiler.target>
     <mavenVersion>2.2.1</mavenVersion>
     <!-- <shadedVersion>2.12.4</shadedVersion> commented out due to 
https://issues.apache.org/jira/browse/MRELEASE-799 -->
     <mavenPluginPluginVersion>3.3</mavenPluginPluginVersion>
@@ -355,7 +355,7 @@
             <configuration>
               <rules>
                 <requireJavaVersion>
-                  <version>[1.6.0, 1.9.0)</version>
+                  <version>[1.7.0, 1.9.0)</version>
                 </requireJavaVersion>
               </rules>
             </configuration>

Reply via email to