On 10/29/05, Robert Biernat <[EMAIL PROTECTED]> wrote:
>
> I was wondering wether anyone knows of an existing plugin similar to the
> antrun plugin which allows me to execute one or more ant tasks, but also
> allows me to add some additional locations to the compilation path. I have
> several projects I want to migrate to m2 which use ant tasks for code
> generation, so the antrun plugin works fine for performing the actual code
> generation, but I need to make sure the generated code gets compiled. I
> realize I could write my own mojo that does the code generation without
> using ant, but in most cases the number of ant tasks that gets executed is
> quite small and easy to manage so I don't see much benefit in writing my
> own
> mojo's.


If you make a separate project for just the generated source you can set the
source path in the POM. That's what we're currently doing with some
wsdl2java generated sources. But that may not be desirable or practical. I'd
also be interested to hear of any alternatives short of writing your own
mojo.

/Nick

Reply via email to