[maven-repo-helper] 02/02: Parse the systemPath of the dependencies (part of #723919)

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Wed Feb 5 14:16:37 UTC 2014


This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to branch master
in repository maven-repo-helper.

commit 205e427508207828549bfd08f2d9938d341eae1c
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Wed Feb 5 14:41:53 2014 +0100

    Parse the systemPath of the dependencies (part of #723919)
---
 src/main/java/org/debian/maven/repo/Dependency.java | 11 +++++++++++
 src/main/java/org/debian/maven/repo/POMReader.java  |  2 ++
 2 files changed, 13 insertions(+)

diff --git a/src/main/java/org/debian/maven/repo/Dependency.java b/src/main/java/org/debian/maven/repo/Dependency.java
index 5136261..74e3da2 100644
--- a/src/main/java/org/debian/maven/repo/Dependency.java
+++ b/src/main/java/org/debian/maven/repo/Dependency.java
@@ -46,6 +46,7 @@ public class Dependency implements Comparable<Dependency>, Cloneable {
     private String classifier;
     private String relativePath;
     private boolean superPom;
+    private String systemPath;
 
     public Dependency(String groupId, String artifactId, String type, String version) {
         this.groupId = groupId;
@@ -76,6 +77,7 @@ public class Dependency implements Comparable<Dependency>, Cloneable {
         this.optional = dependency.optional;
         this.classifier = dependency.classifier;
         this.relativePath = dependency.relativePath;
+        this.systemPath = dependency.systemPath;
         this.superPom = dependency.superPom;
     }
 
@@ -167,6 +169,15 @@ public class Dependency implements Comparable<Dependency>, Cloneable {
         this.relativePath = relativePath;
     }
 
+    public String getSystemPath() {
+        return systemPath;
+    }
+
+    @Deprecated
+    public void setSystemPath(String systemPath) {
+        this.systemPath = systemPath;
+    }
+
     @Deprecated
     public void setSuperPom(boolean superPom) {
         this.superPom = superPom;
diff --git a/src/main/java/org/debian/maven/repo/POMReader.java b/src/main/java/org/debian/maven/repo/POMReader.java
index 47b2408..44a56d2 100644
--- a/src/main/java/org/debian/maven/repo/POMReader.java
+++ b/src/main/java/org/debian/maven/repo/POMReader.java
@@ -121,6 +121,8 @@ public class POMReader {
                             currentDependency.setScope(value);
                         } else if ("classifier".equals(element)) {
                             currentDependency.setClassifier(value);
+                        } else if ("systemPath".equals(element)) {
+                            parent.setSystemPath(value);
                         }
                     } else if (path.size() == 3 && "modules".equals(path.parent(1))) {
                         // we're not interested in the modules section inside a profiles section

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/maven-repo-helper.git



More information about the pkg-java-commits mailing list