summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/apache/maven/plugin/nar/NarTestMojo.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/apache/maven/plugin/nar/NarTestMojo.java b/src/main/java/org/apache/maven/plugin/nar/NarTestMojo.java
index ce5c8f0..549be88 100644
--- a/src/main/java/org/apache/maven/plugin/nar/NarTestMojo.java
+++ b/src/main/java/org/apache/maven/plugin/nar/NarTestMojo.java
@@ -105,6 +105,10 @@ public class NarTestMojo
new File( getLayout().getBinDirectory( getTargetDirectory(), getMavenProject().getArtifactId(),
getMavenProject().getVersion(), getAOL().toString() ),
project.getArtifactId() );
+ if (!executable.exists()) {
+ getLog().warn( "Skipping executable "+executable );
+ return;
+ }
getLog().info( "Running executable " + executable );
List args = library.getArgs();
int result =