Antrun would need to add a reference to the MavenProject instance and
then an ant task could look that up and call the addCompileSourceRoots
method.

But writing a Java plugin is about the same amount of work as an Ant
task, so is probably a better alternative.

- Brett

On 10/5/05, Robert Biernat <[EMAIL PROTECTED]> wrote:
> How would an ant task be able to manipulate the POM being processed and add
> an additional source location?
>
> -----Original Message-----
> From: Brett Porter [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 05, 2005 11:03 AM
> To: Maven Users List
> Subject: Re: m2 compiler plugin and generated source
>
> On 10/5/05, Robert Biernat <[EMAIL PROTECTED]> wrote:
> > I'm thinking the only way to do this is to write a java based plugin that
> > programmatically plugs in the new directory.
>
> Yes, or to write an Ant task in antrun to do it...
>
> - Brett
>
> ---------------------------------------------------------------------
> 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]

Reply via email to