blob: 19d0cbe3b5729180475cf57c32ae8ef75c2a879d [file] [log] [blame]
<?xml version="1.0"?>
<project name="project">
<target name="create.javadoc" description="Generate the JavaDoc for the sources">
<echo message="Generate the JavaDoc for the sources"></echo>
<echo message="javadoc source ${root}/buildroot/buckminster.workspace" />
<!-- set targetPlatformPath as classpath -->
<path id="files-classpath">
<fileset dir="${root}/buildroot/target.platform">
<include name="*.jar"/>
</fileset>
</path>
<!-- clean and create output location -->
<delete dir="${root}/buildroot/buckminster.workspace/../../org.eclipse.gmp/org.eclipse.gmp.graphiti/examples/org.eclipse.graphiti.doc/javadoc"/>
<mkdir dir="${root}/buildroot/buckminster.workspace/../../org.eclipse.gmp/org.eclipse.gmp.graphiti/examples/org.eclipse.graphiti.doc/javadoc"/>
<!-- generate the javadoc -->
<javadoc destdir="${root}/buildroot/buckminster.workspace/../../org.eclipse.gmp/org.eclipse.gmp.graphiti/examples/org.eclipse.graphiti.doc/javadoc"
classpathref="files-classpath"
author="true"
version="true"
nodeprecated="false"
nodeprecatedlist="false"
access="private"
maxmemory="1024m"
useexternalfile="true"
sourcepath="src"
verbose="true"
use="true"
noindex="false"
nonavbar="false"
notree="false"
splitindex="true"
windowtitle="Graphiti Documentation">
<!-- link external APIs -->
<link href="http://download.oracle.com/javase/6/docs/api/"/>
<link href="http://download.eclipse.org/modeling/emf/emf/javadoc/2.6.0/"/>
<link href="http://download.eclipse.org/modeling/emf/transaction/javadoc/workspace/1.4.0/"/>
<!-- Graphiti sources -->
<fileset dir="${root}/org.eclipse.gmp/org.eclipse.gmp.graphiti/plugins/" defaultexcludes="true">
<include name="**/*.java"/>
<exclude name="**/internal/**"/>
<exclude name="**/tests/**"/>
<exclude name="**/examples/**"/>
<exclude name="**/testtool/**"/>
</fileset>
<bottom><![CDATA[ <a href="http://www.eclipse.org/legal/epl-v10.html" shape="rect">Copyright (c) SAP AG 2005, 2010.</a>]]></bottom>
</javadoc>
</target>
<target name="create.site.index">
<echo message="Creating human readable index.html" />
<unzip src="${root}/buildroot/buckminster.build/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.p2/content.jar"
dest="${root}/buildroot/buckminster.build/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.p2" />
<xslt style="xsl/content2html.xsl"
in="${root}/buildroot/buckminster.build/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.p2/content.xml"
out="${root}/buildroot/buckminster.build/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.p2/index.html" />
<xslt style="xsl/content2xml.xsl"
in="${root}/buildroot/buckminster.build/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.p2/content.xml"
out="${root}/buildroot/buckminster.build/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.p2/index.xml" />
<delete file="${root}/buildroot/buckminster.build/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.p2/content.xml" />
</target>
<target name="promote.sites" >
<echo message="Deleting old update site from downloads area" />
<delete dir="${download.area}/updates/0.7.3/" failonerror="true" />
<echo message="Promoting site.p2" />
<copydir dest="${download.area}/updates/0.7.3/" src="${root}/buildroot/buckminster.build/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.p2" />
<echo message="Deleting old ZIP archive from downloads area" />
<delete dir="${download.area}/archives/0.7.3/" failonerror="true" />
<echo message="Promoting site.p2.zip" />
<copydir dest="${download.area}/archives/0.7.3/" src="${root}/buildroot/buckminster.build/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.p2.zip" />
</target>
</project>