blob: a888997fc94db772bafaa11e46a33905ce4ca5f2 [file]
<?xml version="1.0" encoding="UTF-8"?>
<project name="org.eclipse.platform.doc.user" default="build.jars" basedir=".">
<property name="bootclasspath" value=""/>
<property name="basews" value="${ws}"/>
<property name="baseos" value="${os}"/>
<property name="basearch" value="${arch}"/>
<property name="basenl" value="${nl}"/>
<property name="javacFailOnError" value="false"/>
<property name="javacDebugInfo" value="on"/>
<property name="javacVerbose" value="true"/>
<property name="javacSource" value="1.3"/>
<property name="javacTarget" value="1.1"/>
<target name="init" depends="properties">
<property name="temp.folder" value="${basedir}/temp.folder"/>
<property name="plugin.destination" value="${basedir}"/>
<property name="build.result.folder" value="${basedir}"/>
<available file="${basedir}/doc.zip" property="doc.zip.present"/>
</target>
<target name="properties" if="eclipse.running">
<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
</target>
<target name="build.update.jar" depends="init" description="Build the plug-in: org.eclipse.platform.doc.user for an update site.">
<delete dir="${temp.folder}"/>
<mkdir dir="${temp.folder}"/>
<antcall target="build.jars"/>
<antcall target="gather.bin.parts">
<param name="destination.temp.folder" value="${temp.folder}/"/>
</antcall>
<zip zipfile="${plugin.destination}/org.eclipse.platform.doc.user_3.1.1.jar" basedir="${temp.folder}/org.eclipse.platform.doc.user_3.1.1" filesonly="false" whenempty="skip"/>
<delete dir="${temp.folder}"/>
</target>
<target name="gather.bin.parts" depends="init" if="destination.temp.folder">
<mkdir dir="${destination.temp.folder}/org.eclipse.platform.doc.user_3.1.1"/>
<antcall target="build.doc.zip"/>
<copy todir="${destination.temp.folder}/org.eclipse.platform.doc.user_3.1.1">
<fileset dir="${build.result.folder}" includes="META-INF/,doc.zip,*.properties,*.xml,*.zip,*.html,*.htm,*.png,book.css,index/**" excludes="build.properties,build.xml" />
</copy>
</target>
<target name="build.doc.zip" depends="init" unless="doc.zip.present">
<antcall target="build.index"/>
<zip zipfile="${plugin.destination}/doc.zip"
basedir="${plugin.destination}"
includes="book.css, about.html, notices.html, no_help_exists.htm, concepts/**, gettingStarted/**, images/**, reference/**, tasks/**, tips/**, whatsNew/**"
/>
</target>
<target name="build.jars" depends="init" description="Build all the jars for the plug-in: org.eclipse.platform.doc.user.">
</target>
<target name="build.index" depends="init" description="Builds search index for the plug-in: org.eclipse.platform.doc.user." if="eclipse.running">
<help.buildHelpIndex manifest="plugin.xml" destination="."/>
</target>
<target name="build.sources" depends="init">
</target>
<target name="build.zips" depends="init">
</target>
<target name="gather.sources" depends="init" if="destination.temp.folder">
</target>
<target name="gather.logs" depends="init" if="destination.temp.folder">
</target>
<target name="clean" depends="init" description="Clean the plug-in: org.eclipse.platform.doc.user of all the zips, jars and logs created.">
<delete file="${plugin.destination}/org.eclipse.platform.doc.user_3.1.1.jar"/>
<delete file="${plugin.destination}/org.eclipse.platform.doc.user_3.1.1.zip"/>
<delete dir="${temp.folder}"/>
</target>
<target name="refresh" depends="init" if="eclipse.running" description="Refresh this folder.">
<eclipse.convertPath fileSystemPath="${plugin.destination}/org.eclipse.platform.doc.user/" property="resourcePath"/>
<eclipse.refreshLocal resource="${resourcePath}" depth="infinite"/>
</target>
<target name="zip.plugin" depends="init" description="Create a zip containing all the elements for the plug-in: org.eclipse.platform.doc.user.">
<delete dir="${temp.folder}"/>
<mkdir dir="${temp.folder}"/>
<antcall target="build.jars"/>
<antcall target="build.sources"/>
<antcall target="gather.bin.parts">
<param name="destination.temp.folder" value="${temp.folder}/"/>
</antcall>
<antcall target="gather.sources">
<param name="destination.temp.folder" value="${temp.folder}/"/>
</antcall>
<delete>
<fileset dir="${temp.folder}" includes="**/*.bin.log" />
</delete>
<zip zipfile="${plugin.destination}/org.eclipse.platform.doc.user_3.1.1.zip" basedir="${temp.folder}" filesonly="true" whenempty="skip"/>
<delete dir="${temp.folder}"/>
</target>
</project>