diff options
author | Mark Donszelmann <Mark.Donszelmann@gmail.com> | 2009-12-23 15:13:10 +0100 |
---|---|---|
committer | Mark Donszelmann <Mark.Donszelmann@gmail.com> | 2009-12-23 15:13:10 +0100 |
commit | b9a34889f9219d3f36d8af8a9f74af8872a7befb (patch) | |
tree | 3e6e36dece65b827b847e2f0c1698ea6c8027b4b | |
parent | bc0b2aa4de6ee76730364b2d769efd0e78994835 (diff) | |
download | maven-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.java | 4 |
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(); |