blob: 3039ff356798230bf147d082d30f96c8ae0c0009 [file] [log] [blame]
lmandelfe13d292005-07-11 19:53:21 +00001<?xml version="1.0" encoding="UTF-8"?>
2<project name="org.eclipse.wst.doc.isv" default="build.jars" basedir=".">
3
lmandelcc3ffbf2006-02-28 06:11:24 +00004 <target name="init">
5 <property name="plugin" value="org.eclipse.wst.doc.isv"/>
lmandel8b44e122006-05-01 19:30:10 +00006 <property name="version.suffix" value="1.0.201"/>
lmandelcc3ffbf2006-02-28 06:11:24 +00007 <property name="full.name" value="${plugin}_${version.suffix}"/>
lmandelfe13d292005-07-11 19:53:21 +00008 <property name="temp.folder" value="${basedir}/temp.folder"/>
9 <property name="plugin.destination" value="${basedir}"/>
lmandelcc3ffbf2006-02-28 06:11:24 +000010 <property name="build.result.folder" value="${basedir}"/>
lmandelfe13d292005-07-11 19:53:21 +000011 </target>
12
13 <target name="build.update.jar" depends="init" description="Build the plug-in: org.eclipse.wst.doc.isv for an update site.">
14 <delete dir="${temp.folder}"/>
15 <mkdir dir="${temp.folder}"/>
16 <antcall target="build.jars"/>
17 <antcall target="gather.bin.parts">
18 <param name="destination.temp.folder" value="${temp.folder}/"/>
19 </antcall>
lmandelcc3ffbf2006-02-28 06:11:24 +000020 <zip zipfile="${plugin.destination}/${full.name}.jar" basedir="${temp.folder}/${full.name}" filesonly="false"/>
lmandelfe13d292005-07-11 19:53:21 +000021 <delete dir="${temp.folder}"/>
22 </target>
23
24 <target name="build.jars" depends="init" description="Build all the jars for the plug-in: org.eclipse.wst.doc.isv.">
lmandelfe13d292005-07-11 19:53:21 +000025 </target>
26
27 <target name="build.sources" depends="init">
28 </target>
29
30 <target name="gather.bin.parts" depends="init" if="destination.temp.folder">
lmandelcc3ffbf2006-02-28 06:11:24 +000031 <ant antfile="javadoc.xml" dir="${basedir}"/>
32 <ant antfile="buildExtDocs.xml" dir="${basedir}"/>
33 <mkdir dir="${destination.temp.folder}/${full.name}"/>
34 <copy todir="${destination.temp.folder}/${full.name}">
lmandel020e85e2005-12-07 06:39:18 +000035 <fileset dir="${basedir}" includes="plugin.xml,plugin.properties,about.html,toc.xml,toc_WST.xml,topics_Reference.xml,META-INF/,html/,reference/,book.css,notices.html,topics_ExtPoint_Reference.xml,schema.css,javadoctoc.xml"/>
lmandelfe13d292005-07-11 19:53:21 +000036 </copy>
lmandelcc3ffbf2006-02-28 06:11:24 +000037 <eclipse.versionReplacer path="${destination.temp.folder}/${full.name}" version="${version.suffix}"/>
lmandelfe13d292005-07-11 19:53:21 +000038 </target>
39
40 <target name="build.zips" depends="init">
41 </target>
42
43 <target name="gather.sources" depends="init" if="destination.temp.folder">
lmandelfe13d292005-07-11 19:53:21 +000044 </target>
45
46 <target name="gather.logs" depends="init" if="destination.temp.folder">
47 </target>
48
49 <target name="clean" depends="init" description="Clean the plug-in: org.eclipse.wst.doc.isv of all the zips, jars and logs created.">
lmandelcc3ffbf2006-02-28 06:11:24 +000050 <delete file="${plugin.destination}/${full.name}.jar"/>
51 <delete file="${plugin.destination}/${full.name}.zip"/>
lmandelfe13d292005-07-11 19:53:21 +000052 <delete dir="${temp.folder}"/>
53 </target>
54
55 <target name="refresh" depends="init" if="eclipse.running" description="Refresh this folder.">
lmandelcc3ffbf2006-02-28 06:11:24 +000056 <eclipse.refreshLocal resource="${plugin}" depth="infinite"/>
lmandelfe13d292005-07-11 19:53:21 +000057 </target>
58
59 <target name="zip.plugin" depends="init" description="Create a zip containing all the elements for the plug-in: org.eclipse.wst.doc.isv.">
60 <delete dir="${temp.folder}"/>
61 <mkdir dir="${temp.folder}"/>
62 <antcall target="build.jars"/>
63 <antcall target="build.sources"/>
64 <antcall target="gather.bin.parts">
65 <param name="destination.temp.folder" value="${temp.folder}/"/>
66 </antcall>
67 <antcall target="gather.sources">
68 <param name="destination.temp.folder" value="${temp.folder}/"/>
69 </antcall>
70 <delete>
71 <fileset dir="${temp.folder}" includes="**/*.bin.log" />
72 </delete>
lmandelcc3ffbf2006-02-28 06:11:24 +000073 <zip zipfile="${plugin.destination}/${full.name}.zip" basedir="${temp.folder}" filesonly="true"/>
lmandelfe13d292005-07-11 19:53:21 +000074 <delete dir="${temp.folder}"/>
75 </target>
76
77</project>