mirror of
https://github.com/apache/maven.git
synced 2025-03-06 16:49:27 +00:00
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 void setFoo( String fooValue )
|
||||
|
||||
public void setBar( String barValue )
|
||||
{
|
||||
this.barValue = barValue;
|
||||
this.bar = barValue + ".baz";
|
||||
|
||||
setBarSetterExecuted = true;
|
||||
}
|
||||
@ -81,9 +81,9 @@ public void execute()
|
||||
touch( outDir, fooValue );
|
||||
}
|
||||
|
||||
if ( barValue != null && setBarSetterExecuted )
|
||||
if ( bar != null && setBarSetterExecuted )
|
||||
{
|
||||
touch( outDir, barValue );
|
||||
touch( outDir, bar );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user