Good day to you, Aaron,
add @parameter to your mojos field so that it can be configured in the pom.
/**
* @parameter
*/
private String test;
add "expression=${...}" to @parameter so that it can be referenced as
a property ( i.e from the commandline )
/**
* @parameter expression=${test}
*/
private String test;
Cheers,
Franz
On 2/1/07, Aaron Digulla <[EMAIL PROTECTED]> wrote:
Hello,
I have a mojo which has dynamic parameters/properties which have to be
specified via the commandline.
When I'm in my execute() method, what do I have to call to see "value"
when I call mvn with "-Dtest=value"?
They aren't in MavenProject/Model.getProperties()...
Regards,
--
Aaron "Optimizer" Digulla a.k.a. Philmann Dark
"It's not the universe that's limited, it's our imagination.
Follow me and I'll show you something beyond the limits."
http://www.pdark.de/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]