Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Unable to ANT ATL transformation chain
Unable to ANT ATL transformation chain [message #1692048] Sun, 12 April 2015 19:18
Eclipse UserFriend
Hi folks,

I've got 4 ATL transformations I'd like to execute in batch (not a matter of Eclipse configuration).
I've tried Ant, but I always got the same error :
Buildfile: R:...build.xml

load:

BUILD FAILED
R:...build.xml:28: Problem: failed to create task or type am3.loadModel
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.


Total time: 217 milliseconds

The path is right... and this is the ant file :
<project name="Ramifier"  basedir="." default="execute">
	<target name="execute" depends="load">
		<am3.atl path="Relax.atl" allowInterModelReferences="true">
			<inModel name="IN" model="InModel"/>
			<outModel name="OUT" model="Relaxed"/>
		</am3.atl>
	
		<am3.atl path="Augment_pre.atl" allowInterModelReferences="true">
			<inModel name="IN" model="Relaxed"/>
			<outModel name="OUT" model="Augment_pre"/>
		</am3.atl>
	
		<am3.atl path="Augment_post.atl" allowInterModelReferences="true">
			<inModel name="IN" model="Relaxed"/>
			<outModel name="OUT" model="Augment_post"/>
		</am3.atl>
			
		<am3.atl path="Augment_compo.atl" allowInterModelReferences="true">
			<inModel name="IN_PRE" model="Augment_pre"/>
			<inModel name="IN_POS" model="Augment_post"/>
			<outModel name="OUT" model="Augmented"/>
		</am3.atl>
	</target>
	
	<target name="load">
		<am3.loadModel modelHandler="EMF" name="InModel"		metamodel="MOF" path="flesh/Klaper.ecore" />
		<am3.loadModel modelHandler="EMF" name="Relaxed" 		metamodel="MOF" path="out/relaxed.ecore"/>
		<am3.loadModel modelHandler="EMF" name="Augment_pre" 	metamodel="MOF" path="out/augment_pre.ecore"/>
		<am3.loadModel modelHandler="EMF" name="Augment_post" 	metamodel="MOF" path="out/augment_post.ecore"/>
		<am3.loadModel modelHandler="EMF" name="Augmented" 		metamodel="MOF" path="out/augmented.ecore"/>
	</target>
</project>


Any clue ?

[Updated on: Sun, 12 April 2015 19:31] by Moderator

Previous Topic:JavaDoc images from archive
Next Topic:JavaFX deployment with Eclipse
Goto Forum:
  


Current Time: Fri Apr 18 13:29:02 EDT 2025

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

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

Back to the top