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 a1da230..ce5c8f0 100644
--- a/src/main/java/org/apache/maven/plugin/nar/NarTestMojo.java
+++ b/src/main/java/org/apache/maven/plugin/nar/NarTestMojo.java
@@ -74,6 +74,10 @@ public class NarTestMojo
if ( test.shouldRun() )
{
String name = getTestTargetDirectory().getPath() + "/bin/" + getAOL() + "/" + test.getName();
+ if (!new File(name).exists()) {
+ getLog().warn( "Skipping test "+name );
+ return;
+ }
getLog().info( "Running test " + name );
File workingDir = getMavenProject().getBasedir();