According to the ATL/EMFTVM wiki, ATL/EMFTVM
can be run standalone by using
ResourceSet moduleRS = new ResourceSetImpl();
moduleRS.getResourceFactoryRegistry().getExtensionToFactoryMap().put(Resource.Factory.Registry.DEFAULT_EXTENSION, new XMIResourceFactoryImpl());
DefaultModuleResolver mr = new DefaultModuleResolver("pathToModuleDirectory", moduleRS);
TimingData td = new TimingData();
env.loadModule(mr, "ModuleName");
td.finishLoading();
env.run(td);
td.finish();
However, this always yields an exception saying Module not found
. I debugged the code into great detail. Internally, a SaxParseException
is thrown, which is weird since my .emftvm file is not a XML file. Any ideas how I can load the file properly? Thanks in advance!