Problem with running ETL in ANT [message #1752519] |
Tue, 24 January 2017 16:36 |
Eclipse User |
|
|
|
Hello,
Context:
I am trying to run a model transformation using ANT. I have Model 1 and Model 2, conforming to Metamodel A and Metamodel B. Metamodel B is an extension of Metamodel A; and Model 2's elements refer to elements of Model 1. The transformation takes both models and updates Model 1.
Problem:
The model transformation works perfectly when I run it using the configuration in Eclipse (screenshots are attached.).
However, it does not run correctly using ANT. ANT file is given below. ANT execution finds the models, metamodels (registered beforehand) and the transformation together with its referenced EOL files correctly. It executes the transformation. Then, the following error occurs:
EXCEPTION: Property 'start' not found in object org.eclipse.emf.ecore.impl.DynamicEObjectImpl@1d6dcd79 [eProxyURI: ...
ANT file:
<project default="main">
<!-- This transformation works fine in the normal case, however it does not run in ANT file. -->
<target name="main">
<epsilon.emf.loadModel name="Model 1"
read="true"
store="true"
metamodeluri="metamodel A uri"
modelfile="absolute path of Model 1"
/>
<epsilon.emf.loadModel name="Model 2"
read="true"
store="false"
metamodeluri="metamodel B uri"
modelfile="absolute path of Model 2"
/>
<epsilon.etl src="absolute path of the transformation ...Transformation.etl">
<model ref="Model 1"/>
<model ref="Model 2"/>
</epsilon.etl>
</target>
</project>
Launch configuration:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.ant.AntLaunchConfigurationType">
<booleanAttribute key="editedByExternalToolsMainTab" value="true"/>
<booleanAttribute key="org.eclipse.ant.ui.DEFAULT_VM_INSTALL" value="false"/>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="<Ant file relative path>"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="1"/>
</listAttribute>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="<name of the project>"/>
<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${workspace_loc:<Ant file relative path>}"/>
<stringAttribute key="process_factory_id" value="org.eclipse.ant.ui.remoteAntProcessFactory"/>
</launchConfiguration>
Note: I could not provide the full project since it is commercial. If you have a quick proposal, I will try. Otherwise, I can try to provide a minimal example.
Thanks.
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03812 seconds