From b9a34889f9219d3f36d8af8a9f74af8872a7befb Mon Sep 17 00:00:00 2001 From: Mark Donszelmann Date: Wed, 23 Dec 2009 15:13:10 +0100 Subject: Skip non existing test --- src/main/java/org/apache/maven/plugin/nar/NarTestMojo.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main') 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(); -- cgit v1.2.3