summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Donszelmann <Mark.Donszelmann@gmail.com>2009-11-02 15:26:26 +0100
committerMark Donszelmann <Mark.Donszelmann@gmail.com>2009-11-02 15:26:26 +0100
commit074146277b2f385869435bd84deccdf7386cb83d (patch)
treee2acd673c83be2df03d46460d668e74c9f0b83a5
parent4f5f88c356ed02b8135c7b4b03a816dbe8f975b8 (diff)
downloadmaven-nar-plugin-074146277b2f385869435bd84deccdf7386cb83d.tar.gz
maven-nar-plugin-074146277b2f385869435bd84deccdf7386cb83d.tar.bz2
maven-nar-plugin-074146277b2f385869435bd84deccdf7386cb83d.tar.xz
maven-nar-plugin-074146277b2f385869435bd84deccdf7386cb83d.zip
Fixed NAR-99
-rw-r--r--src/main/java/org/apache/maven/plugin/nar/NarGnuConfigureMojo.java7
1 files changed, 7 insertions, 0 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 a0cf60a..f1462de 100644
--- a/src/main/java/org/apache/maven/plugin/nar/NarGnuConfigureMojo.java
+++ b/src/main/java/org/apache/maven/plugin/nar/NarGnuConfigureMojo.java
@@ -83,6 +83,13 @@ public class NarGnuConfigureMojo
if ( !gnuConfigureSkip && !gnuAutogenSkip && autogen.exists() )
{
getLog().info( "Running GNU " + AUTOGEN );
+
+ // fix missing config directory
+ File configDir = new File(targetDir, "config");
+ if (!configDir.exists()) {
+ configDir.mkdirs();
+ }
+
NarUtil.makeExecutable( autogen, getLog() );
int result = NarUtil.runCommand( "./" + autogen.getName(), null, targetDir, null, getLog() );
if ( result != 0 )