blob: a73404eb8f5eecf8901c7e87a57555f3ec702709 [file] [log] [blame]
lmandel3a4ece92005-07-11 20:05:31 +00001<?xml version="1.0" encoding="UTF-8"?>
david_williams940d2772007-07-01 06:33:40 +00002<project
3 name="org.eclipse.jst.doc.isv"
4 default="build.jars"
5 basedir=".">
lmandel3a4ece92005-07-11 20:05:31 +00006
david_williams940d2772007-07-01 06:33:40 +00007 <target name="init">
8 <property
9 name="plugin"
10 value="org.eclipse.jst.doc.isv" />
11 <property
12 name="version.suffix"
13 value="1.0.201" />
14 <property
15 name="full.name"
16 value="${plugin}_${version.suffix}" />
17 <property
18 name="temp.folder"
19 value="${basedir}/temp.folder" />
20 <property
21 name="plugin.destination"
22 value="${basedir}" />
23 <property
24 name="build.result.folder"
25 value="${basedir}" />
26 </target>
lmandel3a4ece92005-07-11 20:05:31 +000027
david_williams940d2772007-07-01 06:33:40 +000028 <target
29 name="build.update.jar"
30 depends="init"
31 description="Build the plug-in: org.eclipse.jst.doc.isv for an update site.">
32 <delete dir="${temp.folder}" />
33 <mkdir dir="${temp.folder}" />
34 <antcall target="build.jars" />
35 <antcall target="gather.bin.parts">
36 <param
37 name="destination.temp.folder"
38 value="${temp.folder}/" />
39 </antcall>
40 <zip
41 zipfile="${plugin.destination}/${full.name}.jar"
42 basedir="${temp.folder}/${full.name}"
43 filesonly="false" />
44 <delete dir="${temp.folder}" />
45 </target>
lmandel3a4ece92005-07-11 20:05:31 +000046
david_williams940d2772007-07-01 06:33:40 +000047 <target
48 name="build.jars"
49 depends="init"
50 description="Build all the jars for the plug-in: org.eclipse.jst.doc.isv.">
51 </target>
lmandel3a4ece92005-07-11 20:05:31 +000052
david_williams940d2772007-07-01 06:33:40 +000053 <target
54 name="build.sources"
55 depends="init">
56 </target>
lmandel3a4ece92005-07-11 20:05:31 +000057
david_williams940d2772007-07-01 06:33:40 +000058 <target
59 name="gather.bin.parts"
60 depends="init"
61 if="destination.temp.folder">
62 <ant
63 antfile="javadoc.xml"
64 dir="${basedir}" />
65 <ant
66 antfile="buildExtDocs.xml"
67 dir="${basedir}" />
68 <mkdir dir="${destination.temp.folder}/${full.name}" />
69 <copy todir="${destination.temp.folder}/${full.name}">
70 <fileset
71 dir="${basedir}"
72 includes="plugin.xml,plugin.properties,about.html,toc.xml,toc_JST.xml,topics_Reference.xml,META-INF/,reference/,book.css,html/,notices.html,topics_ExtPoint_Reference.xml,javadoctoc.xml,schema.css" />
73 </copy>
74 <eclipse.versionReplacer
75 path="${destination.temp.folder}/${full.name}"
76 version="${version.suffix}" />
77 </target>
lmandel3a4ece92005-07-11 20:05:31 +000078
david_williams940d2772007-07-01 06:33:40 +000079 <target
80 name="build.zips"
81 depends="init">
82 </target>
lmandel3a4ece92005-07-11 20:05:31 +000083
david_williams940d2772007-07-01 06:33:40 +000084 <target
85 name="gather.sources"
86 depends="init"
87 if="destination.temp.folder">
88 </target>
lmandel3a4ece92005-07-11 20:05:31 +000089
david_williams940d2772007-07-01 06:33:40 +000090 <target
91 name="gather.logs"
92 depends="init"
93 if="destination.temp.folder">
94 </target>
lmandel3a4ece92005-07-11 20:05:31 +000095
david_williams940d2772007-07-01 06:33:40 +000096 <target
97 name="clean"
98 depends="init"
99 description="Clean the plug-in: org.eclipse.jst.doc.isv of all the zips, jars and logs created.">
100 <delete file="${plugin.destination}/${full.name}.jar" />
101 <delete file="${plugin.destination}/${full.name}.zip" />
102 <delete dir="${temp.folder}" />
103 </target>
lmandel3a4ece92005-07-11 20:05:31 +0000104
david_williams940d2772007-07-01 06:33:40 +0000105 <target
106 name="refresh"
107 depends="init"
108 if="eclipse.running"
109 description="Refresh this folder.">
110 <eclipse.refreshLocal
111 resource="${plugin}"
112 depth="infinite" />
113 </target>
lmandel3a4ece92005-07-11 20:05:31 +0000114
david_williams940d2772007-07-01 06:33:40 +0000115 <target
116 name="zip.plugin"
117 depends="init"
118 description="Create a zip containing all the elements for the plug-in: org.eclipse.jst.doc.isv.">
119 <delete dir="${temp.folder}" />
120 <mkdir dir="${temp.folder}" />
121 <antcall target="build.jars" />
122 <antcall target="build.sources" />
123 <antcall target="gather.bin.parts">
124 <param
125 name="destination.temp.folder"
126 value="${temp.folder}/" />
127 </antcall>
128 <antcall target="gather.sources">
129 <param
130 name="destination.temp.folder"
131 value="${temp.folder}/" />
132 </antcall>
133 <delete>
134 <fileset
135 dir="${temp.folder}"
136 includes="**/*.bin.log" />
137 </delete>
138 <zip
139 zipfile="${plugin.destination}/${full.name}.zip"
140 basedir="${temp.folder}"
141 filesonly="true" />
142 <delete dir="${temp.folder}" />
143 </target>
lmandel3a4ece92005-07-11 20:05:31 +0000144
145</project>