Hi guys, On 9/8/05, Chad Brandon <[EMAIL PROTECTED]> wrote: > Sure...should be easy enough, just find the metamodel XMI as a resource > (i.e. ATLTransformerTest.class.getResource("/metamodel.xmi")) and pass > that in (you'll see in the ATLTransformerTest, I'm doing that with > resources on the classpath). You can follow my example on http://cvs.sourceforge.net/viewcvs.py/motmot/MoTMoT/prototypes/crossreferences/tests/java/be/ac/ua/fots/motmot/prototypes/crossreferences/TestMDR.java?view=markup It's a Test containing code that I'll use in the upcoming CAViT tool that calls SDM model transformations to maintain OCL model consistency contracts.
> >>>The second problem is that the test model references our > >>>andromda-profile.xml.zip file - a fact that will disturb ATL when it > >>>tries to load the model to be transformed. I've faced the same issue with MoTMoT. I've quickly solved it by copying the metamodel file to my src/models directory. Maven copies it to the target directory such that it can be loaded by the class.getResource call that Chad mentioned. See our ViewCVS for details or check out the latest MoTMoT sources and go to the prototypes/crossreferences directory to call Maven, learn from the sources, metamodel file, etc. I'm in the process of extending the test and writing some documentation. Kind regards, Pieter. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf