summaryrefslogtreecommitdiff
path: root/src/main/java/org/apache/maven/plugin/nar/NarTestCompileMojo.java
diff options
context:
space:
mode:
authorMark Donszelmann <Mark.Donszelmann@gmail.com>2009-12-01 12:08:03 +0100
committerMark Donszelmann <Mark.Donszelmann@gmail.com>2009-12-01 12:08:03 +0100
commita18df54301d3c988c167506b832323fec973a936 (patch)
treee5ab728b2441ae5f2ac9bd0d3cead8f364c0f7cf /src/main/java/org/apache/maven/plugin/nar/NarTestCompileMojo.java
parentb833ebdbbe47d3a4190612e95fd5e7fc250445bd (diff)
downloadmaven-nar-plugin-a18df54301d3c988c167506b832323fec973a936.tar.gz
maven-nar-plugin-a18df54301d3c988c167506b832323fec973a936.tar.bz2
maven-nar-plugin-a18df54301d3c988c167506b832323fec973a936.tar.xz
maven-nar-plugin-a18df54301d3c988c167506b832323fec973a936.zip
Fixed NAR-55 and NAR-113
Diffstat (limited to 'src/main/java/org/apache/maven/plugin/nar/NarTestCompileMojo.java')
-rw-r--r--src/main/java/org/apache/maven/plugin/nar/NarTestCompileMojo.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/main/java/org/apache/maven/plugin/nar/NarTestCompileMojo.java b/src/main/java/org/apache/maven/plugin/nar/NarTestCompileMojo.java
index 5c2bd36..6fd47ac 100644
--- a/src/main/java/org/apache/maven/plugin/nar/NarTestCompileMojo.java
+++ b/src/main/java/org/apache/maven/plugin/nar/NarTestCompileMojo.java
@@ -57,6 +57,8 @@ public class NarTestCompileMojo
{
return;
}
+
+ validate();
// make sure destination is there
getTestTargetDirectory().mkdirs();
@@ -106,14 +108,11 @@ public class NarTestCompileMojo
runtimeType.setValue( getRuntime( getAOL() ) );
task.setRuntime( runtimeType );
- int noOfCompilers = 0;
-
// add C++ compiler
CompilerDef cpp = getCpp().getCompiler( type, test.getName() );
if ( cpp != null )
{
task.addConfiguredCompiler( cpp );
- noOfCompilers++;
}
// add C compiler
@@ -121,7 +120,6 @@ public class NarTestCompileMojo
if ( c != null )
{
task.addConfiguredCompiler( c );
- noOfCompilers++;
}
// add Fortran compiler
@@ -129,7 +127,6 @@ public class NarTestCompileMojo
if ( fortran != null )
{
task.addConfiguredCompiler( fortran );
- noOfCompilers++;
}
// add java include paths