Assuming you already have the maven-project as a variable in your plugin (if 
not, add it!):

project.addCompileSourceRoot("your output directory here");


And in the case of resources:

Resource resource = new Resource();
resource.setDirectory("your output directory here");
resource.addInclude("**/*");
project.addResource(resource);



On Thursday 01 October 2009 13:59, Lewis, Eric wrote:
> Hi
>
> I'm writing a plugin which generates resources and also test resources.
> How in my plugin can I add these directories to the sources paths and the
> test resources paths? (Except for using the build-helper plugin)
>
> Best regards,
> Eric
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]

-- 
Roland Asmann

CFC Informationssysteme Entwicklungsgesellschaft m.b.H
Bäckerstrasse 1/2/7
A-1010 Wien
FN 266155f, Handelsgericht Wien

Tel.: +43/1/513 88 77 - 27
Fax.: +43/1/513 88 62
Email: [email protected]
Web: www.cfc.at

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to