This is an automated email from the git hooks/post-receive script. ebourg-guest pushed a commit to branch master in repository maven-debian-helper.
commit 323b03652be95bd6b8d746fe7cd329eb1196a8c0 Author: Emmanuel Bourg <[email protected]> Date: Wed Jun 29 23:05:50 2016 +0200 Use a unique method in SysInstallMojo to build the path of an artifact --- .../main/java/org/debian/maven/plugin/SysInstallMojo.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/debian-maven-plugin/src/main/java/org/debian/maven/plugin/SysInstallMojo.java b/debian-maven-plugin/src/main/java/org/debian/maven/plugin/SysInstallMojo.java index 080d3e7..d96a6fd 100644 --- a/debian-maven-plugin/src/main/java/org/debian/maven/plugin/SysInstallMojo.java +++ b/debian-maven-plugin/src/main/java/org/debian/maven/plugin/SysInstallMojo.java @@ -394,21 +394,28 @@ public class SysInstallMojo extends AbstractMojo { * returns e.g. /org/debian/maven/debian-maven-plugin/0.1/ */ protected final String repoPath() { - return "/" + groupId.replace('.', '/') + "/" + artifactId + "/" + version + "/"; + return artifactPath(groupId, artifactId, version); } /** * returns e.g. /org/debian/maven/debian-maven-plugin/0.1/ */ protected final String destRepoPath() { - return "/" + destGroupId.replace('.', '/') + "/" + destArtifactId + "/" + version + "/"; + return artifactPath(destGroupId, destArtifactId, version); } /** * returns e.g. /org/debian/maven/debian-maven-plugin/debian/ */ protected final String debianRepoPath() { - return "/" + destGroupId.replace('.', '/') + "/" + destArtifactId + "/" + debianVersion + "/"; + return artifactPath(destGroupId, destArtifactId, debianVersion); + } + + /** + * Path to the files of an artifact relatively to the root of the repository. + */ + private String artifactPath(String groupId, String artifactId, String version) { + return "/" + groupId.replace('.', '/') + "/" + artifactId + "/" + version + "/"; } /** -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/maven-debian-helper.git _______________________________________________ pkg-java-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

