Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.osee.x.server.p2')
-rw-r--r--plugins/org.eclipse.osee.x.server.p2/.project17
-rw-r--r--plugins/org.eclipse.osee.x.server.p2/category.xml14
-rw-r--r--plugins/org.eclipse.osee.x.server.p2/demo/binary_data.zipbin0 -> 316239 bytes
-rw-r--r--plugins/org.eclipse.osee.x.server.p2/demo/h2.zipbin0 -> 618045 bytes
-rw-r--r--plugins/org.eclipse.osee.x.server.p2/demo/osee.demo.db.connection.xml24
-rw-r--r--plugins/org.eclipse.osee.x.server.p2/package-server-runtime.xml163
-rw-r--r--plugins/org.eclipse.osee.x.server.p2/pom.xml56
-rw-r--r--plugins/org.eclipse.osee.x.server.p2/x.server.product43
8 files changed, 317 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.x.server.p2/.project b/plugins/org.eclipse.osee.x.server.p2/.project
new file mode 100644
index 00000000000..46c29702746
--- /dev/null
+++ b/plugins/org.eclipse.osee.x.server.p2/.project
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.osee.x.server.p2</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.pde.UpdateSiteBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.UpdateSiteNature</nature>
+ </natures>
+</projectDescription>
diff --git a/plugins/org.eclipse.osee.x.server.p2/category.xml b/plugins/org.eclipse.osee.x.server.p2/category.xml
new file mode 100644
index 00000000000..4e63a30d349
--- /dev/null
+++ b/plugins/org.eclipse.osee.x.server.p2/category.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<site>
+ <feature url="features/org.eclipse.osee.x.server.feature_0.9.9.qualifier.jar" id="org.eclipse.osee.x.server.feature" version="0.9.9.qualifier">
+ <category name="org.eclipse.osee.x.server"/>
+ </feature>
+ <feature url="features/org.eclipse.osee.x.server.feature.source_0.9.9.qualifier.jar" id="org.eclipse.osee.x.server.feature.source" version="0.9.9.qualifier">
+ <category name="org.eclipse.osee.x.server"/>
+ </feature>
+ <category-def name="org.eclipse.osee.x.server" label="Eclipse OSEE Application Server X - (Incubation)">
+ <description>
+ Eclipse OSEE Application Server X - (Incubation)
+ </description>
+ </category-def>
+</site>
diff --git a/plugins/org.eclipse.osee.x.server.p2/demo/binary_data.zip b/plugins/org.eclipse.osee.x.server.p2/demo/binary_data.zip
new file mode 100644
index 00000000000..1ce359d8b92
--- /dev/null
+++ b/plugins/org.eclipse.osee.x.server.p2/demo/binary_data.zip
Binary files differ
diff --git a/plugins/org.eclipse.osee.x.server.p2/demo/h2.zip b/plugins/org.eclipse.osee.x.server.p2/demo/h2.zip
new file mode 100644
index 00000000000..ce7a9a68af2
--- /dev/null
+++ b/plugins/org.eclipse.osee.x.server.p2/demo/h2.zip
Binary files differ
diff --git a/plugins/org.eclipse.osee.x.server.p2/demo/osee.demo.db.connection.xml b/plugins/org.eclipse.osee.x.server.p2/demo/osee.demo.db.connection.xml
new file mode 100644
index 00000000000..93ef2e2bcaa
--- /dev/null
+++ b/plugins/org.eclipse.osee.x.server.p2/demo/osee.demo.db.connection.xml
@@ -0,0 +1,24 @@
+<DbConnection>
+
+ <DatabaseInfo id="h2.db.info">
+ <DatabaseHome key="#DBHOME#" value="demo/h2/" />
+ <DatabaseName key="#DBNAME#" value="osee.h2.db" />
+ <DatabaseType key="#TYPE#" value="h2" />
+ <Prefix key="#PREFIX#" value="jdbc:h2:tcp" />
+ <UserName key="#USERNAME#" value="osee" />
+ <Password key="#PASSWORD#" value="osee" />
+ <Host key="#HOST#" value="@AvailableDbServices.hostAddress" />
+ <Port key="#PORT#" value="@AvailableDbServices.port" />
+ </DatabaseInfo>
+
+ <ConnectionDescription id="h2.db.connection">
+ <Driver>org.h2.Driver</Driver>
+ <Url>#PREFIX#://#HOST#:#PORT#/#DBHOME##DBNAME#;IGNORECASE=TRUE;SCHEMA_SEARCH_PATH=OSEE,PUBLIC</Url>
+ </ConnectionDescription>
+
+ <AvailableDbServices>
+ <Server id="osee.demo.h2" dbInfo="h2.db.info" hostAddress="127.0.0.1"
+ port="8088" connectsWith="h2.db.connection" />
+ </AvailableDbServices>
+
+</DbConnection>
diff --git a/plugins/org.eclipse.osee.x.server.p2/package-server-runtime.xml b/plugins/org.eclipse.osee.x.server.p2/package-server-runtime.xml
new file mode 100644
index 00000000000..b3826d2ff09
--- /dev/null
+++ b/plugins/org.eclipse.osee.x.server.p2/package-server-runtime.xml
@@ -0,0 +1,163 @@
+<project name="Generates OSEE Application Server Runtime Package" default="run">
+
+ <target name="setup">
+ <echo>Packaging Server Runtime</echo>
+ <echo>Output-Path: ${output-path}</echo>
+ <echo>P2-Content-Path: ${p2-content-path}</echo>
+ <echo>Output-Name: ${output-name}</echo>
+ <echo>Server-Path: ${server-path}</echo>
+ <echo>Demo-Data-Path: ${demo-content-path}</echo>
+ <echo />
+
+ <condition property="os-separator-exp" value="\\" else="/">
+ <os family="windows" />
+ </condition>
+
+ <mkdir dir="${server-path}" />
+
+ <property name="server-config-path" value="${server-path}/configuration" />
+ <property name="server-plugins-path" value="${server-path}/plugins" />
+
+ <mkdir dir="${server-config-path}" />
+ <mkdir dir="${server-plugins-path}" />
+
+ <copy todir="${server-plugins-path}">
+ <fileset dir="${p2-content-path}/plugins" excludes="**/*source_*.jar" />
+ </copy>
+
+ <pathconvert property="launcherBundlePath" setonempty="false">
+ <path>
+ <fileset dir="${server-plugins-path}">
+ <include name="org.eclipse.equinox.launcher_*.jar" />
+ </fileset>
+ </path>
+ </pathconvert>
+ <propertyregex property="equinox-launcher-jar" override="true" input="${launcherBundlePath}" regexp="[^${os-separator-exp}]+$" select="\0" casesensitive="false" />
+ </target>
+
+ <target name="pack">
+ <zip destfile="${output-path}/${output-name}.zip">
+ <fileset dir="${server-path}" />
+ </zip>
+ </target>
+
+ <target name="cleanup">
+ <delete dir="${server-path}" quiet="true" />
+ </target>
+
+ <target name="generateConfig">
+ <generateConfigIni configPath="${server-config-path}" pluginsPath="${server-plugins-path}" />
+ </target>
+
+ <!-- *************************************************************** -->
+ <!-- MAIN RUN -->
+ <!-- *************************************************************** -->
+ <target name="run" depends="setup,generateConfig,generateLaunchScripts,pack" />
+
+ <!-- *************************************************************** -->
+ <!-- LAUNCH CONFIGS -->
+ <!-- *************************************************************** -->
+ <target name="generateTemplate">
+ <createLaunch filepath="${server-path}/runExample.sh" connection.id="[id from connection file]" serverport="8089" executable="false" launcher="${equinox-launcher-jar}" extraVMArgs="-Dosee.connection.info.uri=[custom connection file path] \${line.separator}-Dosee.application.server.data=[binary data path]" />
+ </target>
+
+ <target name="generateH2Launch">
+ <createLaunch filepath="${server-path}/runH2.sh" connection.id="h2" serverport="8089" launcher="${equinox-launcher-jar}" extraVMArgs="-Dosee.db.embedded.server=0.0.0.0:8088" />
+ </target>
+
+ <target name="generateDemoLaunch">
+ <createLaunch filepath="${server-path}/runDemo.sh" connection.id="osee.demo.h2" serverport="8089" launcher="${equinox-launcher-jar}" extraVMArgs="-Dosee.db.embedded.server=0.0.0.0:8088 \${line.separator}-Dosee.connection.info.uri=&quot;demo/osee.demo.db.connection.xml&quot; \${line.separator}-Dosee.application.server.data=&quot;demo/binary_data&quot;" />
+
+ <copy file="${server-path}/runDemo.sh" tofile="${server-path}/runDemo.bat" overwrite="true" />
+ <replaceregexp file="${server-path}/runDemo.bat" match="\\" replace="^" flags="g" />
+
+ <!-- Copy Demo Files -->
+ <property name="server-demo-path" value="${server-path}/demo" />
+
+ <mkdir dir="${server-demo-path}" />
+ <mkdir dir="${server-demo-path}/binary_data" />
+
+ <unzip src="${demo-content-path}/h2.zip" dest="${server-demo-path}" />
+ <unzip src="${demo-content-path}/binary_data.zip" dest="${server-demo-path}/binary_data" />
+ <copy file="${demo-content-path}/osee.demo.db.connection.xml" tofile="${server-demo-path}/osee.demo.db.connection.xml" />
+ </target>
+
+ <target name="generateLocalPostgresLaunch">
+ <createLaunch filepath="${server-path}/runPostgresqlLocal.sh" connection.id="postgresqlLocalhost" serverport="8089" launcher="${equinox-launcher-jar}" />
+ </target>
+
+ <target name="generateLaunchScripts" depends="generateTemplate,generateDemoLaunch,generateH2Launch,generateLocalPostgresLaunch" />
+
+ <!-- *************************************************************** -->
+ <!-- GENERATE CONFIG.INI -->
+ <!-- *************************************************************** -->
+ <macrodef name="generateConfigIni">
+ <attribute name="configPath" />
+ <attribute name="pluginsPath" />
+ <sequential>
+ <echo file="@{configPath}/config.ini" append="false" message="osgi.bundles= \${line.separator}\${line.separator}" />
+
+ <pathconvert property="serverBundles" setonempty="false" pathsep=";">
+ <path>
+ <fileset dir="@{pluginsPath}">
+ <exclude name="org.eclipse.osgi_*.jar" />
+ <exclude name="org.eclipse.equinox.launcher_*.jar" />
+ <exclude name="*source_*.jar" />
+ </fileset>
+ </path>
+ </pathconvert>
+
+ <var name="isFirst" value="false" />
+ <for param="bundle" delimiter=";" list="${serverBundles}" trim="true">
+ <sequential>
+ <propertyregex override="yes" property="jarFilename" input="@{bundle}" regexp="[^${os-separator-exp}]+$" select="\0" />
+
+ <propertyregex property="projectName" override="true" input="${jarFilename}" regexp="(.*?)_" select="\1" casesensitive="false" />
+ <if>
+ <equals arg1="${isFirst}" arg2="true" />
+ <then>
+ <echo file="@{configPath}/config.ini" message=", \${line.separator}" append="true" />
+ <var name="isFirst" value="false" />
+ </then>
+ </if>
+ <echo file="@{configPath}/config.ini" message="${projectName}@start" append="true" />
+ <var name="isFirst" value="true" />
+ </sequential>
+ </for>
+ <echo file="@{configPath}/config.ini" append="true">
+osgi.noShutdown=true
+eclipse.ignoreApp=true
+equinox.ds.debug=true
+osee.log.default=INFO
+ </echo>
+ </sequential>
+ </macrodef>
+
+ <!-- *************************************************************** -->
+ <!-- GENERATE LAUNCH -->
+ <!-- *************************************************************** -->
+ <macrodef name="createLaunch">
+ <attribute name="filepath" />
+ <attribute name="serverport" />
+ <attribute name="connection.id" />
+ <attribute name="launcher" />
+ <attribute name="serverMaxMem" default="1024m" />
+ <attribute name="executable" default="true" />
+ <attribute name="extraVMArgs" default=" " />
+ <sequential>
+ <echo file="@{filepath}" append="false">java \
+-Xmx@{serverMaxMem} \
+-Dorg.osgi.service.http.port=@{serverport} \
+-Dosee.db.connection.id=@{connection.id} \
+@{extraVMArgs} \
+-jar plugins/@{launcher} -console
+</echo>
+ <if>
+ <equals arg1="@{executable}" arg2="true" />
+ <then>
+ <chmod file="@{filepath}" perm="ugo+rx" />
+ </then>
+ </if>
+ </sequential>
+ </macrodef>
+</project> \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.x.server.p2/pom.xml b/plugins/org.eclipse.osee.x.server.p2/pom.xml
new file mode 100644
index 00000000000..c49433c5655
--- /dev/null
+++ b/plugins/org.eclipse.osee.x.server.p2/pom.xml
@@ -0,0 +1,56 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.eclipse.osee</groupId>
+ <artifactId>org.eclipse.osee.x.server.parent</artifactId>
+ <version>0.9.9-SNAPSHOT</version>
+ <relativePath>../../plugins/org.eclipse.osee.x.server.parent</relativePath>
+ </parent>
+
+ <artifactId>org.eclipse.osee.x.server.p2</artifactId>
+ <packaging>eclipse-repository</packaging>
+ <name>OSEE X Server - p2 Site (Incubation)</name>
+ <version>0.9.9-SNAPSHOT</version>
+
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>${maven-antrun-version}</version>
+ <executions>
+ <execution>
+ <id>build-osee-server</id>
+ <phase>package</phase>
+ <configuration>
+ <target>
+ <property name="plugin_classpath" refid="maven.plugin.classpath" />
+ <taskdef resource="net/sf/antcontrib/antlib.xml">
+ <classpath>
+ <pathelement path="${classpath}" />
+ <pathelement path="${plugin_classpath}" />
+ </classpath>
+ </taskdef>
+
+ <property name="output-name" value="org.eclipse.osee.x.server.runtime" />
+ <property name="p2-content-path" value="${project.build.directory}/repository" />
+ <property name="output-path" value="${project.build.directory}" />
+ <property name="server-path" value="${output-path}/server" />
+ <property name="demo-content-path" value="${project.basedir}/demo" />
+
+ <ant antfile="package-server-runtime.xml" target="run"
+ inheritRefs="true" />
+ </target>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
diff --git a/plugins/org.eclipse.osee.x.server.p2/x.server.product b/plugins/org.eclipse.osee.x.server.p2/x.server.product
new file mode 100644
index 00000000000..45be50b76c2
--- /dev/null
+++ b/plugins/org.eclipse.osee.x.server.p2/x.server.product
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?pde version="3.5"?>
+
+<product name="OSEE Application Server X (Incubation)" uid="org.eclipse.osee.x.server.product" version="0.9.9.qualifier" useFeatures="true" includeLaunchers="true">
+
+
+ <configIni use="default">
+ </configIni>
+
+ <launcherArgs>
+ <programArgs>-consoleLog -console -clean</programArgs>
+ <vmArgs>-Declipse.ignoreApp=true
+-Dosgi.noShutdown=true
+-Dequinox.ds.print=true
+-Dorg.osgi.service.http.port=8089
+-Dlogback.configurationFile=logback-dev.xml</vmArgs>
+ <vmArgsMac>-XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts</vmArgsMac>
+ </launcherArgs>
+
+ <windowImages/>
+
+
+ <launcher name="osee_server">
+ <solaris/>
+ <win useIco="false">
+ <bmp/>
+ </win>
+ </launcher>
+
+
+ <vm>
+ </vm>
+
+
+ <plugins>
+ </plugins>
+
+ <features>
+ <feature id="org.eclipse.osee.x.server.feature" version="0.9.9.qualifier"/>
+ </features>
+
+
+</product>

Back to the top