blob: 5dae426876751ed0ddda1b7c39072e5773086219 [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
68 <target name="promote.sites" >
69 <echo message="Deleting old update site from downloads area" />
mwenz48d481e2010-09-27 11:13:19 +000070 <delete dir="${download.area}/updates/nightly/" failonerror="true" />
mwenz4f0e7b52010-09-24 12:11:11 +000071
72 <echo message="Promoting site.p2" />
mwenz48d481e2010-09-27 11:13:19 +000073 <copydir dest="${download.area}/updates/nightly/" src="${root}/buildroot/buckminster.build/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.p2" />
mwenz4f0e7b52010-09-24 12:11:11 +000074
75 <echo message="Deleting old ZIP archive from downloads area" />
mwenz48d481e2010-09-27 11:13:19 +000076 <delete dir="${download.area}/archives/nightly/" failonerror="true" />
mwenz4f0e7b52010-09-24 12:11:11 +000077
78 <echo message="Promoting site.p2.zip" />
mwenz48d481e2010-09-27 11:13:19 +000079 <copydir dest="${download.area}/archives/nightly/" src="${root}/buildroot/buckminster.build/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.p2.zip" />
mwenz4f0e7b52010-09-24 12:11:11 +000080 </target>
81
mwenzae0eceb2010-07-30 12:25:50 +000082</project>