mirror of https://github.com/apache/maven.git
test that property's work with default setter
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@280076 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ed0b352c9a
commit
ef0b3326db
|
@ -32,9 +32,9 @@ public class CoreItMojoWithSetters
|
|||
private String fooValue;
|
||||
|
||||
/**
|
||||
* @parameter property="bar"
|
||||
* @parameter
|
||||
*/
|
||||
private String barValue;
|
||||
private String bar;
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
// Setters
|
||||
|
@ -58,7 +58,7 @@ public class CoreItMojoWithSetters
|
|||
|
||||
public void setBar( String barValue )
|
||||
{
|
||||
this.barValue = barValue;
|
||||
this.bar = barValue + ".baz";
|
||||
|
||||
setBarSetterExecuted = true;
|
||||
}
|
||||
|
@ -81,9 +81,9 @@ public class CoreItMojoWithSetters
|
|||
touch( outDir, fooValue );
|
||||
}
|
||||
|
||||
if ( barValue != null && setBarSetterExecuted )
|
||||
if ( bar != null && setBarSetterExecuted )
|
||||
{
|
||||
touch( outDir, barValue );
|
||||
touch( outDir, bar );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue