From 074146277b2f385869435bd84deccdf7386cb83d Mon Sep 17 00:00:00 2001 From: Mark Donszelmann Date: Mon, 2 Nov 2009 15:26:26 +0100 Subject: Fixed NAR-99 --- src/main/java/org/apache/maven/plugin/nar/NarGnuConfigureMojo.java | 7 +++++++ 1 file changed, 7 insertions(+) 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 ) -- cgit v1.2.3