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:
Brett Leslie Porter 2005-09-11 05:05:03 +00:00
parent ed0b352c9a
commit ef0b3326db
1 changed files with 5 additions and 5 deletions

View File

@ -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 );
}
}