You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Gajo Csaba <cs...@cosylab.com> on 2009/12/02 13:31:14 UTC

How to change the plugin config from a mojo?

Hello,

I have a mojo which requires a project. When it starts, it gets the 
project's build plugins, searches for a specific one, and then takes its 
configuration and changes is. The configuration is an Xpp3Dom object, 
which I convert to String with toString()... but how do I convert that 
String back to Xpp3Dom?

This is what I mean:

String config = plugin.getConfiguration().toString();
config = doStuff(config);
plugin.setConfiguration(config);

Thanks, Csaba



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org