Package: maven-debian-helper
Version: 1.4.2~test1
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu natty ubuntu-patch


The install mojo currently ignores --keep-elements which means that 
this flag does not function when used in a <pkg>.poms file.


-- System Information:
Debian Release: squeeze/sid
  APT prefers maverick-updates
  APT policy: (500, 'maverick-updates'), (500, 'maverick-security'), (500, 
'maverick')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.35-25-generic (SMP w/8 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--- maven-debian-helper-1.4.1/maven-debian-plugin/src/main/java/org/debian/maven/plugin/SysInstallMojo.java	2010-12-02 22:45:44.000000000 +0000
+++ maven-debian-helper-1.4.2~test1/maven-debian-plugin/src/main/java/org/debian/maven/plugin/SysInstallMojo.java	2011-02-14 10:21:28.000000000 +0000
@@ -468,6 +468,12 @@
         params.add("--no-parent");
         System.out.println("\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());
+    }
     
     params.add(pomFile.getAbsolutePath());
     params.add(cleanedPomSrcPath());

Reply via email to