[TCS]:Problem to generate the Extractor. [message #380178] |
Wed, 24 October 2007 17:26  |
Eclipse User |
|
|
|
Originally posted by: youssedek.gmail.com
Hi,
I'm spirit to test the Program example of TCSZoo.
But I did'nt arrive to generate the good result.
It is always a empty model (AlarmClock.pgrm.xmi).
I reinstalled the eclipse(Europa 3.3,EMF 2.3, Atl 2.0, AMMA Script ....)
but always the same result how you me advised to solve this problem????
thank you
Youssef
|
|
|
|
|
|
Re: [TCS]:Problem to generate the Extractor. [message #380339 is a reply to message #380335] |
Tue, 13 November 2007 03:39  |
Eclipse User |
|
|
|
Hi,
below there is an example of an Ant script that extracts a SQL-DDL
model. It is used in an AMW use case (KM32SQL -
http://www.eclipse.org/gmt/amw/usecases/modelgen/).
<echo message="Preparing SQL extraction.."/>
<am3.loadModel modelHandler="EMF" name="TCS" metamodel="MOF"
path="${path}/scripts/TCS.ecore" />
<am3.loadModel modelHandler="EMF" name="SQLDDL.tcs" metamodel="TCS"
path="${path}/scripts/SQLDDL-TCS.ecore"/>
<am3.saveModel model="SQL_MODEL" path="${path}/models/mantis-sql.sql">
<extractor name="ebnf">
<param name="format" value="SQLDDL.tcs"/>
</extractor>
</am3.saveModel>
Regards,
Marcos.
Dkiouak youssef wrote:
> Hi Marcos,
> my model contains the element root
> and here the extract of my model:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <PetriNetForText:Modele xmi:version="2.0"
> xmlns:xmi="http://www.omg.org/XMI"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:PetriNetForText="http://PetriNetForText">
> <elements xsi:type="PetriNetForText:PetriNet" name="test"/>
> .....
> .....
> ..
> </elements>
> </PetriNetForText:Modele>
>
> you can indicate me an example in TCS Zoo to which you tested (I'm
> interested especially to the extraxtor??)
>
> thanks you
> Youssef
>
|
|
|
Re: [TCS]:Problem to generate the Extractor. [message #608247 is a reply to message #380178] |
Thu, 08 November 2007 08:24  |
Eclipse User |
|
|
|
Originally posted by: youssedek.gmail.com
Hi freddy
My Eclipse contains the task "Eclipse Specific Task" but I always have the
same problem ,my extractor generate a empty file. and here the result of
the generation of the extractor
Buildfile: /home/ydkiouak/workspace1/Program/Extraxteur_build.xml
extraction:
[echo] ==== Loading Models to serialize AlarmClock.xmi ==========
[am3.loadModel] INFO: Loading of model source
[am3.loadModel] INFO: Loading of model TCS
[am3.loadModel] INFO: Loading of model MyLanguage-TCS
[echo] ==== serializing AlarmClock.xmi ==========
[am3.saveModel] INFO: Saving model source
[am3.saveModel] Error: no root found.
BUILD SUCCESSFUL
Total time: 912 milliseconds
you can explain me the problem?
and how to solve it?
thank you
Youssef
|
|
|
Re: [TCS]:Problem to generate the Extractor. [message #608248 is a reply to message #380332] |
Thu, 08 November 2007 12:43  |
Eclipse User |
|
|
|
Hello,
check the contents of the model you want to extract. This error usually
happens when you have more than one root element, or no elements at all.
For instance, you should not have <xmi:XMI xmi:version="2.0"> element as
the root.
Regards,
Marcos.
dkiouak youssef wrote:
> Hi freddy
> My Eclipse contains the task "Eclipse Specific Task" but I always have
> the same problem ,my extractor generate a empty file. and here the
> result of the generation of the extractor
>
> Buildfile: /home/ydkiouak/workspace1/Program/Extraxteur_build.xml
>
> extraction:
> [echo] ==== Loading Models to serialize AlarmClock.xmi ==========
> [am3.loadModel] INFO: Loading of model source
> [am3.loadModel] INFO: Loading of model TCS
> [am3.loadModel] INFO: Loading of model MyLanguage-TCS
> [echo] ==== serializing AlarmClock.xmi ==========
> [am3.saveModel] INFO: Saving model source
> [am3.saveModel] Error: no root found.
> BUILD SUCCESSFUL
> Total time: 912 milliseconds
>
> you can explain me the problem?
> and how to solve it?
> thank you
> Youssef
>
|
|
|
|
Re: [TCS]:Problem to generate the Extractor. [message #608253 is a reply to message #380335] |
Tue, 13 November 2007 03:39  |
Eclipse User |
|
|
|
Hi,
below there is an example of an Ant script that extracts a SQL-DDL
model. It is used in an AMW use case (KM32SQL -
http://www.eclipse.org/gmt/amw/usecases/modelgen/).
<echo message="Preparing SQL extraction.."/>
<am3.loadModel modelHandler="EMF" name="TCS" metamodel="MOF"
path="${path}/scripts/TCS.ecore" />
<am3.loadModel modelHandler="EMF" name="SQLDDL.tcs" metamodel="TCS"
path="${path}/scripts/SQLDDL-TCS.ecore"/>
<am3.saveModel model="SQL_MODEL" path="${path}/models/mantis-sql.sql">
<extractor name="ebnf">
<param name="format" value="SQLDDL.tcs"/>
</extractor>
</am3.saveModel>
Regards,
Marcos.
Dkiouak youssef wrote:
> Hi Marcos,
> my model contains the element root
> and here the extract of my model:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <PetriNetForText:Modele xmi:version="2.0"
> xmlns:xmi="http://www.omg.org/XMI"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:PetriNetForText="http://PetriNetForText">
> <elements xsi:type="PetriNetForText:PetriNet" name="test"/>
> .....
> .....
> ..
> </elements>
> </PetriNetForText:Modele>
>
> you can indicate me an example in TCS Zoo to which you tested (I'm
> interested especially to the extraxtor??)
>
> thanks you
> Youssef
>
|
|
|
Powered by
FUDForum. Page generated in 0.26791 seconds