You are viewing a plain text version of this content. The canonical link for it is here.
Posted to npanday-commits@incubator.apache.org by br...@apache.org on 2014/04/04 06:11:27 UTC

svn commit: r1584533 - /incubator/npanday/trunk/plugins/maven-resgen-plugin/src/main/java/npanday/plugin/resgen/ExistingResxGenerator.java

Author: brett
Date: Fri Apr  4 06:11:26 2014
New Revision: 1584533

URL: http://svn.apache.org/r1584533
Log:
[NPANDAY-614] allow extra arguments to be specified

Modified:
    incubator/npanday/trunk/plugins/maven-resgen-plugin/src/main/java/npanday/plugin/resgen/ExistingResxGenerator.java

Modified: incubator/npanday/trunk/plugins/maven-resgen-plugin/src/main/java/npanday/plugin/resgen/ExistingResxGenerator.java
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/plugins/maven-resgen-plugin/src/main/java/npanday/plugin/resgen/ExistingResxGenerator.java?rev=1584533&r1=1584532&r2=1584533&view=diff
==============================================================================
--- incubator/npanday/trunk/plugins/maven-resgen-plugin/src/main/java/npanday/plugin/resgen/ExistingResxGenerator.java (original)
+++ incubator/npanday/trunk/plugins/maven-resgen-plugin/src/main/java/npanday/plugin/resgen/ExistingResxGenerator.java Fri Apr  4 06:11:26 2014
@@ -50,6 +50,11 @@ public class ExistingResxGenerator exten
     private String settingsPath;
 
     /**
+     * @parameter
+     */
+    private List<String> extraArgs;
+
+    /**
      * @component
      */
     private RepositoryRegistry repositoryRegistry;
@@ -187,7 +192,12 @@ public class ExistingResxGenerator exten
         else
         {
         	commands.add( resourceDirectory + File.separator + getFileNameMinusExtension(sourceFile) + ".resources"   );                               
-        }       
+        }
+
+        if (extraArgs != null) {
+            commands.addAll( extraArgs );
+        }
+
         return commands;
     }