[TCS - Transformations Outside Eclipse ] [message #378864] |
Tue, 14 August 2007 12:45  |
Eclipse User |
|
|
|
Originally posted by: luigi.mazzucchetti.gmail.com
Hi.
I'm trying to execute 2 TCS transformations, 1 text2model and 1 model2text,
that works inside eclipse, using command line (I'm on linux).
I receive these errors when launching ant command:
- for text2model: java.lang.IllegalStateException: Workspace is closed.
during evaluation of buildxml block:
<am3.loadModel modelHandler="EMF" name="M" metamodel="MM" path="${MUri}">
<injector name="ebnf">
<param name="name" value="${classNamePrefix}"/>
<classpath>
<pathelement location="${EBNFInjectorUri}" />
</classpath>
</injector>
</am3.loadModel>
- for model2text: org.eclipse.core.runtime.AssertionFailedException:
assertion failed: The application has not been initialized.
during evaluation of buildxml block:
<am3.saveModel model="M" path="${MUri}.adb">
<extractor name="ebnf">
<param name="format" value="MM.tcs"/>
<param name="indentString" value=" "/>
<param name="serializeComments" value="false"/>
</extractor>
</am3.saveModel>
Anyone know what is wrong? Have I to post my transformations related files?
Thanks in advance.
Luigi
|
|
|
Re: [TCS - Transformations Outside Eclipse ] [message #379859 is a reply to message #378864] |
Sat, 06 October 2007 16:20  |
Eclipse User |
|
|
|
Hello,
The AM3 ant scripts have not been extended to run outside of Eclipse.
You can however use TCS using command line tools and/or Java code.
See:
http://wiki.eclipse.org/ATL_Howtos#How_do_I_launch_transform ations_programmatically.3F
Regards,
Frédéric Jouault
Luigi wrote:
> Hi.
> I'm trying to execute 2 TCS transformations, 1 text2model and 1 model2text,
> that works inside eclipse, using command line (I'm on linux).
> I receive these errors when launching ant command:
> - for text2model: java.lang.IllegalStateException: Workspace is closed.
> during evaluation of buildxml block:
> <am3.loadModel modelHandler="EMF" name="M" metamodel="MM" path="${MUri}">
> <injector name="ebnf">
> <param name="name" value="${classNamePrefix}"/>
> <classpath>
> <pathelement location="${EBNFInjectorUri}" />
> </classpath>
> </injector>
> </am3.loadModel>
> - for model2text: org.eclipse.core.runtime.AssertionFailedException:
> assertion failed: The application has not been initialized.
> during evaluation of buildxml block:
> <am3.saveModel model="M" path="${MUri}.adb">
> <extractor name="ebnf">
> <param name="format" value="MM.tcs"/>
> <param name="indentString" value=" "/>
> <param name="serializeComments" value="false"/>
> </extractor>
> </am3.saveModel>
> Anyone know what is wrong? Have I to post my transformations related files?
>
> Thanks in advance.
> Luigi
|
|
|
Re: [TCS - Transformations Outside Eclipse ] [message #608059 is a reply to message #378864] |
Sat, 06 October 2007 16:20  |
Eclipse User |
|
|
|
Hello,
The AM3 ant scripts have not been extended to run outside of Eclipse.
You can however use TCS using command line tools and/or Java code.
See:
http://wiki.eclipse.org/ATL_Howtos#How_do_I_launch_transform ations_programmatically.3F
Regards,
Frédéric Jouault
Luigi wrote:
> Hi.
> I'm trying to execute 2 TCS transformations, 1 text2model and 1 model2text,
> that works inside eclipse, using command line (I'm on linux).
> I receive these errors when launching ant command:
> - for text2model: java.lang.IllegalStateException: Workspace is closed.
> during evaluation of buildxml block:
> <am3.loadModel modelHandler="EMF" name="M" metamodel="MM" path="${MUri}">
> <injector name="ebnf">
> <param name="name" value="${classNamePrefix}"/>
> <classpath>
> <pathelement location="${EBNFInjectorUri}" />
> </classpath>
> </injector>
> </am3.loadModel>
> - for model2text: org.eclipse.core.runtime.AssertionFailedException:
> assertion failed: The application has not been initialized.
> during evaluation of buildxml block:
> <am3.saveModel model="M" path="${MUri}.adb">
> <extractor name="ebnf">
> <param name="format" value="MM.tcs"/>
> <param name="indentString" value=" "/>
> <param name="serializeComments" value="false"/>
> </extractor>
> </am3.saveModel>
> Anyone know what is wrong? Have I to post my transformations related files?
>
> Thanks in advance.
> Luigi
|
|
|
Powered by
FUDForum. Page generated in 0.04164 seconds