On Thu, Mar 13, 2008 at 6:15 PM, Samuel Le Berrigaud <[EMAIL PROTECTED]>
wrote:
> Well if I had to do it I would actually have a look in the code of the
> maven-help-plugin. Seems like it wouldn't be difficult from there to
> implement the plugin you want…
>
> SaM
>
Thanks, the Groovy code I ended up with looks like this:
---
// Run through the currently active
// profiles, checking to see if this one
// is in use.
def scanActiveProfiles(String profileId)
{
List profiles =
project.getActiveProfiles();
profiles.each {
p = it;
print "Profile IDs: " + p.getId() +
"\n";
}
}
---
I'm switching gears slightly and writing a full plugin instead of using the
groovy-maven-plugin and inline code execution because that way I can just
pass properties not attached to the project (like maven.test.skip) into the
plugin.
-Chris
--
Chris Patti --- Y!: feoh -- AIM: chrisfeohpatti --- E-Mail: [EMAIL PROTECTED]
"Technological progress is like an ax in the hands of a pathological
criminal." -Albert Einstein