I haven't tested this functionality personally, but it looks like the maven-antrun-plugin already has explicit support for what you are describing via the sourceRoot parameter:

http://maven.apache.org/plugins/maven-antrun-plugin/run-mojo.html

-Max

DELHOSTE Fabrice wrote:
Hi Ivan,

Unfortunately, I asked for the same question twice in the last month and
had no response.
At the moment, I use build-helper-maven-plugin in any of my poms using
my Ant plugin...waiting for the answer ;-)

Fabrice

-----Original Message-----
From: Ivan Dubrov [mailto:[EMAIL PROTECTED] Sent: samedi 6 mai 2006 15:48
To: [email protected]
Subject: Adding compile source root from Ant-based plugin

Hello,

I have Ant-based MOJO that generates some Java sources. What is the
preferred way to add the directory with the generated sources as an
additional source root? I do not want to configure manually
build-helper-maven-plugin
(http://mojo.codehaus.org/build-helper-maven-plugin/) from my project
descriptor, since I think my generator-plugin should take the
appropriate actions itself.

Probably, there is a way to call MOJO from Ant script (in that case, I
could invoke build-helper:add-source from my Ant target)?

P.S. Please, add me to the cc, I'm not subscribed to the list.

--
WBR,
Ivan S. Dubrov

---------------------------------------------------------------------
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to