Commit 4aace8b7 authored by Philip Makedonski's avatar Philip Makedonski
Browse files

* a bit of a hack for when running from parent, #164

parent bb4a1844
Loading
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -30,6 +30,11 @@ public class OCLinEcoreGenerator extends EcoreGeneratorCustom {
    	);        
        
    	File projectRoot = new File("").getAbsoluteFile();
    	//TODO: a bit of a hack when running from parent -> needs to be configured in maven directly.. 
    	if (projectRoot.getName().equals("org.etsi.mts.tdl.parent")) {
    		File pluginsRoot = projectRoot.getParentFile().listFiles(f->f.getName().equals("plugins"))[0];
    		projectRoot = pluginsRoot.listFiles(f->f.getName().equals("org.etsi.mts.tdl.model"))[0];
    	}
        URIConverter.URI_MAP.put(
        		URI.createURI("platform:/resource/"+projectRoot.getName()+"/"), 
        		URI.createFileURI(projectRoot.getAbsolutePath() + File.separator)