summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Donszelmann <Mark.Donszelmann@gmail.com>2009-12-23 15:13:10 +0100
committerMark Donszelmann <Mark.Donszelmann@gmail.com>2009-12-23 15:13:10 +0100
commitb9a34889f9219d3f36d8af8a9f74af8872a7befb (patch)
tree3e6e36dece65b827b847e2f0c1698ea6c8027b4b
parentbc0b2aa4de6ee76730364b2d769efd0e78994835 (diff)
downloadmaven-nar-plugin-b9a34889f9219d3f36d8af8a9f74af8872a7befb.tar.gz
maven-nar-plugin-b9a34889f9219d3f36d8af8a9f74af8872a7befb.tar.bz2
maven-nar-plugin-b9a34889f9219d3f36d8af8a9f74af8872a7befb.tar.xz
maven-nar-plugin-b9a34889f9219d3f36d8af8a9f74af8872a7befb.zip
Skip non existing test
-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();