summaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/apache/maven/plugin/nar/NarGnuConfigureMojo.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/main/java/org/apache/maven/plugin/nar/NarGnuConfigureMojo.java b/src/main/java/org/apache/maven/plugin/nar/NarGnuConfigureMojo.java
index 1389a4d..d847812 100644
--- a/src/main/java/org/apache/maven/plugin/nar/NarGnuConfigureMojo.java
+++ b/src/main/java/org/apache/maven/plugin/nar/NarGnuConfigureMojo.java
@@ -168,18 +168,17 @@ public class NarGnuConfigureMojo
String arguments[] = null;
if (args != null)
{
- arguments = new String[2 + args.length];
+ arguments = new String[1 + args.length];
for (int i = 0; i < args.length; ++i)
{
- arguments[i+2] = args[i];
+ arguments[i+1] = args[i];
}
}
else
{
- arguments = new String[2];
+ arguments = new String[1];
}
- arguments[0] = "./";
- arguments[1] = autogen.getName();
+ arguments[0] = "./" + autogen.getName();
getLog().info( "args: " + Arrays.toString(arguments) );