blob: 1884cfb4425b17214fcbfbb2df950f30910d7d0d [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">
5 <echo message="Generate the JavaDoc for the sources"></echo>
mwenz48d481e2010-09-27 11:13:19 +00006 <echo message="javadoc source ${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>
14
15 <!-- clean and create output location -->
mwenz48d481e2010-09-27 11:13:19 +000016 <delete dir="${root}/buildroot/buckminster.workspace/plugins/org.eclipse.graphiti.doc/javadoc"/>
17 <mkdir dir="${root}/buildroot/buckminster.workspace/plugins/org.eclipse.graphiti.doc/javadoc"/>
mwenz4f0e7b52010-09-24 12:11:11 +000018
19 <!-- generate the javadoc -->
mwenz48d481e2010-09-27 11:13:19 +000020 <javadoc destdir="${root}/buildroot/buckminster.workspace/plugins/org.eclipse.graphiti.doc/javadoc"
mwenz4f0e7b52010-09-24 12:11:11 +000021 classpathref="files-classpath"
22 author="true"
23 version="true"
24 nodeprecated="false"
25 nodeprecatedlist="false"
26 access="private"
27 maxmemory="1024m"
28 useexternalfile="true"
29 sourcepath="src"
30 verbose="true"
31 use="true"
32 noindex="false"
33 nonavbar="false"
34 notree="false"
35 splitindex="true"
36 windowtitle="Graphiti Documentation">
37
38 <!-- link external APIs -->
39 <link href="http://download.oracle.com/javase/6/docs/api/"/>
40 <link href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.6.0/"/>
41 <link href="http://download.eclipse.org/modeling/emf/transaction/javadoc/workspace/1.4.0/"/>
42
43 <!-- Graphiti sources -->
mwenz48d481e2010-09-27 11:13:19 +000044 <fileset dir="${root}/buildroot/buckminster.workspace/plugins/" defaultexcludes="true">
mwenz4f0e7b52010-09-24 12:11:11 +000045 <include name="**/*.java"/>
46 <exclude name="**/internal/**"/>
47 <exclude name="**/tests/**"/>
48 <exclude name="**/examples/**"/>
49 <exclude name="**/testtool/**"/>
50 </fileset>
51 <bottom><![CDATA[ <a href="http://www.eclipse.org/legal/epl-v10.html" shape="rect">Copyright (c) SAP AG 2005, 2010.</a>]]></bottom>
52 </javadoc>
mwenzae0eceb2010-07-30 12:25:50 +000053 </target>
mwenz4f0e7b52010-09-24 12:11:11 +000054
55 <target name="create.site.index">
56 <echo message="Creating human readable index.html" />
mwenz48d481e2010-09-27 11:13:19 +000057 <unzip src="${root}/buildroot/buckminster.build/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.p2/content.jar"
58 dest="${root}/buildroot/buckminster.build/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.p2" />
mwenz4f0e7b52010-09-24 12:11:11 +000059 <xslt style="xsl/content2html.xsl"
mwenz48d481e2010-09-27 11:13:19 +000060 in="${root}/buildroot/buckminster.build/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.p2/content.xml"
61 out="${root}/buildroot/buckminster.build/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.p2/index.html" />
mwenz4f0e7b52010-09-24 12:11:11 +000062 <xslt style="xsl/content2xml.xsl"
mwenz48d481e2010-09-27 11:13:19 +000063 in="${root}/buildroot/buckminster.build/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.p2/content.xml"
64 out="${root}/buildroot/buckminster.build/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.p2/index.xml" />
65 <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 +000066 </target>
mwenz4f0e7b52010-09-24 12:11:11 +000067
mwenz25bf2672010-10-06 14:27:22 +000068 <target name="copy.sites" >
mwenz636f45d2010-10-07 07:16:28 +000069 <echo message="Deleting old update site from last_success area" />
mwenz25bf2672010-10-06 14:27:22 +000070 <delete dir="${root}/last_success/site.p2/" failonerror="true" />
71
mwenz636f45d2010-10-07 07:16:28 +000072 <echo message="Deleting old ZIP archive from last_success area" />
mwenz25bf2672010-10-06 14:27:22 +000073 <delete dir="${root}/last_success/site.p2.zip/" failonerror="true" />
mwenzda273bc2011-02-02 09:31:53 +000074
mwenzda273bc2011-02-02 09:31:53 +000075 <available file="${root}/last_success/site.signed/" property="site.signed.exists"/>
76 <antcall target="sub.delete.last_success.site.signed"/>
mwenz25bf2672010-10-06 14:27:22 +000077
mwenz636f45d2010-10-07 07:16:28 +000078 <echo message="Copying site.p2 to last_success area" />
mwenz25bf2672010-10-06 14:27:22 +000079 <copydir dest="${root}/last_success/site.p2/" src="${root}/buildroot/buckminster.build/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.p2" />
mwenzda273bc2011-02-02 09:31:53 +000080
mwenzda273bc2011-02-02 09:31:53 +000081 <available file="${root}/buildroot/buckminster.build/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.signed" property="site.signed.created"/>
82 <antcall target="sub.copy.last_success.site.signed"/>
83
mwenz636f45d2010-10-07 07:16:28 +000084 <echo message="Copying site.p2.zip to last_success area" />
mwenz25bf2672010-10-06 14:27:22 +000085 <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" />
86 </target>
mwenzda273bc2011-02-02 09:31:53 +000087
88 <!-- Sub targets for copy.sites -->
89 <target name="sub.delete.last_success.site.signed" if="site.signed.exists">
mwenze9ec7f12011-02-04 09:00:05 +000090 <echo message="Deleting old signed update site from last_success area" />
mwenzda273bc2011-02-02 09:31:53 +000091 <delete dir="${root}/last_success/site.signed/" failonerror="true" />
92 </target>
mwenz25bf2672010-10-06 14:27:22 +000093
mwenzda273bc2011-02-02 09:31:53 +000094 <target name="sub.copy.last_success.site.signed" if="site.signed.created">
mwenze9ec7f12011-02-04 09:00:05 +000095 <echo message="Copying site.signed to last_success area" />
mwenzda273bc2011-02-02 09:31:53 +000096 <copydir dest="${root}/last_success/site.signed/" src="${root}/buildroot/buckminster.build/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.signed" />
97 </target>
98 <!-- End sub targets -->
99
100 <!-- 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 +0000101 <target name="promote.sites" >
102 <echo message="Deleting old update site from downloads area" />
mwenz2b1b13a2010-10-07 07:52:00 +0000103 <delete dir="/home/data/httpd/download.eclipse.org/graphiti/updates/nightly/" failonerror="true" />
mwenz4f0e7b52010-09-24 12:11:11 +0000104
105 <echo message="Promoting site.p2" />
mwenz2b1b13a2010-10-07 07:52:00 +0000106 <copydir dest="/home/data/httpd/download.eclipse.org/graphiti/updates/nightly/" src="/opt/public/jobs/gmp-graphiti-nightly/workspace/last_success/site.p2" />
mwenz4f0e7b52010-09-24 12:11:11 +0000107
108 <echo message="Deleting old ZIP archive from downloads area" />
mwenz2b1b13a2010-10-07 07:52:00 +0000109 <delete dir="/home/data/httpd/download.eclipse.org/graphiti/archives/nightly/" failonerror="true" />
mwenz4f0e7b52010-09-24 12:11:11 +0000110
111 <echo message="Promoting site.p2.zip" />
mwenz2b1b13a2010-10-07 07:52:00 +0000112 <copydir dest="/home/data/httpd/download.eclipse.org/graphiti/archives/nightly/" src="/opt/public/jobs/gmp-graphiti-nightly/workspace/last_success/site.p2.zip" />
mwenz4f0e7b52010-09-24 12:11:11 +0000113 </target>
114
mwenzae0eceb2010-07-30 12:25:50 +0000115</project>