diff options
author | Mark Donszelmann <Mark.Donszelmann@gmail.com> | 2009-11-02 15:26:26 +0100 |
---|---|---|
committer | Mark Donszelmann <Mark.Donszelmann@gmail.com> | 2009-11-02 15:26:26 +0100 |
commit | 074146277b2f385869435bd84deccdf7386cb83d (patch) | |
tree | e2acd673c83be2df03d46460d668e74c9f0b83a5 /src/main | |
parent | 4f5f88c356ed02b8135c7b4b03a816dbe8f975b8 (diff) | |
download | maven-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
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/apache/maven/plugin/nar/NarGnuConfigureMojo.java | 7 |
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 ) |