[Xpand] Adding files to ouput [message #534265] |
Tue, 18 May 2010 14:26 |
MaximeLecourt Messages: 108 Registered: February 2010 Location: France |
Senior Member |
|
|
Hello,
is there a way to add files (or even better a directory) to the generated files ?
I have some files that are already written, and that I have to add to every generated code, and I want to add them to output.
How can I do that ?
One day I shall master M2T, but that day has yet to come...
|
|
|
Re: [Xpand] Adding files to ouput [message #534267 is a reply to message #534265] |
Tue, 18 May 2010 14:32 |
|
Hi Maxime!
I'm not sure if I understand correct, but maybe the append flag for an outlet is what you are searching for. In the workflow generator component configuration add
<outlet path="..." name="APPEND_OUT" append="true"...
When you want to append something to a specific file use the FILE statement and name the APPEND_OUT outlet:
«FILE fileExp APPEND_OUT»
Regards,
~Karsten
Need professional support for Xtext, EMF, Eclipse IDE?
Go to: http://devhub.karakun.com
Twitter : @kthoms
Blog : www.karsten-thoms.de
|
|
|
|
|
|
Re: [Xpand] Adding files to ouput [message #534431 is a reply to message #534265] |
Wed, 19 May 2010 07:50 |
MaximeLecourt Messages: 108 Registered: February 2010 Location: France |
Senior Member |
|
|
I have a noob question :s
I downloaded the emft-mwe-Update-0.8.0M5.zip (latest stable build), but I don't know how to install it.
I tried uninstalling MWE and copy/paste files from zip to eclipse directory, but doesn't work. So how can I install it ? Is there a site that I can add to add it using eclipse ?
Regards,
maxime
EDIT : found how to install MWE 1.0, but i get an error when running my workflow files. Still searching.
One day I shall master M2T, but that day has yet to come...
[Updated on: Wed, 19 May 2010 09:18] Report message to a moderator
|
|
|
|
|
Re: [Xpand] Adding files to ouput [message #534801 is a reply to message #534796] |
Thu, 20 May 2010 11:39 |
|
Hello Maxime,
please note: "." is the root of the project you execute the workflow within so in your case
<component id="copier" class="org.eclipse.emf.mwe.utils.FileCopy"
sourceFile="../genCPP/src/fr/onera/gamme/pool/Entity.java"
targetFile="../genCPP/src-gen/myEntity/Entity.java"
/>
might be working (asuming genCPP is the project name)
AND: the target dir must exist.
~Christian
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
[Updated on: Thu, 20 May 2010 11:42] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.02211 seconds