| <?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/plugins/org.eclipse.graphiti.doc/javadoc"/> |
| <mkdir dir="${root}/buildroot/buckminster.workspace/plugins/org.eclipse.graphiti.doc/javadoc"/> |
| |
| <!-- generate the javadoc --> |
| <javadoc destdir="${root}/buildroot/buckminster.workspace/plugins/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}/buildroot/buckminster.workspace/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="copy.sites" > |
| <echo message="Deleting old update site from last_success area" /> |
| <delete dir="${root}/last_success/site.p2/" failonerror="true" /> |
| |
| <echo message="Deleting old ZIP archive from last_success area" /> |
| <delete dir="${root}/last_success/site.p2.zip/" failonerror="true" /> |
| |
| <available file="${root}/last_success/site.signed/" property="site.signed.exists"/> |
| <antcall target="sub.delete.last_success.site.signed"/> |
| |
| <echo message="Copying site.p2 to last_success area" /> |
| <copydir dest="${root}/last_success/site.p2/" src="${root}/buildroot/buckminster.build/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.p2" /> |
| |
| <available file="${root}/buildroot/buckminster.build/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.signed" property="site.signed.created"/> |
| <antcall target="sub.copy.last_success.site.signed"/> |
| |
| <echo message="Copying site.p2.zip to last_success area" /> |
| <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" /> |
| </target> |
| |
| <!-- Sub targets for copy.sites --> |
| <target name="sub.delete.last_success.site.signed" if="site.signed.exists"> |
| <echo message="Deleting old signed update site from last_success area" /> |
| <delete dir="${root}/last_success/site.signed/" failonerror="true" /> |
| </target> |
| |
| <target name="sub.copy.last_success.site.signed" if="site.signed.created"> |
| <echo message="Copying site.signed to last_success area" /> |
| <copydir dest="${root}/last_success/site.signed/" src="${root}/buildroot/buckminster.build/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.signed" /> |
| </target> |
| <!-- End sub targets --> |
| |
| <!-- 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 --> |
| <target name="promote.sites" > |
| <echo message="Deleting old update site from downloads area" /> |
| <delete dir="/home/data/httpd/download.eclipse.org/graphiti/updates/nightly/" failonerror="true" /> |
| |
| <echo message="Promoting site.p2" /> |
| <copydir dest="/home/data/httpd/download.eclipse.org/graphiti/updates/nightly/" src="/opt/public/jobs/gmp-graphiti-nightly/workspace/last_success/site.p2" /> |
| |
| <echo message="Deleting old ZIP archive from downloads area" /> |
| <delete dir="/home/data/httpd/download.eclipse.org/graphiti/archives/nightly/" failonerror="true" /> |
| |
| <echo message="Promoting site.p2.zip" /> |
| <copydir dest="/home/data/httpd/download.eclipse.org/graphiti/archives/nightly/" src="/opt/public/jobs/gmp-graphiti-nightly/workspace/last_success/site.p2.zip" /> |
| </target> |
| |
| </project> |