|
|
|
|
Re: [ATL] Question about using superimpose in Ant files [message #509169 is a reply to message #499604] |
Thu, 21 January 2010 15:05 |
Dennis Hendriks Messages: 75 Registered: January 2010 Location: The Netherlands |
Member |
|
|
I have a similar problem, trying to use the UML2Profiles example mentioned in the ATL User Guide. Using the launch configuration, it works. Using an ant build script:
<?xml version="1.0"?>
<project name="mod2core_controlvars" default="run" basedir=".">
<property name="inpath" value="../models/JavaTypes.uml"/>
<property name="outpath" value="../models/JavaTypes2b.uml"/>
<property name="atl.launcher" value="Regular VM (with debugger)"/>
<target name="run">
<atl.loadModel metamodel="%EMF" name="UML2" path="../metamodels/UML2Profiles.ecore"/>
<atl.loadModel metamodel="UML2" name="inmodel" path="${inpath}"/>
<atl.loadModel metamodel="UML2" name="accessors" path="../profiles/Accessors.profile.uml"/>
<atl.launch path="../UML2Copy.asm">
<!--superimpose path="../UML2Profiles.asm"/-->
<library name="UML2" path="../lib/UML2.asm"/>
<inmodel name="IN" model="inmodel"/>
<inmodel name="ACCESSORS" model="accessors"/>
<outmodel name="OUT" model="outmodel" metamodel="UML2"/>
</atl.launch >
<atl.saveModel model="outmodel" path="${outpath}"/>
</target>
</project>
without superimposition (note the commented out superimpose) it works (although it is just a copy, as it uses only UML2Copy.asm).
When I enable the superimposition, I get:
BUILD FAILED
XXX/superimpose_test/launch/build.xml:12: java.lang.NullPointerException
Does anyone know how to fix this? As seen at http://soft.vub.ac.be/viewvc/UML2CaseStudies/uml2cs-instantm essenger-model/outmodels/common/build.xml?view=markup&pa threv=5633 it should work (assuming that the example worked for someone). But they use am3 tasks, and not atl tasks. Also, I couldn't find how to check out that entire example repository, so I donwloaded just the files I needed and created my own ant build script, inspired by the example.
Seeing as the original poster got the same error, I wonder if anyone knows what we both did wrong? Any help would be greatly appreciated!
Dennis
[edit: comma ended up as part of the url (last character). fixed that]
[Updated on: Thu, 21 January 2010 15:08] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05703 seconds