From: Tuukka Lehtonen Date: Tue, 26 Sep 2017 10:58:10 +0000 (+0300) Subject: Fixes for Simantics R before branching 1.31.0. X-Git-Tag: v1.31.0~2 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=f5e98e2138dd919869c9665ba7269a7b02cbc0f7;p=simantics%2Fr.git Fixes for Simantics R before branching 1.31.0. * Removed bin directory unnecessarily put in the repository * Switched from Tycho 0.26 to 1.0.0 * Added TPD file to generate the target platform for the build * Removed 32-bit linux build from the build configurations * Removed unnecessary configuration from features/pom.xml refs #7398 Change-Id: Id7a16f4edfc9743c3a55937b3e8cafc0070aa225 --- diff --git a/.mvn/extensions.xml b/.mvn/extensions.xml index d0555d0..8359a6d 100644 --- a/.mvn/extensions.xml +++ b/.mvn/extensions.xml @@ -3,6 +3,6 @@ org.eclipse.tycho.extras tycho-pomless - 0.26.0 + 1.0.0 diff --git a/bundles/org.simantics.r.fileimport/bin/org/simantics/r/fileimport/Activator.class b/bundles/org.simantics.r.fileimport/bin/org/simantics/r/fileimport/Activator.class deleted file mode 100644 index 51895a1..0000000 Binary files a/bundles/org.simantics.r.fileimport/bin/org/simantics/r/fileimport/Activator.class and /dev/null differ diff --git a/bundles/org.simantics.r.fileimport/bin/org/simantics/r/fileimport/RFileImport.class b/bundles/org.simantics.r.fileimport/bin/org/simantics/r/fileimport/RFileImport.class deleted file mode 100644 index a9919ae..0000000 Binary files a/bundles/org.simantics.r.fileimport/bin/org/simantics/r/fileimport/RFileImport.class and /dev/null differ diff --git a/bundles/org.simantics.r.ontology/graph.tg b/bundles/org.simantics.r.ontology/graph.tg index 3ad1a74..303a33a 100644 Binary files a/bundles/org.simantics.r.ontology/graph.tg and b/bundles/org.simantics.r.ontology/graph.tg differ diff --git a/bundles/org.simantics.r.ontology/src/org/simantics/r/RResource.java b/bundles/org.simantics.r.ontology/src/org/simantics/r/RResource.java index 6401540..41664a8 100644 --- a/bundles/org.simantics.r.ontology/src/org/simantics/r/RResource.java +++ b/bundles/org.simantics.r.ontology/src/org/simantics/r/RResource.java @@ -1,112 +1,112 @@ -package org.simantics.r; - -import org.simantics.db.RequestProcessor; -import org.simantics.db.Resource; -import org.simantics.db.ReadGraph; -import org.simantics.db.request.Read; -import org.simantics.db.Session; -import org.simantics.db.exception.DatabaseException; -import org.simantics.db.service.QueryControl; - -public class RResource { - - public final Resource Model; - public final Resource RProperty; - public final Resource Script; - public final Resource Script_text; - public final Resource Script_text_Inverse; - public final Resource Session; - public final Resource SessionConfiguration; - public final Resource SessionConfiguration_hasScript; - public final Resource SessionConfiguration_host; - public final Resource SessionConfiguration_host_Inverse; - public final Resource SessionConfiguration_password; - public final Resource SessionConfiguration_password_Inverse; - public final Resource SessionConfiguration_port; - public final Resource SessionConfiguration_port_Inverse; - public final Resource SessionConfiguration_username; - public final Resource SessionConfiguration_username_Inverse; - public final Resource Session_hasValue; - public final Resource Session_hasValue_Inverse; - public final Resource TabContribution; - - public static class URIs { - public static final String Model = "http://www.simantics.org/R-1.0/Model"; - public static final String RProperty = "http://www.simantics.org/R-1.0/RProperty"; - public static final String Script = "http://www.simantics.org/R-1.0/Script"; - public static final String Script_text = "http://www.simantics.org/R-1.0/Script/text"; - public static final String Script_text_Inverse = "http://www.simantics.org/R-1.0/Script/text/Inverse"; - public static final String Session = "http://www.simantics.org/R-1.0/Session"; - public static final String SessionConfiguration = "http://www.simantics.org/R-1.0/SessionConfiguration"; - public static final String SessionConfiguration_hasScript = "http://www.simantics.org/R-1.0/SessionConfiguration/hasScript"; - public static final String SessionConfiguration_host = "http://www.simantics.org/R-1.0/SessionConfiguration/host"; - public static final String SessionConfiguration_host_Inverse = "http://www.simantics.org/R-1.0/SessionConfiguration/host/Inverse"; - public static final String SessionConfiguration_password = "http://www.simantics.org/R-1.0/SessionConfiguration/password"; - public static final String SessionConfiguration_password_Inverse = "http://www.simantics.org/R-1.0/SessionConfiguration/password/Inverse"; - public static final String SessionConfiguration_port = "http://www.simantics.org/R-1.0/SessionConfiguration/port"; - public static final String SessionConfiguration_port_Inverse = "http://www.simantics.org/R-1.0/SessionConfiguration/port/Inverse"; - public static final String SessionConfiguration_username = "http://www.simantics.org/R-1.0/SessionConfiguration/username"; - public static final String SessionConfiguration_username_Inverse = "http://www.simantics.org/R-1.0/SessionConfiguration/username/Inverse"; - public static final String Session_hasValue = "http://www.simantics.org/R-1.0/Session/hasValue"; - public static final String Session_hasValue_Inverse = "http://www.simantics.org/R-1.0/Session/hasValue/Inverse"; - public static final String TabContribution = "http://www.simantics.org/R-1.0/TabContribution"; - } - - public static Resource getResourceOrNull(ReadGraph graph, String uri) { - try { - return graph.getResource(uri); - } catch(DatabaseException e) { - System.err.println(e.getMessage()); - return null; - } - } - - public RResource(ReadGraph graph) { - Model = getResourceOrNull(graph, URIs.Model); - RProperty = getResourceOrNull(graph, URIs.RProperty); - Script = getResourceOrNull(graph, URIs.Script); - Script_text = getResourceOrNull(graph, URIs.Script_text); - Script_text_Inverse = getResourceOrNull(graph, URIs.Script_text_Inverse); - Session = getResourceOrNull(graph, URIs.Session); - SessionConfiguration = getResourceOrNull(graph, URIs.SessionConfiguration); - SessionConfiguration_hasScript = getResourceOrNull(graph, URIs.SessionConfiguration_hasScript); - SessionConfiguration_host = getResourceOrNull(graph, URIs.SessionConfiguration_host); - SessionConfiguration_host_Inverse = getResourceOrNull(graph, URIs.SessionConfiguration_host_Inverse); - SessionConfiguration_password = getResourceOrNull(graph, URIs.SessionConfiguration_password); - SessionConfiguration_password_Inverse = getResourceOrNull(graph, URIs.SessionConfiguration_password_Inverse); - SessionConfiguration_port = getResourceOrNull(graph, URIs.SessionConfiguration_port); - SessionConfiguration_port_Inverse = getResourceOrNull(graph, URIs.SessionConfiguration_port_Inverse); - SessionConfiguration_username = getResourceOrNull(graph, URIs.SessionConfiguration_username); - SessionConfiguration_username_Inverse = getResourceOrNull(graph, URIs.SessionConfiguration_username_Inverse); - Session_hasValue = getResourceOrNull(graph, URIs.Session_hasValue); - Session_hasValue_Inverse = getResourceOrNull(graph, URIs.Session_hasValue_Inverse); - TabContribution = getResourceOrNull(graph, URIs.TabContribution); - } - - public static RResource getInstance(ReadGraph graph) { - Session session = graph.getSession(); - RResource ret = session.peekService(RResource.class); - if(ret == null) { - QueryControl qc = graph.getService(QueryControl.class); - ret = new RResource(qc.getIndependentGraph(graph)); - session.registerService(RResource.class, ret); - } - return ret; - } - - public static RResource getInstance(RequestProcessor session) throws DatabaseException { - RResource ret = session.peekService(RResource.class); - if(ret == null) { - ret = session.syncRequest(new Read() { - public RResource perform(ReadGraph graph) throws DatabaseException { - QueryControl qc = graph.getService(QueryControl.class); - return new RResource(qc.getIndependentGraph(graph)); - } - }); - session.registerService(RResource.class, ret); - } - return ret; - } - -} - +package org.simantics.r; + +import org.simantics.db.RequestProcessor; +import org.simantics.db.Resource; +import org.simantics.db.ReadGraph; +import org.simantics.db.request.Read; +import org.simantics.db.Session; +import org.simantics.db.exception.DatabaseException; +import org.simantics.db.service.QueryControl; + +public class RResource { + + public final Resource Model; + public final Resource RProperty; + public final Resource Script; + public final Resource Script_text; + public final Resource Script_text_Inverse; + public final Resource Session; + public final Resource SessionConfiguration; + public final Resource SessionConfiguration_hasScript; + public final Resource SessionConfiguration_host; + public final Resource SessionConfiguration_host_Inverse; + public final Resource SessionConfiguration_password; + public final Resource SessionConfiguration_password_Inverse; + public final Resource SessionConfiguration_port; + public final Resource SessionConfiguration_port_Inverse; + public final Resource SessionConfiguration_username; + public final Resource SessionConfiguration_username_Inverse; + public final Resource Session_hasValue; + public final Resource Session_hasValue_Inverse; + public final Resource TabContribution; + + public static class URIs { + public static final String Model = "http://www.simantics.org/R-1.0/Model"; + public static final String RProperty = "http://www.simantics.org/R-1.0/RProperty"; + public static final String Script = "http://www.simantics.org/R-1.0/Script"; + public static final String Script_text = "http://www.simantics.org/R-1.0/Script/text"; + public static final String Script_text_Inverse = "http://www.simantics.org/R-1.0/Script/text/Inverse"; + public static final String Session = "http://www.simantics.org/R-1.0/Session"; + public static final String SessionConfiguration = "http://www.simantics.org/R-1.0/SessionConfiguration"; + public static final String SessionConfiguration_hasScript = "http://www.simantics.org/R-1.0/SessionConfiguration/hasScript"; + public static final String SessionConfiguration_host = "http://www.simantics.org/R-1.0/SessionConfiguration/host"; + public static final String SessionConfiguration_host_Inverse = "http://www.simantics.org/R-1.0/SessionConfiguration/host/Inverse"; + public static final String SessionConfiguration_password = "http://www.simantics.org/R-1.0/SessionConfiguration/password"; + public static final String SessionConfiguration_password_Inverse = "http://www.simantics.org/R-1.0/SessionConfiguration/password/Inverse"; + public static final String SessionConfiguration_port = "http://www.simantics.org/R-1.0/SessionConfiguration/port"; + public static final String SessionConfiguration_port_Inverse = "http://www.simantics.org/R-1.0/SessionConfiguration/port/Inverse"; + public static final String SessionConfiguration_username = "http://www.simantics.org/R-1.0/SessionConfiguration/username"; + public static final String SessionConfiguration_username_Inverse = "http://www.simantics.org/R-1.0/SessionConfiguration/username/Inverse"; + public static final String Session_hasValue = "http://www.simantics.org/R-1.0/Session/hasValue"; + public static final String Session_hasValue_Inverse = "http://www.simantics.org/R-1.0/Session/hasValue/Inverse"; + public static final String TabContribution = "http://www.simantics.org/R-1.0/TabContribution"; + } + + public static Resource getResourceOrNull(ReadGraph graph, String uri) { + try { + return graph.getResource(uri); + } catch(DatabaseException e) { + System.err.println(e.getMessage()); + return null; + } + } + + public RResource(ReadGraph graph) { + Model = getResourceOrNull(graph, URIs.Model); + RProperty = getResourceOrNull(graph, URIs.RProperty); + Script = getResourceOrNull(graph, URIs.Script); + Script_text = getResourceOrNull(graph, URIs.Script_text); + Script_text_Inverse = getResourceOrNull(graph, URIs.Script_text_Inverse); + Session = getResourceOrNull(graph, URIs.Session); + SessionConfiguration = getResourceOrNull(graph, URIs.SessionConfiguration); + SessionConfiguration_hasScript = getResourceOrNull(graph, URIs.SessionConfiguration_hasScript); + SessionConfiguration_host = getResourceOrNull(graph, URIs.SessionConfiguration_host); + SessionConfiguration_host_Inverse = getResourceOrNull(graph, URIs.SessionConfiguration_host_Inverse); + SessionConfiguration_password = getResourceOrNull(graph, URIs.SessionConfiguration_password); + SessionConfiguration_password_Inverse = getResourceOrNull(graph, URIs.SessionConfiguration_password_Inverse); + SessionConfiguration_port = getResourceOrNull(graph, URIs.SessionConfiguration_port); + SessionConfiguration_port_Inverse = getResourceOrNull(graph, URIs.SessionConfiguration_port_Inverse); + SessionConfiguration_username = getResourceOrNull(graph, URIs.SessionConfiguration_username); + SessionConfiguration_username_Inverse = getResourceOrNull(graph, URIs.SessionConfiguration_username_Inverse); + Session_hasValue = getResourceOrNull(graph, URIs.Session_hasValue); + Session_hasValue_Inverse = getResourceOrNull(graph, URIs.Session_hasValue_Inverse); + TabContribution = getResourceOrNull(graph, URIs.TabContribution); + } + + public static RResource getInstance(ReadGraph graph) { + Session session = graph.getSession(); + RResource ret = session.peekService(RResource.class); + if(ret == null) { + QueryControl qc = graph.getService(QueryControl.class); + ret = new RResource(qc.getIndependentGraph(graph)); + session.registerService(RResource.class, ret); + } + return ret; + } + + public static RResource getInstance(RequestProcessor session) throws DatabaseException { + RResource ret = session.peekService(RResource.class); + if(ret == null) { + ret = session.syncRequest(new Read() { + public RResource perform(ReadGraph graph) throws DatabaseException { + QueryControl qc = graph.getService(QueryControl.class); + return new RResource(qc.getIndependentGraph(graph)); + } + }); + session.registerService(RResource.class, ret); + } + return ret; + } + +} + diff --git a/features/pom.xml b/features/pom.xml index 7eebcef..da6caad 100644 --- a/features/pom.xml +++ b/features/pom.xml @@ -15,36 +15,6 @@ - - org.eclipse.tycho.extras - tycho-source-feature-plugin - ${tycho.extras.version} - - - source-feature - package - - source-feature - - - - - - - - - - - - - - - - - - - - org.eclipse.tycho tycho-p2-plugin diff --git a/releng/org.simantics.r.build.targetdefinition/org.simantics.r.build.targetdefinition.target b/releng/org.simantics.r.build.targetdefinition/org.simantics.r.build.targetdefinition.target index a184f32..ee8583e 100644 --- a/releng/org.simantics.r.build.targetdefinition/org.simantics.r.build.targetdefinition.target +++ b/releng/org.simantics.r.build.targetdefinition/org.simantics.r.build.targetdefinition.target @@ -1,224 +1,332 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/releng/org.simantics.r.build.targetdefinition/org.simantics.r.build.targetdefinition.tpd b/releng/org.simantics.r.build.targetdefinition/org.simantics.r.build.targetdefinition.tpd new file mode 100644 index 0000000..ad37f58 --- /dev/null +++ b/releng/org.simantics.r.build.targetdefinition/org.simantics.r.build.targetdefinition.tpd @@ -0,0 +1,5 @@ +target "Simupedia 1.31.0" + +with source allEnvironments + +include "http://www.simantics.org/download/master/simantics.tpd" diff --git a/releng/org.simantics.r.tycho.configuration/pom.xml b/releng/org.simantics.r.tycho.configuration/pom.xml index f8f1a62..96df243 100644 --- a/releng/org.simantics.r.tycho.configuration/pom.xml +++ b/releng/org.simantics.r.tycho.configuration/pom.xml @@ -8,8 +8,8 @@ pom - 0.26.0 - 0.26.0 + 1.0.0 + 1.0.0 UTF-8 @@ -45,11 +45,6 @@ - - linux - gtk - x86 - linux gtk