maven-surefire git commit: [SUREFIRE-1400] Windows surefire boot directory should appear in system default temporary-directory

2017-08-06 Thread tibordigana
Repository: maven-surefire
Updated Branches:
  refs/heads/master 26527d10c -> 413be0d6b


[SUREFIRE-1400] Windows surefire boot directory should appear in system default 
temporary-directory


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

Branch: refs/heads/master
Commit: 413be0d6b7232fe6ef6255492099fb0fb4f3bf24
Parents: 26527d1
Author: Tibor17 
Authored: Tue Aug 1 09:37:48 2017 +0200
Committer: Tibor17 
Committed: Sun Aug 6 03:12:33 2017 +0200

--
 .../plugin/surefire/AbstractSurefireMojo.java   |  93 +-
 .../surefire/AbstractSurefireMojoTest.java  | 125 +++
 .../apache/maven/surefire/JUnit4SuiteTest.java  |   4 +-
 .../maven/surefire/util/ReflectionUtils.java|  29 -
 .../surefire/util/ReflectionUtilsTest.java  |   6 +-
 surefire-integration-tests/pom.xml  |   2 +
 .../maven/surefire/its/LongWindowsPathIT.java   |  88 +
 .../surefire/its/fixture/HelperAssertions.java  |  13 +-
 .../test/resources/long-windows-path/pom.xml|  57 +
 .../test/java/longwindowspath/BasicTest.java|  36 ++
 .../java/jiras/surefre855/bundle/FooIT.java |  32 +
 .../test/java/jiras/surefire855/jar/FooIT.java  |  34 +
 .../test/java/jiras/surefire855/war/FooIT.java  |  32 +
 13 files changed, 447 insertions(+), 104 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/413be0d6/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
--
diff --git 
a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
 
b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
index b3df567..f2e5bfb 100644
--- 
a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
+++ 
b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
@@ -76,12 +76,14 @@ import org.apache.maven.surefire.testset.TestRequest;
 import org.apache.maven.surefire.testset.TestSetFailedException;
 import org.apache.maven.surefire.util.DefaultScanResult;
 import org.apache.maven.surefire.util.RunOrder;
+import org.apache.maven.surefire.util.SurefireReflectionException;
 import org.apache.maven.toolchain.Toolchain;
 import org.apache.maven.toolchain.ToolchainManager;
 
 import javax.annotation.Nonnull;
 import java.io.File;
 import java.io.IOException;
+import java.lang.reflect.Array;
 import java.lang.reflect.Method;
 import java.util.ArrayList;
 import java.util.Arrays;
@@ -98,12 +100,18 @@ import java.util.Set;
 import java.util.concurrent.ConcurrentHashMap;
 
 import static java.lang.Thread.currentThread;
+import static org.apache.commons.lang3.JavaVersion.JAVA_1_7;
+import static org.apache.commons.lang3.SystemUtils.IS_OS_WINDOWS;
+import static org.apache.commons.lang3.SystemUtils.isJavaVersionAtLeast;
 import static org.apache.maven.shared.utils.StringUtils.capitalizeFirstLetter;
 import static org.apache.maven.shared.utils.StringUtils.isEmpty;
 import static org.apache.maven.shared.utils.StringUtils.isNotBlank;
 import static org.apache.maven.shared.utils.StringUtils.split;
 import static org.apache.maven.surefire.suite.RunResult.failure;
 import static org.apache.maven.surefire.suite.RunResult.noTestsRun;
