Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdolfo SBH2015-05-06 14:14:17 +0000
committerAdolfo SBH2015-05-08 10:02:09 +0000
commit2f29b65f115a7cbf29348ad836f8f391ad99afa8 (patch)
treecb7fbbc6aeaff4015623f349c7f6170f04bd579f
parentb1e8d6d054e508368628042bbf302bf965f7891a (diff)
downloadorg.eclipse.qvtd-2f29b65f115a7cbf29348ad836f8f391ad99afa8.tar.gz
org.eclipse.qvtd-2f29b65f115a7cbf29348ad836f8f391ad99afa8.tar.xz
org.eclipse.qvtd-2f29b65f115a7cbf29348ad836f8f391ad99afa8.zip
[ocl2qvti] - Impove support in MTC to relative URIs in the QVTConfig
model
-rw-r--r--plugins/org.eclipse.qvtd.compiler/src/org/eclipse/qvtd/compiler/internal/etl/MtcBroker.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/plugins/org.eclipse.qvtd.compiler/src/org/eclipse/qvtd/compiler/internal/etl/MtcBroker.java b/plugins/org.eclipse.qvtd.compiler/src/org/eclipse/qvtd/compiler/internal/etl/MtcBroker.java
index 9107a927a..ba29eb61a 100644
--- a/plugins/org.eclipse.qvtd.compiler/src/org/eclipse/qvtd/compiler/internal/etl/MtcBroker.java
+++ b/plugins/org.eclipse.qvtd.compiler/src/org/eclipse/qvtd/compiler/internal/etl/MtcBroker.java
@@ -743,12 +743,13 @@ public class MtcBroker {
//TODO Check if the tree has been already generated
URI modelUri = null;
try {
- modelUri = baseUri.appendSegment(mm);
- /*URI mmURI = URI.createURI(mm);
- if (mmURI.segments().length == 1)
+ //modelUri = baseUri.appendSegment(mm);
+ URI mmSegments = URI.createURI(mm);
+ if (mmSegments.segments().length == 1) {
modelUri = baseUri.appendSegment(mm);
- else
- modelUri = mmURI.resolve(baseUri);*/
+ } else {
+ modelUri = mmSegments.resolve(baseUri);
+ }
} catch (IllegalArgumentException e) {
throw new QvtMtcExecutionException(e.getMessage(), e.getCause());
} finally {

Back to the top