[maven-debian-helper] 02/03: Use the Maven logger instead of System.out in SysInstallMojo

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Thu Jun 30 08:33:10 UTC 2016


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 fa0117465be0f316c020c6de0d1b4c6ad3d259c0
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Thu Jun 30 09:37:26 2016 +0200

    Use the Maven logger instead of System.out in SysInstallMojo
---
 .../java/org/debian/maven/plugin/SysInstallMojo.java   | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 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 d96a6fd..a28b6a3 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
@@ -610,7 +610,7 @@ public class SysInstallMojo extends AbstractMojo {
     protected void copyJar() throws IOException {
         File jarFile = new File(fullJarName());
         if (jarFile.exists()) {
-            System.out.println("Install jar file into Maven repo: " + jarFile.getAbsolutePath());
+            getLog().info("Install jar file into Maven repo: " + jarFile.getAbsolutePath());
             FileUtils.copyFile(jarFile, new File(jarDestPath()));
             if (debianVersion != null && !debianVersion.equals(version)) {
                 mkdir(debianFullRepoPath());
@@ -625,7 +625,7 @@ public class SysInstallMojo extends AbstractMojo {
     private void copyJarToUsj() throws IOException {
         File jarFile = new File(fullJarName());
         if (jarFile.exists()) {
-            System.out.println("Install jar for " + artifactId + " into /usr/share/java");
+            getLog().info("Install jar for " + artifactId + " into /usr/share/java");
             mkdir(compatSharePath());
             if (noUsjVersionless) {
                 FileUtils.copyFile(jarFile, new File(versionedFullCompatPath()));
@@ -735,22 +735,22 @@ public class SysInstallMojo extends AbstractMojo {
         String mavenPublishedRulesPath = new File(debianDir, mavenPublishedRules).getAbsolutePath();
         params.add("--published-rules=" + mavenPublishedRulesPath);
 
-        System.out.println("Cleaning pom file: " + pomFile + " with options:");
-        System.out.println("\t--keep-pom-version --package=" + destPackage);
-        System.out.println("\t--rules=" + mavenRulesPath);
-        System.out.println("\t--ignore-rules=" + mavenIgnoreRulesPath);
-        System.out.println("\t--published-rules=" + mavenPublishedRulesPath);
+        getLog().info("Cleaning pom file: " + pomFile + " with options:");
+        getLog().info("\t--keep-pom-version --package=" + destPackage);
+        getLog().info("\t--rules=" + mavenRulesPath);
+        getLog().info("\t--ignore-rules=" + mavenIgnoreRulesPath);
+        getLog().info("\t--published-rules=" + mavenPublishedRulesPath);
 
         // add optional --no-parent option
         if (pomOption != null && pomOption.isNoParent()) {
             params.add("--no-parent");
-            System.out.println("\t--no-parent");
+            getLog().info("\t--no-parent");
         }
 
         // add options --keep-elements option
         if (pomOption != null && pomOption.getKeepElements() != null) {
             params.add("--keep-elements=" + pomOption.getKeepElements());
-            System.out.println("\t--keep-elements=" + pomOption.getKeepElements());
+            getLog().info("\t--keep-elements=" + pomOption.getKeepElements());
         }
 
         params.add(pomFile.getAbsolutePath());

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



More information about the pkg-java-commits mailing list