diff options
author | Henrik Rentz-Reichert | 2018-11-23 16:06:52 +0000 |
---|---|---|
committer | Henrik Rentz-Reichert | 2018-11-23 16:07:25 +0000 |
commit | aa23c923f18cfecdde88ba04c1f6530b00a88b59 (patch) | |
tree | 39b86e51f7e9b7aa447cc8b81530fce4b39a59cc /plugins/org.eclipse.etrice.generator | |
parent | 30cf2c671a161f0be982d0ad5d746022adbf35d7 (diff) | |
download | org.eclipse.etrice-aa23c923f18cfecdde88ba04c1f6530b00a88b59.tar.gz org.eclipse.etrice-aa23c923f18cfecdde88ba04c1f6530b00a88b59.tar.xz org.eclipse.etrice-aa23c923f18cfecdde88ba04c1f6530b00a88b59.zip |
fixed interpretation of genmodel path option
* tries to substitute string variables
* then tries to resolve as platform path
* if that fails the given path is used as platform path
Diffstat (limited to 'plugins/org.eclipse.etrice.generator')
-rw-r--r-- | plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/base/AbstractGenerator.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/base/AbstractGenerator.java b/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/base/AbstractGenerator.java index 486c0f8c6..33e0e27c0 100644 --- a/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/base/AbstractGenerator.java +++ b/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/base/AbstractGenerator.java @@ -236,7 +236,7 @@ public abstract class AbstractGenerator implements IGenerator, IDetailCodeTransl translateDetailCodes(gmRoot, doTranslate); - URI genModelURI = !genModelPath.isEmpty() ? URI.createFileURI(genModelPath) : URI.createFileURI("tmp.rim"); + URI genModelURI = !genModelPath.isEmpty() ? URI.createPlatformResourceURI(genModelPath, true) : URI.createFileURI("tmp.rim"); Resource genResource = getResourceSet().createResource(genModelURI); genResource.getContents().add(gmRoot); if (!genModelPath.isEmpty()) { |