summaryrefslogtreecommitdiff
path: root/src/main/java/org/apache/maven/plugin/nar/NarTestCompileMojo.java
diff options
context:
space:
mode:
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