lmandel | 3a4ece9 | 2005-07-11 20:05:31 +0000 | [diff] [blame^] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <project name="org.eclipse.jst.doc.isv" default="build.jars" basedir="."> |
| 3 | |
| 4 | <property name="bootclasspath" value=""/> |
| 5 | <property name="basews" value="${ws}"/> |
| 6 | <property name="baseos" value="${os}"/> |
| 7 | <property name="basearch" value="${arch}"/> |
| 8 | <property name="basenl" value="${nl}"/> |
| 9 | <property name="javacFailOnError" value="false"/> |
| 10 | <property name="javacDebugInfo" value="on"/> |
| 11 | <property name="javacVerbose" value="true"/> |
| 12 | <property name="javacSource" value="1.3"/> |
| 13 | <property name="javacTarget" value="1.2"/> |
| 14 | <property name="compilerArg" value=""/> |
| 15 | |
| 16 | <target name="init" depends="properties"> |
| 17 | <condition property="pluginTemp" value="${buildTempFolder}/plugins"> |
| 18 | <isset property="buildTempFolder"/> |
| 19 | </condition> |
| 20 | <property name="pluginTemp" value="${basedir}"/> |
| 21 | <condition property="build.result.folder" value="${pluginTemp}/org.eclipse.jst.doc.isv"> |
| 22 | <isset property="buildTempFolder"/> |
| 23 | </condition> |
| 24 | <property name="build.result.folder" value="${basedir}"/> |
| 25 | <property name="temp.folder" value="${basedir}/temp.folder"/> |
| 26 | <property name="plugin.destination" value="${basedir}"/> |
| 27 | </target> |
| 28 | |
| 29 | <target name="properties" if="eclipse.running"> |
| 30 | <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/> |
| 31 | </target> |
| 32 | |
| 33 | <target name="build.update.jar" depends="init" description="Build the plug-in: org.eclipse.jst.doc.isv for an update site."> |
| 34 | <delete dir="${temp.folder}"/> |
| 35 | <mkdir dir="${temp.folder}"/> |
| 36 | <antcall target="build.jars"/> |
| 37 | <antcall target="gather.bin.parts"> |
| 38 | <param name="destination.temp.folder" value="${temp.folder}/"/> |
| 39 | </antcall> |
| 40 | <zip destfile="${plugin.destination}/org.eclipse.jst.doc.isv_0.7.0.jar" basedir="${temp.folder}/org.eclipse.jst.doc.isv_0.7.0" filesonly="false" whenempty="skip" update="false"/> |
| 41 | <delete dir="${temp.folder}"/> |
| 42 | </target> |
| 43 | |
| 44 | <target name="build.jars" depends="init" description="Build all the jars for the plug-in: org.eclipse.jst.doc.isv."> |
| 45 | <ant antfile="javadoc.xml" dir="${basedir}"/> |
| 46 | </target> |
| 47 | |
| 48 | <target name="build.sources" depends="init"> |
| 49 | </target> |
| 50 | |
| 51 | <target name="gather.bin.parts" depends="init" if="destination.temp.folder"> |
| 52 | <mkdir dir="${destination.temp.folder}/org.eclipse.jst.doc.isv_0.7.0"/> |
| 53 | <copy todir="${destination.temp.folder}/org.eclipse.jst.doc.isv_0.7.0" failonerror="true"> |
| 54 | <fileset dir="${basedir}" includes="plugin.xml,plugin.properties,about.html,doc.zip,toc.xml,META-INF/,topics/"/> |
| 55 | </copy> |
| 56 | </target> |
| 57 | |
| 58 | <target name="build.zips" depends="init"> |
| 59 | </target> |
| 60 | |
| 61 | <target name="gather.sources" depends="init" if="destination.temp.folder"> |
| 62 | <mkdir dir="${destination.temp.folder}/org.eclipse.jst.doc.isv_0.7.0"/> |
| 63 | <copy todir="${destination.temp.folder}/org.eclipse.jst.doc.isv_0.7.0" failonerror="false"> |
| 64 | <fileset dir="${basedir}" includes="doc.zip,plugin.xml,toc.xml,META-INF/,topics/"/> |
| 65 | </copy> |
| 66 | </target> |
| 67 | |
| 68 | <target name="gather.logs" depends="init" if="destination.temp.folder"> |
| 69 | </target> |
| 70 | |
| 71 | <target name="clean" depends="init" description="Clean the plug-in: org.eclipse.jst.doc.isv of all the zips, jars and logs created."> |
| 72 | <delete file="${plugin.destination}/org.eclipse.jst.doc.isv_0.7.0.jar"/> |
| 73 | <delete file="${plugin.destination}/org.eclipse.jst.doc.isv_0.7.0.zip"/> |
| 74 | <delete dir="${temp.folder}"/> |
| 75 | </target> |
| 76 | |
| 77 | <target name="refresh" depends="init" if="eclipse.running" description="Refresh this folder."> |
| 78 | <!-- |
| 79 | <eclipse.convertPath fileSystemPath="D:/wtp_v10m3/workspace_releng/org.eclipse.jst.doc.isv" property="resourcePath"/> |
| 80 | --> |
| 81 | <eclipse.refreshLocal resource="${resourcePath}" depth="infinite"/> |
| 82 | </target> |
| 83 | |
| 84 | <target name="zip.plugin" depends="init" description="Create a zip containing all the elements for the plug-in: org.eclipse.jst.doc.isv."> |
| 85 | <delete dir="${temp.folder}"/> |
| 86 | <mkdir dir="${temp.folder}"/> |
| 87 | <antcall target="build.jars"/> |
| 88 | <antcall target="build.sources"/> |
| 89 | <antcall target="gather.bin.parts"> |
| 90 | <param name="destination.temp.folder" value="${temp.folder}/"/> |
| 91 | </antcall> |
| 92 | <antcall target="gather.sources"> |
| 93 | <param name="destination.temp.folder" value="${temp.folder}/"/> |
| 94 | </antcall> |
| 95 | <delete> |
| 96 | <fileset dir="${temp.folder}" includes="**/*.bin.log" /> |
| 97 | </delete> |
| 98 | <zip destfile="${plugin.destination}/org.eclipse.jst.doc.isv_0.7.0.zip" basedir="${temp.folder}" filesonly="true" whenempty="skip" update="false"/> |
| 99 | <delete dir="${temp.folder}"/> |
| 100 | </target> |
| 101 | |
| 102 | </project> |