[ATL] ant tasks problem: 'Unable to load launcher EMF-specific VM' [message #538443] |
Mon, 07 June 2010 16:06 |
Marten Sijtema Messages: 67 Registered: November 2009 |
Member |
|
|
Hello,
I've got a problem with my ANT tasks. I am familiar with having to have the setting 'Use same JRE as Workspace' (run configurations -> JRE tab) enabled. If I have this, my custom task ('injectFatlFile') is giving a nullpointer exception. If I put it on 'Separate JRE', my own injectFatlFile task works fine.
But going for that option gives a different error on the atl.loadModel (observe that I have put <taskdef> tags on top to define the atl.loadModel/saveModel/launch tasks):
BUILD FAILED
/SomeDir/fatl2atl-ecore2gwt-gwt2code.ant:38: Unable to load launcher EMF-specific VM
SO: I have to fix one of the problems:
1) Fix my task and put setting on 'Same JRE as Workspace'
_OR_
2) Fix having the setting on 'Use Separate JRE'
The ant buildscript I got is shown below. Any ideas (of one of those problems?). Thanks in advance.
<?xml version="1.0"?>
<project name="RunAll" default="start" basedir=".">
<taskdef name="injectFatlFile" classname="nl.sytematic.dsl.FeatureATL.injector.ant.InjectFeatureATLFileTask" />
<taskdef name="atl.loadModel" classname="org.eclipse.m2m.atl.core.ant.tasks.LoadModelTask" />
<taskdef name="atl.saveModel" classname="org.eclipse.m2m.atl.core.ant.tasks.SaveModelTask" />
<taskdef name="atl.launch" classname="org.eclipse.m2m.atl.core.ant.tasks.ATLModelTransformationTask" />
<target name="start">
<tstamp/>
<!-- my own custom injection task -->
<injectFatlFile inputPath="${FatlPath}" outputPath="${FatlInjectOutPath}" metaModel="${fatlMM}" />
<!-- Loading (Feature)ATL metamodels using normal loadModel task-->
<atl.loadModel modelHandler="EMF" name="fatl" metamodel="MOF" path="${fatlMM}"/>
<atl.loadModel modelHandler="EMF" name="atl" metamodel="MOF" path="${atlMM}" />
</target>
</xml>
My company: Sytematic, building business software from models.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03100 seconds