blob: b7603244eff039d24c517449c6674d1df3d2e7dd [file] [log] [blame]
mwenzae0eceb2010-07-30 12:25:50 +00001<?xml version="1.0"?>
2<project name="project">
mwenz4f0e7b52010-09-24 12:11:11 +00003
4 <target name="create.javadoc" description="Generate the JavaDoc for the sources">
mwenzf19951c2012-05-30 16:35:35 +02005 <echo message="Generate the JavaDoc for the Graphiti sources"></echo>
6 <echo message="Buckminster workspace is ${root}/buildroot/buckminster.workspace" />
mwenz4f0e7b52010-09-24 12:11:11 +00007
8 <!-- set targetPlatformPath as classpath -->
9 <path id="files-classpath">
mwenz48d481e2010-09-27 11:13:19 +000010 <fileset dir="${root}/buildroot/target.platform">
mwenz4f0e7b52010-09-24 12:11:11 +000011 <include name="*.jar"/>
12 </fileset>
13 </path>
mwenzf19951c2012-05-30 16:35:35 +020014 <echo message="Set files-classpath to: ${root}/buildroot/target.platform" />
mwenz4f0e7b52010-09-24 12:11:11 +000015
16 <!-- clean and create output location -->
mwenzd139c632011-07-28 09:32:40 +020017 <delete dir="${root}/buildroot/buckminster.workspace/../../org.eclipse.gmp/org.eclipse.gmp.graphiti/examples/org.eclipse.graphiti.doc/javadoc"/>
mwenzf19951c2012-05-30 16:35:35 +020018 <echo message="Deleted old folder: ${root}/buildroot/buckminster.workspace/../../org.eclipse.gmp/org.eclipse.gmp.graphiti/examples/org.eclipse.graphiti.doc/javadoc" />
mwenzd139c632011-07-28 09:32:40 +020019 <mkdir dir="${root}/buildroot/buckminster.workspace/../../org.eclipse.gmp/org.eclipse.gmp.graphiti/examples/org.eclipse.graphiti.doc/javadoc"/>
mwenzf19951c2012-05-30 16:35:35 +020020 <echo message="Created folder: ${root}/buildroot/buckminster.workspace/../../org.eclipse.gmp/org.eclipse.gmp.graphiti/examples/org.eclipse.graphiti.doc/javadoc" />
mwenz4f0e7b52010-09-24 12:11:11 +000021
22 <!-- generate the javadoc -->
mwenzd139c632011-07-28 09:32:40 +020023 <javadoc destdir="${root}/buildroot/buckminster.workspace/../../org.eclipse.gmp/org.eclipse.gmp.graphiti/examples/org.eclipse.graphiti.doc/javadoc"
mwenz4f0e7b52010-09-24 12:11:11 +000024 classpathref="files-classpath"
25 author="true"
26 version="true"
27 nodeprecated="false"
28 nodeprecatedlist="false"
29 access="private"
30 maxmemory="1024m"
31 useexternalfile="true"
32 sourcepath="src"
33 verbose="true"
34 use="true"
35 noindex="false"
36 nonavbar="false"
37 notree="false"
38 splitindex="true"
39 windowtitle="Graphiti Documentation">
40
mwenz7febe2a2011-05-11 08:38:50 +000041 <arg value="-J-Dhttp.proxyHost=proxy.eclipse.org"/>
42 <arg value="-J-Dhttp.proxyPort=9898"/>
43
mwenz4f0e7b52010-09-24 12:11:11 +000044 <!-- link external APIs -->
mwenzf19951c2012-05-30 16:35:35 +020045 <link href="http://docs.oracle.com/javase/5/docs/api/"/>
mwenz4f0e7b52010-09-24 12:11:11 +000046 <link href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.6.0/"/>
47 <link href="http://download.eclipse.org/modeling/emf/transaction/javadoc/workspace/1.4.0/"/>
48
49 <!-- Graphiti sources -->
mwenzd139c632011-07-28 09:32:40 +020050 <fileset dir="${root}/org.eclipse.gmp/org.eclipse.gmp.graphiti/plugins/" defaultexcludes="true">
mwenz4f0e7b52010-09-24 12:11:11 +000051 <include name="**/*.java"/>
52 <exclude name="**/internal/**"/>
53 <exclude name="**/tests/**"/>
54 <exclude name="**/examples/**"/>
mwenz8d5a50e2012-05-30 15:47:32 +020055 <exclude name="**/testtool/**"/>
mwenzf19951c2012-05-30 16:35:35 +020056 <exclude name="**/templates_3.4/**"/>
mwenz4f0e7b52010-09-24 12:11:11 +000057 </fileset>
mwenz58756632012-05-30 15:24:13 +020058 <bottom><![CDATA[ <a href="http://www.eclipse.org/legal/epl-v10.html" shape="rect">Copyright (c) SAP AG 2005, 2012.</a>]]></bottom>
mwenz4f0e7b52010-09-24 12:11:11 +000059 </javadoc>
mwenzf19951c2012-05-30 16:35:35 +020060 <echo message="Generated JavaDoc" />
mwenzae0eceb2010-07-30 12:25:50 +000061 </target>
mwenz4f0e7b52010-09-24 12:11:11 +000062
63 <target name="create.site.index">
64 <echo message="Creating human readable index.html" />
mwenz48d481e2010-09-27 11:13:19 +000065 <unzip src="${root}/buildroot/buckminster.build/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.p2/content.jar"
66 dest="${root}/buildroot/buckminster.build/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.p2" />
mwenz4f0e7b52010-09-24 12:11:11 +000067 <xslt style="xsl/content2html.xsl"
mwenz48d481e2010-09-27 11:13:19 +000068 in="${root}/buildroot/buckminster.build/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.p2/content.xml"
69 out="${root}/buildroot/buckminster.build/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.p2/index.html" />
mwenz4f0e7b52010-09-24 12:11:11 +000070 <xslt style="xsl/content2xml.xsl"
mwenz48d481e2010-09-27 11:13:19 +000071 in="${root}/buildroot/buckminster.build/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.p2/content.xml"
72 out="${root}/buildroot/buckminster.build/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.p2/index.xml" />
73 <delete file="${root}/buildroot/buckminster.build/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.p2/content.xml" />
mwenzae0eceb2010-07-30 12:25:50 +000074 </target>
mwenz4f0e7b52010-09-24 12:11:11 +000075
mwenz25bf2672010-10-06 14:27:22 +000076 <target name="copy.sites" >
mwenz25bf2672010-10-06 14:27:22 +000077
mwenz056cf4e2011-07-05 08:41:44 +000078 <echo message="Deleting old packed update site from last_success area" />
79 <delete dir="${root}/last_success/site.packed/" failonerror="true" />
80
mwenz636f45d2010-10-07 07:16:28 +000081 <echo message="Deleting old ZIP archive from last_success area" />
mwenz25bf2672010-10-06 14:27:22 +000082 <delete dir="${root}/last_success/site.p2.zip/" failonerror="true" />
mwenzda273bc2011-02-02 09:31:53 +000083
mwenz056cf4e2011-07-05 08:41:44 +000084 <echo message="Copying site.packed to last_success area" />
85 <copydir dest="${root}/last_success/site.packed/" src="${root}/buildroot/buckminster.build/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.packed" />
mwenzda273bc2011-02-02 09:31:53 +000086
mwenz8ed9ab62011-07-05 13:03:26 +000087 <echo message="Add update site stuff and user-readable description to site.packed folder (copy from site.p2 folder)" />
88 <copy todir="${root}/last_success/site.packed/" file="${root}/buildroot/buckminster.build/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.p2/artifacts.jar" />
89 <copy todir="${root}/last_success/site.packed/" file="${root}/buildroot/buckminster.build/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.p2/content.jar" />
90 <copy todir="${root}/last_success/site.packed/" file="${root}/buildroot/buckminster.build/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.p2/index.html" />
91 <copy todir="${root}/last_success/site.packed/" file="${root}/buildroot/buckminster.build/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.p2/index.xml" />
mwenzda273bc2011-02-02 09:31:53 +000092
mwenz636f45d2010-10-07 07:16:28 +000093 <echo message="Copying site.p2.zip to last_success area" />
mwenz25bf2672010-10-06 14:27:22 +000094 <copydir dest="${root}/last_success/site.p2.zip/" src="${root}/buildroot/buckminster.build/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.p2.zip" />
mwenz6fd05ee2012-08-10 12:29:49 +020095 <rename dest="${root}/last_success/site.p2.zip/org.eclipse.graphiti.site_0.10.0.${build_id}.zip"
96 src="${root}/last_success/site.p2.zip/org.eclipse.graphiti.site_0.10.0.qualifier.zip"/>
mwenz8ed9ab62011-07-05 13:03:26 +000097
mwenz25bf2672010-10-06 14:27:22 +000098 </target>
mwenzda273bc2011-02-02 09:31:53 +000099
100 <!-- Sub targets for copy.sites -->
101 <target name="sub.delete.last_success.site.signed" if="site.signed.exists">
mwenze9ec7f12011-02-04 09:00:05 +0000102 <echo message="Deleting old signed update site from last_success area" />
mwenzda273bc2011-02-02 09:31:53 +0000103 <delete dir="${root}/last_success/site.signed/" failonerror="true" />
104 </target>
mwenzda273bc2011-02-02 09:31:53 +0000105 <!-- End sub targets -->
106
107 <!-- This target promotes the last_success folder to the download area for the nightly build. It is triggered via a cron job running each evening -->
mwenz4f0e7b52010-09-24 12:11:11 +0000108 <target name="promote.sites" >
109 <echo message="Deleting old update site from downloads area" />
mwenz2b1b13a2010-10-07 07:52:00 +0000110 <delete dir="/home/data/httpd/download.eclipse.org/graphiti/updates/nightly/" failonerror="true" />
mwenz4f0e7b52010-09-24 12:11:11 +0000111
mwenz056cf4e2011-07-05 08:41:44 +0000112 <echo message="Promoting site.packed" />
113 <copydir dest="/home/data/httpd/download.eclipse.org/graphiti/updates/nightly/" src="/opt/public/jobs/gmp-graphiti-nightly/workspace/last_success/site.packed" />
mwenz4f0e7b52010-09-24 12:11:11 +0000114
115 <echo message="Deleting old ZIP archive from downloads area" />
mwenzcd7385d2011-07-06 14:39:48 +0000116 <delete dir="/home/data/httpd/download.eclipse.org/graphiti/archives/nightly/zips/" failonerror="true" />
mwenz4f0e7b52010-09-24 12:11:11 +0000117
118 <echo message="Promoting site.p2.zip" />
mwenzcd7385d2011-07-06 14:39:48 +0000119 <copydir dest="/home/data/httpd/download.eclipse.org/graphiti/archives/nightly/zips/" src="/opt/public/jobs/gmp-graphiti-nightly/workspace/last_success/site.p2.zip" />
mwenz4f0e7b52010-09-24 12:11:11 +0000120 </target>
121
mwenzae0eceb2010-07-30 12:25:50 +0000122</project>