starting an Ant task from a Xpand workflow [message #512407] |
Thu, 04 February 2010 18:26  |
Eclipse User |
|
|
|
Hello,
For my project I have a MWE workflow which generates my code. It also generates an Ant buildfile so I can then compile the generated Java code.
The question is: is their a way to start an Ant task (basically the default task) of the buildfile, so I generate the code, and it is automatically compiled into a jar file and I get my final application without having to start manually the compilation ?
Another question : is it possible to copy files from a directory to another using a task in the workflow (I have some files which does not depend on the model, and I juste have to copy it into the src-gen directory, is it possible to do that during the execution of the workflow ?).
Thanks !
Matthieu
|
|
|
Re: starting an Ant task from a Xpand workflow [message #512610 is a reply to message #512407] |
Fri, 05 February 2010 10:40  |
Eclipse User |
|
|
|
Adding new tasks is only a matter of implementing IWorkflowComponent.
But given your sceario I'ld recommend to start the workflow from ant
instead. MWE is shipped with an ANT task.
Sven
Matthieu schrieb:
> Hello,
>
> For my project I have a MWE workflow which generates my code. It also
> generates an Ant buildfile so I can then compile the generated Java code.
>
> The question is: is their a way to start an Ant task (basically the
> default task) of the buildfile, so I generate the code, and it is
> automatically compiled into a jar file and I get my final application
> without having to start manually the compilation ?
>
> Another question : is it possible to copy files from a directory to
> another using a task in the workflow (I have some files which does not
> depend on the model, and I juste have to copy it into the src-gen
> directory, is it possible to do that during the execution of the
> workflow ?).
>
> Thanks !
>
> Matthieu
--
Need professional support for Xtext and EMF?
Go to: http://xtext.itemis.com
Twitter : @svenefftinge
Blog : blog.efftinge.de
|
|
|
Powered by
FUDForum. Page generated in 0.05647 seconds