mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 1 | <?xml version="1.0"?> |
| 2 | <project name="project"> |
mwenz | 4f0e7b5 | 2010-09-24 12:11:11 +0000 | [diff] [blame] | 3 | |
| 4 | <target name="create.javadoc" description="Generate the JavaDoc for the sources"> |
mwenz | f19951c | 2012-05-30 16:35:35 +0200 | [diff] [blame] | 5 | <echo message="Generate the JavaDoc for the Graphiti sources"></echo> |
| 6 | <echo message="Buckminster workspace is ${root}/buildroot/buckminster.workspace" /> |
mwenz | 4f0e7b5 | 2010-09-24 12:11:11 +0000 | [diff] [blame] | 7 | |
| 8 | <!-- set targetPlatformPath as classpath --> |
| 9 | <path id="files-classpath"> |
mwenz | 48d481e | 2010-09-27 11:13:19 +0000 | [diff] [blame] | 10 | <fileset dir="${root}/buildroot/target.platform"> |
mwenz | 4f0e7b5 | 2010-09-24 12:11:11 +0000 | [diff] [blame] | 11 | <include name="*.jar"/> |
| 12 | </fileset> |
| 13 | </path> |
mwenz | f19951c | 2012-05-30 16:35:35 +0200 | [diff] [blame] | 14 | <echo message="Set files-classpath to: ${root}/buildroot/target.platform" /> |
mwenz | 4f0e7b5 | 2010-09-24 12:11:11 +0000 | [diff] [blame] | 15 | |
| 16 | <!-- clean and create output location --> |
mwenz | d139c63 | 2011-07-28 09:32:40 +0200 | [diff] [blame] | 17 | <delete dir="${root}/buildroot/buckminster.workspace/../../org.eclipse.gmp/org.eclipse.gmp.graphiti/examples/org.eclipse.graphiti.doc/javadoc"/> |
mwenz | f19951c | 2012-05-30 16:35:35 +0200 | [diff] [blame] | 18 | <echo message="Deleted old folder: ${root}/buildroot/buckminster.workspace/../../org.eclipse.gmp/org.eclipse.gmp.graphiti/examples/org.eclipse.graphiti.doc/javadoc" /> |
mwenz | d139c63 | 2011-07-28 09:32:40 +0200 | [diff] [blame] | 19 | <mkdir dir="${root}/buildroot/buckminster.workspace/../../org.eclipse.gmp/org.eclipse.gmp.graphiti/examples/org.eclipse.graphiti.doc/javadoc"/> |
mwenz | f19951c | 2012-05-30 16:35:35 +0200 | [diff] [blame] | 20 | <echo message="Created folder: ${root}/buildroot/buckminster.workspace/../../org.eclipse.gmp/org.eclipse.gmp.graphiti/examples/org.eclipse.graphiti.doc/javadoc" /> |
mwenz | 4f0e7b5 | 2010-09-24 12:11:11 +0000 | [diff] [blame] | 21 | |
| 22 | <!-- generate the javadoc --> |
mwenz | d139c63 | 2011-07-28 09:32:40 +0200 | [diff] [blame] | 23 | <javadoc destdir="${root}/buildroot/buckminster.workspace/../../org.eclipse.gmp/org.eclipse.gmp.graphiti/examples/org.eclipse.graphiti.doc/javadoc" |
mwenz | 4f0e7b5 | 2010-09-24 12:11:11 +0000 | [diff] [blame] | 24 | 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 | |
mwenz | 7febe2a | 2011-05-11 08:38:50 +0000 | [diff] [blame] | 41 | <arg value="-J-Dhttp.proxyHost=proxy.eclipse.org"/> |
| 42 | <arg value="-J-Dhttp.proxyPort=9898"/> |
| 43 | |
mwenz | 4f0e7b5 | 2010-09-24 12:11:11 +0000 | [diff] [blame] | 44 | <!-- link external APIs --> |
mwenz | f19951c | 2012-05-30 16:35:35 +0200 | [diff] [blame] | 45 | <link href="http://docs.oracle.com/javase/5/docs/api/"/> |
mwenz | 4f0e7b5 | 2010-09-24 12:11:11 +0000 | [diff] [blame] | 46 | <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 --> |
mwenz | d139c63 | 2011-07-28 09:32:40 +0200 | [diff] [blame] | 50 | <fileset dir="${root}/org.eclipse.gmp/org.eclipse.gmp.graphiti/plugins/" defaultexcludes="true"> |
mwenz | 4f0e7b5 | 2010-09-24 12:11:11 +0000 | [diff] [blame] | 51 | <include name="**/*.java"/> |
| 52 | <exclude name="**/internal/**"/> |
| 53 | <exclude name="**/tests/**"/> |
| 54 | <exclude name="**/examples/**"/> |
mwenz | 8d5a50e | 2012-05-30 15:47:32 +0200 | [diff] [blame] | 55 | <exclude name="**/testtool/**"/> |
mwenz | f19951c | 2012-05-30 16:35:35 +0200 | [diff] [blame] | 56 | <exclude name="**/templates_3.4/**"/> |
mwenz | 4f0e7b5 | 2010-09-24 12:11:11 +0000 | [diff] [blame] | 57 | </fileset> |
mwenz | 5875663 | 2012-05-30 15:24:13 +0200 | [diff] [blame] | 58 | <bottom><![CDATA[ <a href="http://www.eclipse.org/legal/epl-v10.html" shape="rect">Copyright (c) SAP AG 2005, 2012.</a>]]></bottom> |
mwenz | 4f0e7b5 | 2010-09-24 12:11:11 +0000 | [diff] [blame] | 59 | </javadoc> |
mwenz | f19951c | 2012-05-30 16:35:35 +0200 | [diff] [blame] | 60 | <echo message="Generated JavaDoc" /> |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 61 | </target> |
mwenz | 4f0e7b5 | 2010-09-24 12:11:11 +0000 | [diff] [blame] | 62 | |
| 63 | <target name="create.site.index"> |
| 64 | <echo message="Creating human readable index.html" /> |
mwenz | 48d481e | 2010-09-27 11:13:19 +0000 | [diff] [blame] | 65 | <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" /> |
mwenz | 4f0e7b5 | 2010-09-24 12:11:11 +0000 | [diff] [blame] | 67 | <xslt style="xsl/content2html.xsl" |
mwenz | 48d481e | 2010-09-27 11:13:19 +0000 | [diff] [blame] | 68 | 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" /> |
mwenz | 4f0e7b5 | 2010-09-24 12:11:11 +0000 | [diff] [blame] | 70 | <xslt style="xsl/content2xml.xsl" |
mwenz | 48d481e | 2010-09-27 11:13:19 +0000 | [diff] [blame] | 71 | 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" /> |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 74 | </target> |
mwenz | 4f0e7b5 | 2010-09-24 12:11:11 +0000 | [diff] [blame] | 75 | |
mwenz | 25bf267 | 2010-10-06 14:27:22 +0000 | [diff] [blame] | 76 | <target name="copy.sites" > |
mwenz | 25bf267 | 2010-10-06 14:27:22 +0000 | [diff] [blame] | 77 | |
mwenz | 056cf4e | 2011-07-05 08:41:44 +0000 | [diff] [blame] | 78 | <echo message="Deleting old packed update site from last_success area" /> |
| 79 | <delete dir="${root}/last_success/site.packed/" failonerror="true" /> |
| 80 | |
mwenz | 636f45d | 2010-10-07 07:16:28 +0000 | [diff] [blame] | 81 | <echo message="Deleting old ZIP archive from last_success area" /> |
mwenz | 25bf267 | 2010-10-06 14:27:22 +0000 | [diff] [blame] | 82 | <delete dir="${root}/last_success/site.p2.zip/" failonerror="true" /> |
mwenz | da273bc | 2011-02-02 09:31:53 +0000 | [diff] [blame] | 83 | |
mwenz | 056cf4e | 2011-07-05 08:41:44 +0000 | [diff] [blame] | 84 | <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" /> |
mwenz | da273bc | 2011-02-02 09:31:53 +0000 | [diff] [blame] | 86 | |
mwenz | 8ed9ab6 | 2011-07-05 13:03:26 +0000 | [diff] [blame] | 87 | <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" /> |
mwenz | da273bc | 2011-02-02 09:31:53 +0000 | [diff] [blame] | 92 | |
mwenz | 636f45d | 2010-10-07 07:16:28 +0000 | [diff] [blame] | 93 | <echo message="Copying site.p2.zip to last_success area" /> |
mwenz | 25bf267 | 2010-10-06 14:27:22 +0000 | [diff] [blame] | 94 | <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" /> |
mwenz | 6fd05ee | 2012-08-10 12:29:49 +0200 | [diff] [blame] | 95 | <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"/> |
mwenz | 8ed9ab6 | 2011-07-05 13:03:26 +0000 | [diff] [blame] | 97 | |
mwenz | 25bf267 | 2010-10-06 14:27:22 +0000 | [diff] [blame] | 98 | </target> |
mwenz | da273bc | 2011-02-02 09:31:53 +0000 | [diff] [blame] | 99 | |
| 100 | <!-- Sub targets for copy.sites --> |
| 101 | <target name="sub.delete.last_success.site.signed" if="site.signed.exists"> |
mwenz | e9ec7f1 | 2011-02-04 09:00:05 +0000 | [diff] [blame] | 102 | <echo message="Deleting old signed update site from last_success area" /> |
mwenz | da273bc | 2011-02-02 09:31:53 +0000 | [diff] [blame] | 103 | <delete dir="${root}/last_success/site.signed/" failonerror="true" /> |
| 104 | </target> |
mwenz | da273bc | 2011-02-02 09:31:53 +0000 | [diff] [blame] | 105 | <!-- 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 --> |
mwenz | 4f0e7b5 | 2010-09-24 12:11:11 +0000 | [diff] [blame] | 108 | <target name="promote.sites" > |
| 109 | <echo message="Deleting old update site from downloads area" /> |
mwenz | 2b1b13a | 2010-10-07 07:52:00 +0000 | [diff] [blame] | 110 | <delete dir="/home/data/httpd/download.eclipse.org/graphiti/updates/nightly/" failonerror="true" /> |
mwenz | 4f0e7b5 | 2010-09-24 12:11:11 +0000 | [diff] [blame] | 111 | |
mwenz | 056cf4e | 2011-07-05 08:41:44 +0000 | [diff] [blame] | 112 | <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" /> |
mwenz | 4f0e7b5 | 2010-09-24 12:11:11 +0000 | [diff] [blame] | 114 | |
| 115 | <echo message="Deleting old ZIP archive from downloads area" /> |
mwenz | cd7385d | 2011-07-06 14:39:48 +0000 | [diff] [blame] | 116 | <delete dir="/home/data/httpd/download.eclipse.org/graphiti/archives/nightly/zips/" failonerror="true" /> |
mwenz | 4f0e7b5 | 2010-09-24 12:11:11 +0000 | [diff] [blame] | 117 | |
| 118 | <echo message="Promoting site.p2.zip" /> |
mwenz | cd7385d | 2011-07-06 14:39:48 +0000 | [diff] [blame] | 119 | <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" /> |
mwenz | 4f0e7b5 | 2010-09-24 12:11:11 +0000 | [diff] [blame] | 120 | </target> |
| 121 | |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 122 | </project> |