[SCM] UNNAMED PROJECT branch, master, updated. debian/1.6.2-9-g859934e

Emmanuel Bourg ebourg at apache.org
Tue Jun 11 11:21:07 UTC 2013


The following commit has been merged in the master branch:
commit c340e0ca93b5e3fb4834cd4b8a32e4dc6d1004c1
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Tue Jun 11 11:48:02 2013 +0200

    Made DirectoryUtils package private and enhanced its javadoc

diff --git a/debian-maven-plugin/src/main/java/org/debian/maven/plugin/DirectoryUtils.java b/debian-maven-plugin/src/main/java/org/debian/maven/plugin/DirectoryUtils.java
index 6193237..9b87e92 100644
--- a/debian-maven-plugin/src/main/java/org/debian/maven/plugin/DirectoryUtils.java
+++ b/debian-maven-plugin/src/main/java/org/debian/maven/plugin/DirectoryUtils.java
@@ -1,9 +1,5 @@
 package org.debian.maven.plugin;
 
-import java.util.ArrayList;
-import java.util.List;
-import java.util.StringTokenizer;
-
 /*
  * Copyright 2011 Ludovic Claude.
  *
@@ -20,9 +16,20 @@ import java.util.StringTokenizer;
  * limitations under the License.
  */
 
+import java.util.ArrayList;
+import java.util.List;
+import java.util.StringTokenizer;
 
-public class DirectoryUtils {
+class DirectoryUtils {
 
+    /**
+     * Returns the relative path to a file relatively to a source directory.
+     * The path returned can be used to create a relative symbolic link
+     * in the source directory to the target file.
+     * 
+     * @param absSrcDir      the absolute path of the source directory (e.g. /usr/share/java)
+     * @param absTargetPath  the absolute path of the target file (e.g. /usr/share/maven-repo/foo/foo.jar)
+     */
     public static String relativePath(String absSrcDir, String absTargetPath) {
         List<String> src = splitDirs(absSrcDir);
         List<String> target = splitDirs(absTargetPath);

-- 
UNNAMED PROJECT



More information about the pkg-java-commits mailing list