restored mojo with setter IT

This commit is contained in:
Hervé Boutemy 2014-06-01 18:21:43 +02:00
parent 25a70d22de
commit 4de651945c
1 changed files with 5 additions and 11 deletions

View File

@ -40,15 +40,9 @@ public class CoreItMojoWithSetters
private String outputDirectoryValue;
/**
* @parameter
*/
private String foo;
/*
* was previously
* @parameter property="foo"
* private String fooValue;
* with plugin-tools 2.9, but this feature was removed from plugin-tools 3.0: see MPLUGIN-199
* @parameter name="foo"
*/
private String fooValue;
/**
* @parameter
@ -71,7 +65,7 @@ public class CoreItMojoWithSetters
getLog().info( "setFoo: " + fooValue );
this.foo = fooValue;
this.fooValue = fooValue;
setFooSetterExecuted = true;
}
@ -101,12 +95,12 @@ public class CoreItMojoWithSetters
File outDir = new File( outputDirectoryValue );
// Test parameter setting
if ( foo != null && setFooSetterExecuted )
if ( fooValue != null && setFooSetterExecuted )
{
getLog().info( "fooValue != null && setFooSetterExecuted" );
touch( outDir, foo );
touch( outDir, fooValue );
}
if ( bar != null && setBarSetterExecuted )