You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Sebastian Himberger <se...@gmx.de> on 2006/09/24 22:19:08 UTC
[m2] Mojo-Development: Possibility to let expression reference a
field of the mojo?
Hi,
im developing a plugin and have a Mojo similar to this:
class MyMojo {
/**
* @paremeter expression="${pom.xxx}"
*/
private String name;
/**
* @paremeter
*/
private File folder
...
}
I want the value of folder to use the private field "name" of MyMojo to
build up the complete value. So e.g. /folder/${name}/folder. I can't use
the same expression as in name because if the plugin user overrides the
field "name" the field "folder" should change accordingly and the user
should not(!) have to change both values. My current idea is to
implement a getter-method for folder which constructs the value but i'm
interested if it would be possible to reference another mojo parameter
inside an expression. Is this somehow possible?
Thanks very much in advance.
best regards
Sebastian
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org