+import static org.apache.maven.surefire.util.ReflectionUtils.invokeGetter;
+import static 
org.apache.maven.surefire.util.ReflectionUtils.invokeStaticMethod;
+import static org.apache.maven.surefire.util.ReflectionUtils.tryLoadClass;
 
 /**
  * Abstract base class for running tests using Surefire.
@@ -117,6 +125,8 @@ public abstract class AbstractSurefireMojo
 {
 private static final Platform PLATFORM = new Platform();
 
+private static final File SYSTEM_TMP_DIR = new File( System.getProperty( 
"java.io.tmpdir" ) );
+
 private final ProviderDetector providerDetector = new ProviderDetector();
 
 /**
@@ -342,7 +352,12 @@ public abstract class AbstractSurefireMojo
 private String forkMode;
 
 /**
- * Relative path to project.build.directory containing internal 
Surefire temporary files.
+ * Relative path to temporary-surefire-boot directory containing 
internal Surefire temporary files.
+ * 
+ * The temporary-surefire-boot directory is 
project.build.directory on most platforms or
+ * system default temporary-directory specified by the system 
property {@code java.io.tmpdir}
+ * on Windows (see 

maven-surefire git commit: [SUREFIRE-1400] Windows surefire boot directory should appear in system default temporary-directory [Forced Update!]

2017-08-05 Thread tibordigana
Repository: maven-surefire
Updated Branches:
  refs/heads/SUREFIRE-1400 a0712f6ad -> 413be0d6b (forced update)


[SUREFIRE-1400] Windows surefire boot directory should appear in system default 
temporary-directory


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

Branch: refs/heads/SUREFIRE-1400
Commit: 413be0d6b7232fe6ef6255492099fb0fb4f3bf24
Parents: 26527d1
Author: Tibor17 
Authored: Tue Aug 1 09:37:48 2017 +0200
Committer: Tibor17 
Committed: Sun Aug 6 03:12:33 2017 +0200

--
 .../plugin/surefire/AbstractSurefireMojo.java   |  93 +-
 .../surefire/AbstractSurefireMojoTest.java  | 125 +++
 .../apache/maven/surefire/JUnit4SuiteTest.java  |   4 +-
 .../maven/surefire/util/ReflectionUtils.java|  29 -
 .../surefire/util/ReflectionUtilsTest.java  |   6 +-
 surefire-integration-tests/pom.xml  |   2 +
 .../maven/surefire/its/LongWindowsPathIT.java   |  88 +
 .../surefire/its/fixture/HelperAssertions.java  |  13 +-
 .../test/resources/long-windows-path/pom.xml|  57 +
 .../test/java/longwindowspath/BasicTest.java|  36 ++
 .../java/jiras/surefre855/bundle/FooIT.java |  32 +
 .../test/java/jiras/surefire855/jar/FooIT.java  |  34 +
 .../test/java/jiras/surefire855/war/FooIT.java  |  32 +
 13 files changed, 447 insertions(+), 104 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/413be0d6/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
--
diff --git 
a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
 
b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
index b3df567..f2e5bfb 100644
--- 
a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
+++ 
b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
@@ -76,12 +76,14 @@ import org.apache.maven.surefire.testset.TestRequest;
 import org.apache.maven.surefire.testset.TestSetFailedException;
 import org.apache.maven.surefire.util.DefaultScanResult;
 import org.apache.maven.surefire.util.RunOrder;
+import org.apache.maven.surefire.util.SurefireReflectionException;
 import org.apache.maven.toolchain.Toolchain;
 import org.apache.maven.toolchain.ToolchainManager;
 
 import javax.annotation.Nonnull;
 import java.io.File;
 import java.io.IOException;
+import java.lang.reflect.Array;
 import java.lang.reflect.Method;
 import java.util.ArrayList;
 import java.util.Arrays;
@@ -98,12 +100,18 @@ import java.util.Set;
 import java.util.concurrent.ConcurrentHashMap;
 
 import static java.lang.Thread.currentThread;
+import static org.apache.commons.lang3.JavaVersion.JAVA_1_7;
+import static org.apache.commons.lang3.SystemUtils.IS_OS_WINDOWS;
+import static org.apache.commons.lang3.SystemUtils.isJavaVersionAtLeast;
 import static org.apache.maven.shared.utils.StringUtils.capitalizeFirstLetter;
 import static org.apache.maven.shared.utils.StringUtils.isEmpty;
 import static org.apache.maven.shared.utils.StringUtils.isNotBlank;
 import static org.apache.maven.shared.utils.StringUtils.split;
 import static org.apache.maven.surefire.suite.RunResult.failure;
 import static org.apache.maven.surefire.suite.RunResult.noTestsRun;
+import static org.apache.maven.surefire.util.ReflectionUtils.invokeGetter;
+import static 
org.apache.maven.surefire.util.ReflectionUtils.invokeStaticMethod;
+import static org.apache.maven.surefire.util.ReflectionUtils.tryLoadClass;
 
 /**
  * Abstract base class for running tests using Surefire.
@@ -117,6 +125,8 @@ public abstract class AbstractSurefireMojo
 {
 private static final Platform PLATFORM = new Platform();
 
+private static final File SYSTEM_TMP_DIR = new File( System.getProperty( 
"java.io.tmpdir" ) );
+
 private final ProviderDetector providerDetector = new ProviderDetector();
 
 /**
@@ -342,7 +352,12 @@ public abstract class AbstractSurefireMojo
 private String forkMode;
 
 /**
- * Relative path to project.build.directory containing internal 
Surefire temporary files.
+ * Relative path to temporary-surefire-boot directory containing 
internal Surefire temporary files.
+ * 
+ * The temporary-surefire-boot directory is 
project.build.directory on most platforms or
+ * system default temporary-directory specified by the system 
property {@code java.io.tmpdir}
+ * on 

maven-surefire git commit: [SUREFIRE-1400] Windows surefire boot directory should appear in system default temporary-directory [Forced Update!]

2017-08-05 Thread tibordigana
Repository: maven-surefire
Updated Branches:
  refs/heads/SUREFIRE-1400 3584fdf56 -> a0712f6ad (forced update)


[SUREFIRE-1400] Windows surefire boot directory should appear in system default 
temporary-directory


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

Branch: refs/heads/SUREFIRE-1400
Commit: a0712f6adb079b903712ed126f1cb8577f5bab5a
Parents: 26527d1
Author: Tibor17 
Authored: Tue Aug 1 09:37:48 2017 +0200
Committer: Tibor17 
Committed: Sun Aug 6 02:44:21 2017 +0200

--
 .../plugin/surefire/AbstractSurefireMojo.java   |  93 -
 .../surefire/AbstractSurefireMojoTest.java  | 134 +++
 .../apache/maven/surefire/JUnit4SuiteTest.java  |   4 +-
 .../maven/surefire/util/ReflectionUtils.java|  29 +++-
 .../surefire/util/ReflectionUtilsTest.java  |   6 +-
 surefire-integration-tests/pom.xml  |   2 +
 .../maven/surefire/its/LongWindowsPathIT.java   |  88 
 .../surefire/its/fixture/HelperAssertions.java  |  13 +-
 .../test/resources/long-windows-path/pom.xml|  57 
 .../test/java/longwindowspath/BasicTest.java|  36 +
 .../java/jiras/surefre855/bundle/FooIT.java |  32 +
 .../test/java/jiras/surefire855/jar/FooIT.java  |  34 +
 .../test/java/jiras/surefire855/war/FooIT.java  |  32 +
 13 files changed, 456 insertions(+), 104 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/a0712f6a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
--
diff --git 
a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
 
b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
index b3df567..f2e5bfb 100644
--- 
a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
+++ 
b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
@@ -76,12 +76,14 @@ import org.apache.maven.surefire.testset.TestRequest;
 import org.apache.maven.surefire.testset.TestSetFailedException;
 import org.apache.maven.surefire.util.DefaultScanResult;
 import org.apache.maven.surefire.util.RunOrder;
+import org.apache.maven.surefire.util.SurefireReflectionException;
 import org.apache.maven.toolchain.Toolchain;
 import org.apache.maven.toolchain.ToolchainManager;
 
 import javax.annotation.Nonnull;
 import java.io.File;
 import java.io.IOException;
+import java.lang.reflect.Array;
 import java.lang.reflect.Method;
 import java.util.ArrayList;
 import java.util.Arrays;
@@ -98,12 +100,18 @@ import java.util.Set;
 import java.util.concurrent.ConcurrentHashMap;
 
 import static java.lang.Thread.currentThread;
+import static org.apache.commons.lang3.JavaVersion.JAVA_1_7;
+import static org.apache.commons.lang3.SystemUtils.IS_OS_WINDOWS;
+import static org.apache.commons.lang3.SystemUtils.isJavaVersionAtLeast;
 import static org.apache.maven.shared.utils.StringUtils.capitalizeFirstLetter;
 import static org.apache.maven.shared.utils.StringUtils.isEmpty;
 import static org.apache.maven.shared.utils.StringUtils.isNotBlank;
 import static org.apache.maven.shared.utils.StringUtils.split;
 import static org.apache.maven.surefire.suite.RunResult.failure;
 import static org.apache.maven.surefire.suite.RunResult.noTestsRun;
+import static org.apache.maven.surefire.util.ReflectionUtils.invokeGetter;
+import static 
org.apache.maven.surefire.util.ReflectionUtils.invokeStaticMethod;
+import static org.apache.maven.surefire.util.ReflectionUtils.tryLoadClass;
 
 /**
  * Abstract base class for running tests using Surefire.
@@ -117,6 +125,8 @@ public abstract class AbstractSurefireMojo
 {
 private static final Platform PLATFORM = new Platform();
 
+private static final File SYSTEM_TMP_DIR = new File( System.getProperty( 
"java.io.tmpdir" ) );
+
 private final ProviderDetector providerDetector = new ProviderDetector();
 
 /**
@@ -342,7 +352,12 @@ public abstract class AbstractSurefireMojo
 private String forkMode;
 
 /**
- * Relative path to project.build.directory containing internal 
Surefire temporary files.
+ * Relative path to temporary-surefire-boot directory containing 
internal Surefire temporary files.
+ * 
+ * The temporary-surefire-boot directory is 
project.build.directory on most platforms or
+ * system default temporary-directory specified by the system 
property {@code java.io.tmpdir}
+ * on Windows 

maven-surefire git commit: [SUREFIRE-1400] Windows surefire boot directory should appear in system default temporary-directory [Forced Update!]

2017-08-05 Thread tibordigana
Repository: maven-surefire
Updated Branches:
  refs/heads/SUREFIRE-1400 7a6f3e6c8 -> 3584fdf56 (forced update)


[SUREFIRE-1400] Windows surefire boot directory should appear in system default 
temporary-directory


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

Branch: refs/heads/SUREFIRE-1400
Commit: 3584fdf56a53733c9a6f38162c144519385e6939
Parents: 26527d1
Author: Tibor17 
Authored: Tue Aug 1 09:37:48 2017 +0200
Committer: Tibor17 
Committed: Sun Aug 6 02:32:56 2017 +0200

--
 .../plugin/surefire/AbstractSurefireMojo.java   |  93 +++-
 .../surefire/AbstractSurefireMojoTest.java  | 111 +++
 .../apache/maven/surefire/JUnit4SuiteTest.java  |   4 +-
 .../maven/surefire/util/ReflectionUtils.java|  29 -
 .../surefire/util/ReflectionUtilsTest.java  |   6 +-
 surefire-integration-tests/pom.xml  |   2 +
 .../maven/surefire/its/LongWindowsPathIT.java   |  88 +++
 .../surefire/its/fixture/HelperAssertions.java  |  13 +--
 .../test/resources/long-windows-path/pom.xml|  57 ++
 .../test/java/longwindowspath/BasicTest.java|  36 ++
 .../java/jiras/surefre855/bundle/FooIT.java |  32 +-
 .../test/java/jiras/surefire855/jar/FooIT.java  |  34 +-
 .../test/java/jiras/surefire855/war/FooIT.java  |  32 +-
 13 files changed, 433 insertions(+), 104 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/3584fdf5/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
--
diff --git 
a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
 
b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
index b3df567..f2e5bfb 100644
--- 
a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
+++ 
b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
@@ -76,12 +76,14 @@ import org.apache.maven.surefire.testset.TestRequest;
 import org.apache.maven.surefire.testset.TestSetFailedException;
 import org.apache.maven.surefire.util.DefaultScanResult;
 import org.apache.maven.surefire.util.RunOrder;
+import org.apache.maven.surefire.util.SurefireReflectionException;
 import org.apache.maven.toolchain.Toolchain;
 import org.apache.maven.toolchain.ToolchainManager;
 
 import javax.annotation.Nonnull;
 import java.io.File;
 import java.io.IOException;
+import java.lang.reflect.Array;
 import java.lang.reflect.Method;
 import java.util.ArrayList;
 import java.util.Arrays;
@@ -98,12 +100,18 @@ import java.util.Set;
 import java.util.concurrent.ConcurrentHashMap;
 
 import static java.lang.Thread.currentThread;
+import static org.apache.commons.lang3.JavaVersion.JAVA_1_7;
+import static org.apache.commons.lang3.SystemUtils.IS_OS_WINDOWS;
+import static org.apache.commons.lang3.SystemUtils.isJavaVersionAtLeast;
 import static org.apache.maven.shared.utils.StringUtils.capitalizeFirstLetter;
 import static org.apache.maven.shared.utils.StringUtils.isEmpty;
 import static org.apache.maven.shared.utils.StringUtils.isNotBlank;
 import static org.apache.maven.shared.utils.StringUtils.split;
 import static org.apache.maven.surefire.suite.RunResult.failure;
 import static org.apache.maven.surefire.suite.RunResult.noTestsRun;
+import static org.apache.maven.surefire.util.ReflectionUtils.invokeGetter;
+import static 
org.apache.maven.surefire.util.ReflectionUtils.invokeStaticMethod;
+import static org.apache.maven.surefire.util.ReflectionUtils.tryLoadClass;
 
 /**
  * Abstract base class for running tests using Surefire.
@@ -117,6 +125,8 @@ public abstract class AbstractSurefireMojo
 {
 private static final Platform PLATFORM = new Platform();
 
+private static final File SYSTEM_TMP_DIR = new File( System.getProperty( 
"java.io.tmpdir" ) );
+
 private final ProviderDetector providerDetector = new ProviderDetector();
 
 /**
@@ -342,7 +352,12 @@ public abstract class AbstractSurefireMojo
 private String forkMode;
 
 /**
- * Relative path to project.build.directory containing internal 
Surefire temporary files.
+ * Relative path to temporary-surefire-boot directory containing 
internal Surefire temporary files.
+ * 
+ * The temporary-surefire-boot directory is 
project.build.directory on most platforms or
+ * system default temporary-directory specified by the system 
property {@code java.io.tmpdir}
+ * 

maven-surefire git commit: [SUREFIRE-1400] Windows surefire boot directory should appear in system default temporary-directory [Forced Update!]

2017-08-03 Thread tibordigana
Repository: maven-surefire
Updated Branches:
  refs/heads/SUREFIRE-1400 e799e4bc4 -> 7a6f3e6c8 (forced update)


[SUREFIRE-1400] Windows surefire boot directory should appear in system default 
temporary-directory


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

Branch: refs/heads/SUREFIRE-1400
Commit: 7a6f3e6c829e86aba663de4f90963070666d2654
Parents: 26527d1
Author: Tibor17 
Authored: Tue Aug 1 09:37:48 2017 +0200
Committer: Tibor17 
Committed: Thu Aug 3 15:18:01 2017 +0200

--
 .../plugin/surefire/AbstractSurefireMojo.java   |  93 +++-
 .../surefire/AbstractSurefireMojoTest.java  | 111 +++
 .../apache/maven/surefire/JUnit4SuiteTest.java  |   4 +-
 .../maven/surefire/util/ReflectionUtils.java|  29 -
 .../surefire/util/ReflectionUtilsTest.java  |   6 +-
 surefire-integration-tests/pom.xml  |   2 +
 .../maven/surefire/its/LongWindowsPathIT.java   |  55 +
 .../surefire/its/fixture/HelperAssertions.java  |  13 +--
 .../test/resources/long-windows-path/pom.xml|  57 ++
 .../test/java/longwindowspath/BasicTest.java|  32 ++
 .../java/jiras/surefre855/bundle/FooIT.java |  31 +-
 .../test/java/jiras/surefire855/jar/FooIT.java  |  33 +-
 .../test/java/jiras/surefire855/war/FooIT.java  |  31 +-
 13 files changed, 393 insertions(+), 104 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/7a6f3e6c/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
--
diff --git 
a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
 
b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
index b3df567..f2e5bfb 100644
--- 
a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
+++ 
b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
@@ -76,12 +76,14 @@ import org.apache.maven.surefire.testset.TestRequest;
 import org.apache.maven.surefire.testset.TestSetFailedException;
 import org.apache.maven.surefire.util.DefaultScanResult;
 import org.apache.maven.surefire.util.RunOrder;
+import org.apache.maven.surefire.util.SurefireReflectionException;
 import org.apache.maven.toolchain.Toolchain;
 import org.apache.maven.toolchain.ToolchainManager;
 
 import javax.annotation.Nonnull;
 import java.io.File;
 import java.io.IOException;
+import java.lang.reflect.Array;
 import java.lang.reflect.Method;
 import java.util.ArrayList;
 import java.util.Arrays;
@@ -98,12 +100,18 @@ import java.util.Set;
 import java.util.concurrent.ConcurrentHashMap;
 
 import static java.lang.Thread.currentThread;
+import static org.apache.commons.lang3.JavaVersion.JAVA_1_7;
+import static org.apache.commons.lang3.SystemUtils.IS_OS_WINDOWS;
+import static org.apache.commons.lang3.SystemUtils.isJavaVersionAtLeast;
 import static org.apache.maven.shared.utils.StringUtils.capitalizeFirstLetter;
 import static org.apache.maven.shared.utils.StringUtils.isEmpty;
 import static org.apache.maven.shared.utils.StringUtils.isNotBlank;
 import static org.apache.maven.shared.utils.StringUtils.split;
 import static org.apache.maven.surefire.suite.RunResult.failure;
 import static org.apache.maven.surefire.suite.RunResult.noTestsRun;
+import static org.apache.maven.surefire.util.ReflectionUtils.invokeGetter;
+import static 
org.apache.maven.surefire.util.ReflectionUtils.invokeStaticMethod;
+import static org.apache.maven.surefire.util.ReflectionUtils.tryLoadClass;
 
 /**
  * Abstract base class for running tests using Surefire.
@@ -117,6 +125,8 @@ public abstract class AbstractSurefireMojo
 {
 private static final Platform PLATFORM = new Platform();
 
+private static final File SYSTEM_TMP_DIR = new File( System.getProperty( 
"java.io.tmpdir" ) );
+
 private final ProviderDetector providerDetector = new ProviderDetector();
 
 /**
@@ -342,7 +352,12 @@ public abstract class AbstractSurefireMojo
 private String forkMode;
 
 /**
- * Relative path to project.build.directory containing internal 
Surefire temporary files.
+ * Relative path to temporary-surefire-boot directory containing 
internal Surefire temporary files.
+ * 
+ * The temporary-surefire-boot directory is 
project.build.directory on most platforms or
+ * system default temporary-directory specified by the system 
property {@code java.io.tmpdir}
+ * on 

maven-surefire git commit: [SUREFIRE-1400] Windows surefire boot directory should appear in system default temporary-directory [Forced Update!]

2017-08-01 Thread tibordigana
Repository: maven-surefire
Updated Branches:
  refs/heads/SUREFIRE-1400 1e4bdbf03 -> e799e4bc4 (forced update)


[SUREFIRE-1400] Windows surefire boot directory should appear in system default 
temporary-directory


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

Branch: refs/heads/SUREFIRE-1400
Commit: e799e4bc45127ceacd3bfba5e28ec276de09a342
Parents: 26527d1
Author: Tibor17 
Authored: Tue Aug 1 09:37:48 2017 +0200
Committer: Tibor17 
Committed: Tue Aug 1 11:37:05 2017 +0200

--
 .../plugin/surefire/AbstractSurefireMojo.java   |  92 ++-
 .../surefire/booterclient/ForkStarter.java  |   1 +
 .../surefire/AbstractSurefireMojoTest.java  | 111 +++
 .../apache/maven/surefire/JUnit4SuiteTest.java  |   4 +-
 .../maven/surefire/util/ReflectionUtils.java|  29 -
 .../surefire/util/ReflectionUtilsTest.java  |   6 +-
 surefire-integration-tests/pom.xml  |   2 +
 .../maven/surefire/its/LongWindowsPathIT.java   |  55 +
 .../surefire/its/fixture/HelperAssertions.java  |  13 +--
 .../test/resources/long-windows-path/pom.xml|  57 ++
 .../test/java/longwindowspath/BasicTest.java|  32 ++
 .../java/jiras/surefre855/bundle/FooIT.java |  31 +-
 .../test/java/jiras/surefire855/jar/FooIT.java  |  33 +-
 .../test/java/jiras/surefire855/war/FooIT.java  |  31 +-
 14 files changed, 395 insertions(+), 102 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/e799e4bc/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
--
diff --git 
a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
 
b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
index b3df567..a661d40 100644
--- 
a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
+++ 
b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
@@ -76,12 +76,14 @@ import org.apache.maven.surefire.testset.TestRequest;
 import org.apache.maven.surefire.testset.TestSetFailedException;
 import org.apache.maven.surefire.util.DefaultScanResult;
 import org.apache.maven.surefire.util.RunOrder;
+import org.apache.maven.surefire.util.SurefireReflectionException;
 import org.apache.maven.toolchain.Toolchain;
 import org.apache.maven.toolchain.ToolchainManager;
 
 import javax.annotation.Nonnull;
 import java.io.File;
 import java.io.IOException;
+import java.lang.reflect.Array;
 import java.lang.reflect.Method;
 import java.util.ArrayList;
 import java.util.Arrays;
@@ -98,12 +100,18 @@ import java.util.Set;
 import java.util.concurrent.ConcurrentHashMap;
 
 import static java.lang.Thread.currentThread;
+import static org.apache.commons.lang3.JavaVersion.JAVA_1_7;
+import static org.apache.commons.lang3.SystemUtils.IS_OS_WINDOWS;
+import static org.apache.commons.lang3.SystemUtils.isJavaVersionAtLeast;
 import static org.apache.maven.shared.utils.StringUtils.capitalizeFirstLetter;
 import static org.apache.maven.shared.utils.StringUtils.isEmpty;
 import static org.apache.maven.shared.utils.StringUtils.isNotBlank;
 import static org.apache.maven.shared.utils.StringUtils.split;
 import static org.apache.maven.surefire.suite.RunResult.failure;
 import static org.apache.maven.surefire.suite.RunResult.noTestsRun;
+import static org.apache.maven.surefire.util.ReflectionUtils.invokeGetter;
+import static 
org.apache.maven.surefire.util.ReflectionUtils.invokeStaticMethod;
+import static org.apache.maven.surefire.util.ReflectionUtils.tryLoadClass;
 
 /**
  * Abstract base class for running tests using Surefire.
@@ -117,6 +125,8 @@ public abstract class AbstractSurefireMojo
 {
 private static final Platform PLATFORM = new Platform();
 
+private static final File SYSTEM_TMP_DIR = new File( System.getProperty( 
"java.io.tmpdir" ) );
+
 private final ProviderDetector providerDetector = new ProviderDetector();
 
 /**
@@ -342,7 +352,12 @@ public abstract class AbstractSurefireMojo
 private String forkMode;
 
 /**
- * Relative path to project.build.directory containing internal 
Surefire temporary files.
+ * Relative path to temporary-surefire-boot directory containing 
internal Surefire temporary files.
+ * 
+ * The temporary-surefire-boot directory is 
project.build.directory on most platforms or
+ * system default temporary-directory specified by 

maven-surefire git commit: [SUREFIRE-1400] Windows surefire boot directory should appear in system default temporary-directory

2017-08-01 Thread tibordigana
Repository: maven-surefire
Updated Branches:
  refs/heads/SUREFIRE-1400 [created] 1e4bdbf03


[SUREFIRE-1400] Windows surefire boot directory should appear in system default 
temporary-directory


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

Branch: refs/heads/SUREFIRE-1400
Commit: 1e4bdbf03a2f697b435de6f179eda4e4b617d15e
Parents: 26527d1
Author: Tibor17 
Authored: Tue Aug 1 09:37:48 2017 +0200
Committer: Tibor17 
Committed: Tue Aug 1 09:37:48 2017 +0200

--
 .../plugin/surefire/AbstractSurefireMojo.java   |  92 ++-
 .../surefire/booterclient/ForkStarter.java  |   1 +
 .../surefire/AbstractSurefireMojoTest.java  | 111 +++
 .../apache/maven/surefire/JUnit4SuiteTest.java  |   4 +-
 .../maven/surefire/util/ReflectionUtils.java|  29 -
 .../surefire/util/ReflectionUtilsTest.java  |   6 +-
 surefire-integration-tests/pom.xml  |   2 +
 .../maven/surefire/its/LongWindowsPathIT.java   |  55 +
 .../surefire/its/fixture/HelperAssertions.java  |  13 +--
 .../test/resources/long-windows-path/pom.xml|  57 ++
 .../test/java/longwindowspath/BasicTest.java|  32 ++
 11 files changed, 382 insertions(+), 20 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/1e4bdbf0/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
--
diff --git 
a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
 
b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
index b3df567..a661d40 100644
--- 
a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
+++ 
b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
@@ -76,12 +76,14 @@ import org.apache.maven.surefire.testset.TestRequest;
 import org.apache.maven.surefire.testset.TestSetFailedException;
 import org.apache.maven.surefire.util.DefaultScanResult;
 import org.apache.maven.surefire.util.RunOrder;
+import org.apache.maven.surefire.util.SurefireReflectionException;
 import org.apache.maven.toolchain.Toolchain;
 import org.apache.maven.toolchain.ToolchainManager;
 
 import javax.annotation.Nonnull;
 import java.io.File;
 import java.io.IOException;
+import java.lang.reflect.Array;
 import java.lang.reflect.Method;
 import java.util.ArrayList;
 import java.util.Arrays;
@@ -98,12 +100,18 @@ import java.util.Set;
 import java.util.concurrent.ConcurrentHashMap;
 
 import static java.lang.Thread.currentThread;
+import static org.apache.commons.lang3.JavaVersion.JAVA_1_7;
+import static org.apache.commons.lang3.SystemUtils.IS_OS_WINDOWS;
+import static org.apache.commons.lang3.SystemUtils.isJavaVersionAtLeast;
 import static org.apache.maven.shared.utils.StringUtils.capitalizeFirstLetter;
 import static org.apache.maven.shared.utils.StringUtils.isEmpty;
 import static org.apache.maven.shared.utils.StringUtils.isNotBlank;
 import static org.apache.maven.shared.utils.StringUtils.split;
 import static org.apache.maven.surefire.suite.RunResult.failure;
 import static org.apache.maven.surefire.suite.RunResult.noTestsRun;
+import static org.apache.maven.surefire.util.ReflectionUtils.invokeGetter;
+import static 
org.apache.maven.surefire.util.ReflectionUtils.invokeStaticMethod;
+import static org.apache.maven.surefire.util.ReflectionUtils.tryLoadClass;
 
 /**
  * Abstract base class for running tests using Surefire.
@@ -117,6 +125,8 @@ public abstract class AbstractSurefireMojo
 {
 private static final Platform PLATFORM = new Platform();
 
+private static final File SYSTEM_TMP_DIR = new File( System.getProperty( 
"java.io.tmpdir" ) );
+
 private final ProviderDetector providerDetector = new ProviderDetector();
 
 /**
@@ -342,7 +352,12 @@ public abstract class AbstractSurefireMojo
 private String forkMode;
 
 /**
- * Relative path to project.build.directory containing internal 
Surefire temporary files.
+ * Relative path to temporary-surefire-boot directory containing 
internal Surefire temporary files.
+ * 
+ * The temporary-surefire-boot directory is 
project.build.directory on most platforms or
+ * system default temporary-directory specified by the system 
property {@code java.io.tmpdir}
+ * on Windows (see https://issues.apache.org/jira/browse/SUREFIRE-1400;>SUREFIRE-1400).
+ * 
  * It is deleted after the test set has completed.