Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMT (Generative Modeling Technologies) » [TCS - Transformations Outside Eclipse ]
[TCS - Transformations Outside Eclipse ] [message #378864] Tue, 14 August 2007 16:45 Go to next message
Eclipse UserFriend
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 20:20 Go to previous message
Frédéric Jouault is currently offline Frédéric JouaultFriend
Messages: 572
Registered: July 2009
Senior Member
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 20:20 Go to previous message
Frédéric Jouault is currently offline Frédéric JouaultFriend
Messages: 572
Registered: July 2009
Senior Member
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
Previous Topic:[TCS] Symbols, operators, tokens, and lexer section
Next Topic:[UMLX] Problem lookingup ambiguous classifiers qualified with its EPackage name
Goto Forum:
  


Current Time: Mon Dec 22 16:37:33 GMT 2014

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

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