Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormegumi.telles2017-03-20 16:20:36 +0000
committerdonald.g.dunne2017-03-21 02:08:53 +0000
commitce65260dcc0159b16d52dd81fcd41280e0eaae43 (patch)
treef91239bd11e010becdf3c5ac8edd683e7623b4ca
parentfb3de5b9e9ee4f145fe1826137716a17dffe1c03 (diff)
downloadorg.eclipse.osee-ce65260dcc0159b16d52dd81fcd41280e0eaae43.tar.gz
org.eclipse.osee-ce65260dcc0159b16d52dd81fcd41280e0eaae43.tar.xz
org.eclipse.osee-ce65260dcc0159b16d52dd81fcd41280e0eaae43.zip
feature: Add publish script to repo
-rw-r--r--publish.xml54
1 files changed, 54 insertions, 0 deletions
diff --git a/publish.xml b/publish.xml
new file mode 100644
index 00000000000..dd6ad41e72b
--- /dev/null
+++ b/publish.xml
@@ -0,0 +1,54 @@
+<!--
+ Inputs needed:
+
+ version - The OSEE version (0.24.4)
+ ReleaseDir - Where the releases reside (/home/data/httpd/download.eclipse.org/osee/updates/releases/)
+ ClientSourceDir - Where the client zip resides:
+ https://hudson.eclipse.org/osee/job/osee_dev/lastSuccessfulBuild/artifact/org.eclipse.osee/plugins/org.eclipse.osee.client.all.p2/target/
+ ServerSourceDir - Where the server zip resides:
+ https://hudson.eclipse.org/osee/job/osee_dev/lastSuccessfulBuild/artifact/org.eclipse.osee/plugins/org.eclipse.osee.x.server.p2/target/
+-->
+
+
+<project name="Open Systems Engineering Environment" basedir=".">
+
+ <!-- ================================================================= -->
+ <!-- P R O P E R T I E S -->
+ <!-- ================================================================= -->
+
+ <property name="clientZip" value="org.eclipse.osee.client.all.p2-${version}-SNAPSHOT.zip" />
+ <property name="serverZip" value="org.eclipse.osee.x.server.runtime.zip" />
+
+ <!-- ================================================================= -->
+ <!-- P U B L I S H -->
+ <!-- ================================================================= -->
+ <target name="publish"
+ description="Copies the OSEE Client and Server zip files to the release site.">
+
+ <!-- Recreate the target directory. It can happen that this task
+ fails seemingly at random. To be sure, we wrap it in a retry
+ task that repeats the mkdir call up to 10 times, with a pause
+ between each pair of attempts (the retrydelay is measured in
+ milliseconds). -->
+ <!--<retry retrycount="10" retrydelay="1000">-->
+ <mkdir dir="${targetDir}/releases"/>
+ <mkdir dir="${targetDir}/releases/${version}"/>
+ <!--</retry> -->
+
+ <!-- Copy to target directory -->
+ <copy file="${ClientSourceDir}/${clientZip}" todir="${targetDir}" />
+ <copy file="${ServerSourceDir}/${serverZip}" todir="${targetDir}"/>
+ </target>
+
+
+ <!-- ================================================================= -->
+ <!-- P U R G E -->
+ <!-- ================================================================= -->
+ <target name="purge"
+ description="Purges the target directory by removing it.">
+ <delete dir="${targetDir}" />
+ </target>
+
+</project>
+
+

Back to the top