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"> |
| 5 | <echo message="Generate the JavaDoc for the sources"></echo> |
mwenz | 48d481e | 2010-09-27 11:13:19 +0000 | [diff] [blame] | 6 | <echo message="javadoc source ${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> |
| 14 | |
| 15 | <!-- clean and create output location --> |
mwenz | 48d481e | 2010-09-27 11:13:19 +0000 | [diff] [blame] | 16 | <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"/> |
mwenz | 4f0e7b5 | 2010-09-24 12:11:11 +0000 | [diff] [blame] | 18 | |
| 19 | <!-- generate the javadoc --> |
mwenz | 48d481e | 2010-09-27 11:13:19 +0000 | [diff] [blame] | 20 | <javadoc destdir="${root}/buildroot/buckminster.workspace/plugins/org.eclipse.graphiti.doc/javadoc" |
mwenz | 4f0e7b5 | 2010-09-24 12:11:11 +0000 | [diff] [blame] | 21 | 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 --> |
mwenz | 48d481e | 2010-09-27 11:13:19 +0000 | [diff] [blame] | 44 | <fileset dir="${root}/buildroot/buckminster.workspace/plugins/" defaultexcludes="true"> |
mwenz | 4f0e7b5 | 2010-09-24 12:11:11 +0000 | [diff] [blame] | 45 | <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> |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 53 | </target> |
mwenz | 4f0e7b5 | 2010-09-24 12:11:11 +0000 | [diff] [blame] | 54 | |
| 55 | <target name="create.site.index"> |
| 56 | <echo message="Creating human readable index.html" /> |
mwenz | 48d481e | 2010-09-27 11:13:19 +0000 | [diff] [blame] | 57 | <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" /> |
mwenz | 4f0e7b5 | 2010-09-24 12:11:11 +0000 | [diff] [blame] | 59 | <xslt style="xsl/content2html.xsl" |
mwenz | 48d481e | 2010-09-27 11:13:19 +0000 | [diff] [blame] | 60 | 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" /> |
mwenz | 4f0e7b5 | 2010-09-24 12:11:11 +0000 | [diff] [blame] | 62 | <xslt style="xsl/content2xml.xsl" |
mwenz | 48d481e | 2010-09-27 11:13:19 +0000 | [diff] [blame] | 63 | 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" /> |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 66 | </target> |
mwenz | 4f0e7b5 | 2010-09-24 12:11:11 +0000 | [diff] [blame] | 67 | |
mwenz | 25bf267 | 2010-10-06 14:27:22 +0000 | [diff] [blame] | 68 | <target name="copy.sites" > |
mwenz | 636f45d | 2010-10-07 07:16:28 +0000 | [diff] [blame] | 69 | <echo message="Deleting old update site from last_success area" /> |
mwenz | 25bf267 | 2010-10-06 14:27:22 +0000 | [diff] [blame] | 70 | <delete dir="${root}/last_success/site.p2/" failonerror="true" /> |
| 71 | |
mwenz | 636f45d | 2010-10-07 07:16:28 +0000 | [diff] [blame] | 72 | <echo message="Deleting old ZIP archive from last_success area" /> |
mwenz | 25bf267 | 2010-10-06 14:27:22 +0000 | [diff] [blame] | 73 | <delete dir="${root}/last_success/site.p2.zip/" failonerror="true" /> |
mwenz | da273bc | 2011-02-02 09:31:53 +0000 | [diff] [blame] | 74 | |
mwenz | da273bc | 2011-02-02 09:31:53 +0000 | [diff] [blame] | 75 | <available file="${root}/last_success/site.signed/" property="site.signed.exists"/> |
| 76 | <antcall target="sub.delete.last_success.site.signed"/> |
mwenz | 25bf267 | 2010-10-06 14:27:22 +0000 | [diff] [blame] | 77 | |
mwenz | 636f45d | 2010-10-07 07:16:28 +0000 | [diff] [blame] | 78 | <echo message="Copying site.p2 to last_success area" /> |
mwenz | 25bf267 | 2010-10-06 14:27:22 +0000 | [diff] [blame] | 79 | <copydir dest="${root}/last_success/site.p2/" src="${root}/buildroot/buckminster.build/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.p2" /> |
mwenz | da273bc | 2011-02-02 09:31:53 +0000 | [diff] [blame] | 80 | |
mwenz | da273bc | 2011-02-02 09:31:53 +0000 | [diff] [blame] | 81 | <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 | |
mwenz | 636f45d | 2010-10-07 07:16:28 +0000 | [diff] [blame] | 84 | <echo message="Copying site.p2.zip to last_success area" /> |
mwenz | 25bf267 | 2010-10-06 14:27:22 +0000 | [diff] [blame] | 85 | <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> |
mwenz | da273bc | 2011-02-02 09:31:53 +0000 | [diff] [blame] | 87 | |
| 88 | <!-- Sub targets for copy.sites --> |
| 89 | <target name="sub.delete.last_success.site.signed" if="site.signed.exists"> |
mwenz | e9ec7f1 | 2011-02-04 09:00:05 +0000 | [diff] [blame] | 90 | <echo message="Deleting old signed update site from last_success area" /> |
mwenz | da273bc | 2011-02-02 09:31:53 +0000 | [diff] [blame] | 91 | <delete dir="${root}/last_success/site.signed/" failonerror="true" /> |
| 92 | </target> |
mwenz | 25bf267 | 2010-10-06 14:27:22 +0000 | [diff] [blame] | 93 | |
mwenz | da273bc | 2011-02-02 09:31:53 +0000 | [diff] [blame] | 94 | <target name="sub.copy.last_success.site.signed" if="site.signed.created"> |
mwenz | e9ec7f1 | 2011-02-04 09:00:05 +0000 | [diff] [blame] | 95 | <echo message="Copying site.signed to last_success area" /> |
mwenz | da273bc | 2011-02-02 09:31:53 +0000 | [diff] [blame] | 96 | <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 --> |
mwenz | 4f0e7b5 | 2010-09-24 12:11:11 +0000 | [diff] [blame] | 101 | <target name="promote.sites" > |
| 102 | <echo message="Deleting old update site from downloads area" /> |
mwenz | 2b1b13a | 2010-10-07 07:52:00 +0000 | [diff] [blame] | 103 | <delete dir="/home/data/httpd/download.eclipse.org/graphiti/updates/nightly/" failonerror="true" /> |
mwenz | 4f0e7b5 | 2010-09-24 12:11:11 +0000 | [diff] [blame] | 104 | |
| 105 | <echo message="Promoting site.p2" /> |
mwenz | 2b1b13a | 2010-10-07 07:52:00 +0000 | [diff] [blame] | 106 | <copydir dest="/home/data/httpd/download.eclipse.org/graphiti/updates/nightly/" src="/opt/public/jobs/gmp-graphiti-nightly/workspace/last_success/site.p2" /> |
mwenz | 4f0e7b5 | 2010-09-24 12:11:11 +0000 | [diff] [blame] | 107 | |
| 108 | <echo message="Deleting old ZIP archive from downloads area" /> |
mwenz | 2b1b13a | 2010-10-07 07:52:00 +0000 | [diff] [blame] | 109 | <delete dir="/home/data/httpd/download.eclipse.org/graphiti/archives/nightly/" failonerror="true" /> |
mwenz | 4f0e7b5 | 2010-09-24 12:11:11 +0000 | [diff] [blame] | 110 | |
| 111 | <echo message="Promoting site.p2.zip" /> |
mwenz | 2b1b13a | 2010-10-07 07:52:00 +0000 | [diff] [blame] | 112 | <copydir dest="/home/data/httpd/download.eclipse.org/graphiti/archives/nightly/" src="/opt/public/jobs/gmp-graphiti-nightly/workspace/last_success/site.p2.zip" /> |
mwenz | 4f0e7b5 | 2010-09-24 12:11:11 +0000 | [diff] [blame] | 113 | </target> |
| 114 | |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 115 | </project> |