Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » starting an Ant task from a Xpand workflow
starting an Ant task from a Xpand workflow [message #512407] Thu, 04 February 2010 23:26 Go to next message
Matthieu  is currently offline Matthieu Friend
Messages: 10
Registered: February 2010
Junior Member
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 15:40 Go to previous message
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 1771
Registered: July 2009
Senior Member
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


--
Need professional support on Xtext or Xtend?
Mail to: xtext (at) itemis.com
Twitter : @svenefftinge
Blog : blog.efftinge.de
Previous Topic:[Accelo]use of @code-explicit
Next Topic:[Xpand] Where to find OAW examples?
Goto Forum:
  


Current Time: Thu Nov 27 16:15:10 GMT 2014

Powered by FUDForum. Page generated in 0.02309 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software