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 | |
| 68 | <target name="promote.sites" > |
| 69 | <echo message="Deleting old update site from downloads area" /> |
mwenz | 48d481e | 2010-09-27 11:13:19 +0000 | [diff] [blame] | 70 | <delete dir="${download.area}/updates/nightly/" failonerror="true" /> |
mwenz | 4f0e7b5 | 2010-09-24 12:11:11 +0000 | [diff] [blame] | 71 | |
| 72 | <echo message="Promoting site.p2" /> |
mwenz | 48d481e | 2010-09-27 11:13:19 +0000 | [diff] [blame] | 73 | <copydir dest="${download.area}/updates/nightly/" src="${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] | 74 | |
| 75 | <echo message="Deleting old ZIP archive from downloads area" /> |
mwenz | 48d481e | 2010-09-27 11:13:19 +0000 | [diff] [blame] | 76 | <delete dir="${download.area}/archives/nightly/" failonerror="true" /> |
mwenz | 4f0e7b5 | 2010-09-24 12:11:11 +0000 | [diff] [blame] | 77 | |
| 78 | <echo message="Promoting site.p2.zip" /> |
mwenz | 48d481e | 2010-09-27 11:13:19 +0000 | [diff] [blame] | 79 | <copydir dest="${download.area}/archives/nightly/" src="${root}/buildroot/buckminster.build/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.p2.zip" /> |
mwenz | 4f0e7b5 | 2010-09-24 12:11:11 +0000 | [diff] [blame] | 80 | </target> |
| 81 | |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 82 | </project> |