[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.modeling.m2m] Re: [ATL] Developing a plugin which executes ATL transformations

Hi,

I think your problem comes from the way you launch the ant build :

Try to configure the launch as follow :
-right click the ant file: run as...
-under the refresh tab select refresh the entire workspace
-under the jre tab select "run in the same jre as the workspace"

Regards,

Quentin


Bea a écrit :
I think that the problem is that eclipse doesn't find the org.eclipse.gmt.am3.tools.ant_1.0.0.20070619.jar. I have tried with right click on the build.xml and selecting the second Ant run. In the classpath section I have added that .jar but it doesn't work.



"Bea" <beaperez@xxxxxxxxx> escribió en el mensaje news:f5g94g$qv7$1@xxxxxxxxxxxxxxxxxxxx
Hello again
I have problems with am3.loadmodel sentence. I get the error "Ant could not find the task or a class this task relies upon.".
In my build.xml file I have:


<am3.loadModel modelHandler="EMF" name="UML2" metamodel="MOF" path="uri:http://www.eclipse.org/uml2/1.0.0/UML"/>

I have the plugin org.eclipse.gmt.am3.tools.ant installed but I thinnk that it doesn't work Any idea?
Thank you.




"urs zeidler" <ich@xxxxxxxxxxxxx> escribió en el mensaje news:f5eb34$3jo$1@xxxxxxxxxxxxxxxxxxxx
Bea schrieb:
I use MOFScript for model to text transformations and ATL for model to model transformations. So I would like to create a plugin which execute the defined transformations in the order I want.
Do you know how I can invoke an ANT script?
Thanks


You can start ANT like an other process :

Process process = Runtime.getRuntime().exec(cmd);


or with the launcher : org.apache.tools.ant.launch.Launcher

see ANT manual
http://ant.apache.org/manual/index.html

greetings, urs.