You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ti...@apache.org on 2017/06/06 05:58:00 UTC

maven-surefire git commit: Fixed Javadoc after 1376 to successful build.

Repository: maven-surefire
Updated Branches:
  refs/heads/master 9c77aa40d -> dd518d2b1


Fixed Javadoc after 1376 to successful build.


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

Branch: refs/heads/master
Commit: dd518d2b14e797014ec740360afc3d2c79642b3a
Parents: 9c77aa4
Author: Tibor17 <ti...@apache.org>
Authored: Tue Jun 6 07:57:46 2017 +0200
Committer: Tibor17 <ti...@apache.org>
Committed: Tue Jun 6 07:57:46 2017 +0200

----------------------------------------------------------------------
 .../maven/plugin/surefire/SurefireHelper.java   | 27 +++++++++++---------
 1 file changed, 15 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/dd518d2b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/SurefireHelper.java
----------------------------------------------------------------------
diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/SurefireHelper.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/SurefireHelper.java
index cd49249..dd29cb4 100644
--- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/SurefireHelper.java
+++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/SurefireHelper.java
@@ -57,15 +57,15 @@ public final class SurefireHelper
     public static final String DUMPSTREAM_FILENAME_FORMATTER = DUMP_FILE_PREFIX + "%d" + DUMPSTREAM_FILE_EXT;
 
     /**
-     * see sun/nio/fs/WindowsPath <br>
-     * http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/7534523b4174/src/windows/classes/sun/nio/fs/WindowsPath.java#l46
-     * https://msdn.microsoft.com/en-us/library/aa365247(VS.85).aspx#maxpath
+     * The maximum path that does not require long path prefix on Windows.<br>
+     * See {@code sun/nio/fs/WindowsPath} in
+     * <a href=
+     * "http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/7534523b4174/src/windows/classes/sun/nio/fs/WindowsPath.java#l46">
+     * OpenJDK</a>
+     * and <a href="https://msdn.microsoft.com/en-us/library/aa365247(VS.85).aspx#maxpath">MSDN article</a>.
      * <br>
-     * <br>
-     * The maximum path that does not require long path prefix. On Windows <br>
-     * the maximum path is 260 minus 1 (NUL) but for directories it is 260 <br>
-     * minus 12 minus 1 (to allow for the creation of a 8.3 file in the <br>
-     * directory).
+     * The maximum path is 260 minus 1 (NUL) but for directories it is 260
+     * minus 12 minus 1 (to allow for the creation of a 8.3 file in the directory).
      */
     private static final int MAX_PATH_LENGTH_WINDOWS = 247;
 
@@ -180,11 +180,14 @@ public final class SurefireHelper
     }
 
     /**
-     * Normalized file path for Windows; otherwise returns {@code path}.
-     * <br>
-     * http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/7534523b4174/src/windows/classes/sun/nio/fs/WindowsPath.java#l46
+     * Escape file path for Windows when the path is too long; otherwise returns {@code path}.
      * <br>
-     * https://msdn.microsoft.com/en-us/library/aa365247(VS.85).aspx#maxpath
+     * See <a href=
+     * "http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/7534523b4174/src/windows/classes/sun/nio/fs/WindowsPath.java#l46">
+     * sun/nio/fs/WindowsPath</a> for "long path" value explanation (=247), and
+     * <a href="https://msdn.microsoft.com/en-us/library/aa365247(VS.85).aspx#maxpath">MSDN article</a>
+     * for detailed escaping strategy explanation: in short, {@code \\?\} prefix for path with drive letter
+     * or {@code \\?\UNC\} for UNC path.
      *
      * @param path    source path
      * @return escaped to platform path