]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Share project "org.simantics.sysdyn.product.site.feature" into "https://www.simantics...
authorlehtonen <lehtonen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Thu, 15 Sep 2011 08:46:31 +0000 (08:46 +0000)
committerlehtonen <lehtonen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Thu, 15 Sep 2011 08:46:31 +0000 (08:46 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@22231 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn.product.site.feature/.credentials.properties [new file with mode: 0644]
org.simantics.sysdyn.product.site.feature/.project [new file with mode: 0644]
org.simantics.sysdyn.product.site.feature/buckminster.cspex [new file with mode: 0644]
org.simantics.sysdyn.product.site.feature/buckminster.properties [new file with mode: 0644]
org.simantics.sysdyn.product.site.feature/build.properties [new file with mode: 0644]
org.simantics.sysdyn.product.site.feature/build/product.ant [new file with mode: 0644]
org.simantics.sysdyn.product.site.feature/feature.xml [new file with mode: 0644]
org.simantics.sysdyn.product.site.feature/jenkins.buckminster.script [new file with mode: 0644]
org.simantics.sysdyn.product.site.feature/org.simantics.modelica.product.site.cquery [new file with mode: 0644]

diff --git a/org.simantics.sysdyn.product.site.feature/.credentials.properties b/org.simantics.sysdyn.product.site.feature/.credentials.properties
new file mode 100644 (file)
index 0000000..859dca4
--- /dev/null
@@ -0,0 +1,2 @@
+simantics.user=anonymous\r
+simantics.password=
\ No newline at end of file
diff --git a/org.simantics.sysdyn.product.site.feature/.project b/org.simantics.sysdyn.product.site.feature/.project
new file mode 100644 (file)
index 0000000..83aae40
--- /dev/null
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<projectDescription>\r
+       <name>org.simantics.sysdyn.product.site.feature</name>\r
+       <comment></comment>\r
+       <projects>\r
+       </projects>\r
+       <buildSpec>\r
+               <buildCommand>\r
+                       <name>org.eclipse.pde.FeatureBuilder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </buildCommand>\r
+       </buildSpec>\r
+       <natures>\r
+               <nature>org.eclipse.pde.FeatureNature</nature>\r
+       </natures>\r
+</projectDescription>\r
diff --git a/org.simantics.sysdyn.product.site.feature/buckminster.cspex b/org.simantics.sysdyn.product.site.feature/buckminster.cspex
new file mode 100644 (file)
index 0000000..46e472e
--- /dev/null
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<cspecExtension xmlns:com="http://www.eclipse.org/buckminster/Common-1.0"\r
+                    xmlns="http://www.eclipse.org/buckminster/CSpec-1.0">\r
+    <actions>\r
+        <public name="create.product" actor="ant">\r
+            <actorProperties>\r
+                <property key="buildFile" value="build/product.ant" />\r
+                <property key="targets" value="create.product" />\r
+            </actorProperties>\r
+            <properties>\r
+                <property key="profile" value="${p2.profileName}" />\r
+                <property key="iu" value="${p2.rootId}" />\r
+            </properties>\r
+            <prerequisites alias="repository">\r
+                <attribute name="site.p2" />\r
+            </prerequisites>\r
+            <products alias="destination" base="${buckminster.output}">\r
+                <path path="${build.label}.${target.ws}.${target.os}.${target.arch}/" />\r
+            </products>\r
+        </public>\r
+        <public name="create.product.zip" actor="ant">\r
+            <actorProperties>\r
+                <property key="buildFileId" value="buckminster.pdetasks" />\r
+                <property key="targets" value="create.zip" />\r
+            </actorProperties>\r
+            <prerequisites alias="action.requirements">\r
+                <attribute name="create.product" />\r
+            </prerequisites>\r
+            <products alias="action.output" base="${buckminster.output}">\r
+                <path path="${build.label}.${target.ws}.${target.os}.${target.arch}.zip" />\r
+            </products>\r
+        </public>\r
+    </actions>\r
+</cspecExtension>
\ No newline at end of file
diff --git a/org.simantics.sysdyn.product.site.feature/buckminster.properties b/org.simantics.sysdyn.product.site.feature/buckminster.properties
new file mode 100644 (file)
index 0000000..f310dee
--- /dev/null
@@ -0,0 +1,22 @@
+#buckminster.output.root=c:/simantics-build/site
+#buckminster.temp.root=c:/simantics-build/temp
+
+# How .qualifier in versions should be replaced
+qualifier.replacement.*=generator:lastRevision
+generator.lastRevision.format=r{0,number,000000}
+
+# Pack200 compression
+#site.pack200=true
+#site.retain.unpack=true
+
+# JAR Signing
+#site.signing=true
+#signing.type=local
+#local.sign=true
+
+# Generate source bundles
+cbi.include.source=false
+
+target.os=win32
+target.ws=win32
+target.arch=*
diff --git a/org.simantics.sysdyn.product.site.feature/build.properties b/org.simantics.sysdyn.product.site.feature/build.properties
new file mode 100644 (file)
index 0000000..82ab19c
--- /dev/null
@@ -0,0 +1 @@
+bin.includes = feature.xml\r
diff --git a/org.simantics.sysdyn.product.site.feature/build/product.ant b/org.simantics.sysdyn.product.site.feature/build/product.ant
new file mode 100644 (file)
index 0000000..77b45fc
--- /dev/null
@@ -0,0 +1,50 @@
+<project>\r
+        <pathconvert property="equinox.launcher.jar">\r
+          <first count="1">\r
+            <sort>\r
+              <fileset dir="${eclipse.home}/plugins" includes="**/org.eclipse.equinox.launcher_*.jar"/>\r
+              <reverse xmlns="antlib:org.apache.tools.ant.types.resources.comparators">\r
+                <date/>\r
+              </reverse>\r
+            </sort>\r
+          </first>\r
+        </pathconvert>\r
+\r
+       <target name="create.product">\r
+               <property name="destination" location="${sp:destination}"/>\r
+               <delete dir="${destination}"></delete>\r
+               <makeurl property="repository" file="${sp:repository}"/>\r
+               <mkdir dir="${destination}"/>\r
+               <echoproperties ></echoproperties>\r
+               <echo message="${equinox.launcher.jar}"/>\r
+               <echo message="${repository}"/>\r
+               <echo message="${destination}"/>\r
+               <java jar="${equinox.launcher.jar}" fork="true" failonerror="true" >\r
+                       <arg value="-application"/>\r
+                       <arg value="org.eclipse.equinox.p2.director"/>\r
+                       <arg value="-artifactRepository"/>\r
+                       <arg value="${repository}"/>\r
+                       <arg value="-metadataRepository"/>\r
+                       <arg value="${repository}"/>\r
+                       <arg value="-destination"/>\r
+                       <arg value="${destination}"/>\r
+                       <arg value="-bundlepool"/>\r
+                       <arg value="${destination}"/>\r
+                       <arg value="-profile"/>\r
+                       <arg value="${profile}"/>\r
+                       <arg value="-profileProperties" />\r
+                       <arg value="org.eclipse.update.install.features=true" />\r
+                       <arg value="-installIU"/>\r
+                       <arg value="${iu}"/>\r
+                       <arg value="-p2.os" />\r
+                       <arg value="${target.os}" />\r
+                       <arg value="-p2.ws" />\r
+                       <arg value="${target.ws}" />\r
+                       <arg value="-p2.arch" />\r
+                       <arg value="${target.arch}" />\r
+                       <arg value="-consoleLog"/>\r
+                       <jvmarg value="-Declipse.p2.data.area=${destination}/p2"/>\r
+                       <jvmarg value="-Declipse.p2.profile=${profile}"/>\r
+               </java>\r
+       </target>\r
+</project>
\ No newline at end of file
diff --git a/org.simantics.sysdyn.product.site.feature/feature.xml b/org.simantics.sysdyn.product.site.feature/feature.xml
new file mode 100644 (file)
index 0000000..fd5e32d
--- /dev/null
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<feature\r
+      id="org.simantics.sysdyn.product.site"\r
+      label="Sysdyn Product Site"\r
+      version="1.5.0.qualifier"\r
+      provider-name="VTT Technical Research Centre of Finland">\r
+\r
+   <description url="http://www.example.com/description">\r
+      [Enter Feature Description here.]\r
+   </description>\r
+\r
+   <copyright url="http://www.example.com/copyright">\r
+      [Enter Copyright Description here.]\r
+   </copyright>\r
+\r
+   <license url="http://www.example.com/license">\r
+      [Enter License Description here.]\r
+   </license>\r
+\r
+   <includes\r
+         id="org.simantics.sysdyn"\r
+         version="0.0.0"/>\r
+\r
+</feature>\r
diff --git a/org.simantics.sysdyn.product.site.feature/jenkins.buckminster.script b/org.simantics.sysdyn.product.site.feature/jenkins.buckminster.script
new file mode 100644 (file)
index 0000000..498a44f
--- /dev/null
@@ -0,0 +1,6 @@
+importtargetdefinition -A 'd:/target/3.6.2/target-win.target'\r
+import 'org.simantics.sysdyn.product.site/org.simantics.sysdyn.product.site.cquery'\r
+build\r
+perform -D target.os=* -D target.ws=* -D target.arch=* org.simantics.sysdyn.product.site#site.p2\r
+perform -D target.os=win32 -D target.ws=win32 -D target.arch=x86 -D p2.profileName=SysdynProfile -D p2.rootId=org.simantics.sysdyn.product.Sysdyn -D build.label=SimanticsSysdyn-b${BUILD_NUMBER}-r${SVN_REVISION} org.simantics.sysdyn.product.site#create.product.zip\r
+perform -D target.os=win32 -D target.ws=win32 -D target.arch=x86_64 -D p2.profileName=SysdynProfile -D p2.rootId=org.simantics.sysdyn.product.Sysdyn -D build.label=SimanticsSysdyn-b${BUILD_NUMBER}-r${SVN_REVISION} org.simantics.sysdyn.product.site#create.product.zip\r
diff --git a/org.simantics.sysdyn.product.site.feature/org.simantics.modelica.product.site.cquery b/org.simantics.sysdyn.product.site.feature/org.simantics.modelica.product.site.cquery
new file mode 100644 (file)
index 0000000..f5ee7e1
--- /dev/null
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<cq:componentQuery xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0" resourceMap="http://www.simantics.org/download/head/rmap/Sysdyn.rmap" properties=".credentials.properties">\r
+    <cq:rootRequest name="org.simantics.sysdyn.product.site" componentType="eclipse.feature"/>\r
+    <cq:property key="target.arch" value="*"/>\r
+    <cq:property key="target.os" value="*"/>\r
+    <cq:property key="target.ws" value="*"/>\r
+    <cq:advisorNode namePattern=".*\.source" componentType="osgi.bundle" skipComponent="true"/>\r
+    <cq:advisorNode namePattern=".*\.source" componentType="eclipse.feature" skipComponent="true"/>\r
+    <cq:advisorNode namePattern=".*" branchTagPath="main"/>\r
+</cq:componentQuery>\r