summaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorAndrew Johnson <ajohnson@arizona.(none)>2010-05-01 02:33:16 +0800
committerMark Donszelmann <Mark.Donszelmann@gmail.com>2010-05-14 06:34:19 +0800
commit655e69d2caa527ccb1287cf8a43d1105df250099 (patch)
treec03c82367c112a7a4959f338c35fc52839d9ba32 /src/main/java/org
parentd070a872d4a8e38caae516da5247208be2fd74ef (diff)
downloadmaven-nar-plugin-655e69d2caa527ccb1287cf8a43d1105df250099.tar.gz
maven-nar-plugin-655e69d2caa527ccb1287cf8a43d1105df250099.tar.bz2
maven-nar-plugin-655e69d2caa527ccb1287cf8a43d1105df250099.tar.xz
maven-nar-plugin-655e69d2caa527ccb1287cf8a43d1105df250099.zip
Fixing GNU autogen call in maven-nar-plugin. Current implementation causes "[ERROR] ./: ./: is a directory" when there is an autogen script present.
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) );