Loading plugins/org.etsi.mts.tdl.model.gen/src/org/etsi/mts/tdl/gen/OCLinEcoreGenerator.java +6 −1 Original line number Diff line number Diff line Loading @@ -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) Loading Loading
plugins/org.etsi.mts.tdl.model.gen/src/org/etsi/mts/tdl/gen/OCLinEcoreGenerator.java +6 −1 Original line number Diff line number Diff line Loading @@ -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) Loading