commit | dfda86554ac420713b0eaa48f5ee6b49f8f48a20 | [log] [tgz] |
---|---|---|
author | Brett Porter <brett@apache.org> | Fri Apr 04 06:11:26 2014 +0000 |
committer | Brett Porter <brett@apache.org> | Fri Apr 04 06:11:26 2014 +0000 |
tree | 29e3747200239f86eb118771e8fa5f04e7ab11cc | |
parent | b2cb612d3630362d2cc913982a2b59fef9c28e95 [diff] |
[NPANDAY-614] allow extra arguments to be specified git-svn-id: https://svn.apache.org/repos/asf/incubator/npanday/trunk@1584533 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/plugins/maven-resgen-plugin/src/main/java/npanday/plugin/resgen/ExistingResxGenerator.java b/plugins/maven-resgen-plugin/src/main/java/npanday/plugin/resgen/ExistingResxGenerator.java index ff90d9b..cbec840 100644 --- a/plugins/maven-resgen-plugin/src/main/java/npanday/plugin/resgen/ExistingResxGenerator.java +++ b/plugins/maven-resgen-plugin/src/main/java/npanday/plugin/resgen/ExistingResxGenerator.java
@@ -50,6 +50,11 @@ private String settingsPath; /** + * @parameter + */ + private List<String> extraArgs; + + /** * @component */ private RepositoryRegistry repositoryRegistry; @@ -187,7 +192,12 @@ else { commands.add( resourceDirectory + File.separator + getFileNameMinusExtension(sourceFile) + ".resources" ); - } + } + + if (extraArgs != null) { + commands.addAll( extraArgs ); + } + return commands; }