0
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
|
2 |
<project name="com.nokia.s60tools.imaker.help" default="build.jars" basedir=".">
|
|
3 |
<property file="../common.properties"/>
|
|
4 |
<property name="basews" value="${ws}"/>
|
|
5 |
<property name="baseos" value="${os}"/>
|
|
6 |
<property name="basearch" value="${arch}"/>
|
|
7 |
<property name="basenl" value="${nl}"/>
|
|
8 |
<property name="bundleId" value="com.nokia.s60tools.imaker.help"/>
|
|
9 |
|
|
10 |
<!-- Compiler settings. -->
|
|
11 |
<property name="javacFailOnError" value="true"/>
|
|
12 |
<property name="logExtension" value=".log"/>
|
|
13 |
<property name="compilerArg" value=""/>
|
|
14 |
|
|
15 |
<target name="init" depends="properties">
|
|
16 |
<property name="pluginTemp" value="${basedir}"/>
|
|
17 |
<property name="build.result.folder" value="${basedir}/build.result"/>
|
|
18 |
<property name="temp.folder" value="${basedir}/temp.folder"/>
|
|
19 |
<property name="plugin.destination" value="${basedir}"/>
|
|
20 |
</target>
|
|
21 |
|
|
22 |
<target name="properties" if="eclipse.running">
|
|
23 |
<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
|
|
24 |
|
|
25 |
</target>
|
|
26 |
|
|
27 |
<target name="build.update.jar" depends="init" description="Build the plug-in: com.nokia.s60tools.imaker.doc.user for an update site.">
|
|
28 |
<delete dir="${temp.folder}"/>
|
|
29 |
<mkdir dir="${temp.folder}"/>
|
|
30 |
<antcall target="build.jars"/>
|
|
31 |
<antcall target="gather.bin.parts">
|
|
32 |
<param name="destination.temp.folder" value="${temp.folder}/"/>
|
|
33 |
</antcall>
|
|
34 |
<jar destfile="${plugin.destination}/com.nokia.s60tools.imaker.doc.user_${plugin.version}.jar" basedir="${temp.folder}/com.nokia.s60tools.imaker.doc.user_${plugin.version}" filesetmanifest="merge"/>
|
|
35 |
<copy todir="../${plugin.lib}" file="${plugin.destination}/com.nokia.s60tools.imaker.doc.user_${plugin.version}.jar" failonerror="true" overwrite="true" />
|
|
36 |
<delete dir="${temp.folder}"/>
|
|
37 |
<delete dir="${build.result.folder}"/>
|
|
38 |
</target>
|
|
39 |
|
|
40 |
<target name="@dot" depends="init" unless="@dot" description="Create jar: com.nokia.s60tools.imaker.doc.user @dot.">
|
|
41 |
<delete dir="${temp.folder}/@dot.bin"/>
|
|
42 |
<mkdir dir="${temp.folder}/@dot.bin"/>
|
|
43 |
<path id="@dot.classpath">
|
|
44 |
<fileset dir="${eclipse.home}/plugins">
|
|
45 |
<include name="**/*.jar"/>
|
|
46 |
</fileset>
|
|
47 |
</path>
|
|
48 |
<!-- compile the source code -->
|
|
49 |
<javac destdir="${temp.folder}/@dot.bin" failonerror="${javacFailOnError}" source="${common.javac-source}" target="${common.javac-target}">
|
|
50 |
<classpath refid="@dot.classpath" />
|
|
51 |
<src path="src/" />
|
|
52 |
</javac>
|
|
53 |
<!-- Copy necessary resources -->
|
|
54 |
<copy todir="${temp.folder}/@dot.bin" failonerror="true" overwrite="false">
|
|
55 |
<fileset dir="src/">
|
|
56 |
<exclude name="**/*.java"/>
|
|
57 |
<exclude name="**/package.htm*"/>
|
|
58 |
</fileset>
|
|
59 |
</copy>
|
|
60 |
<mkdir dir="${build.result.folder}"/>
|
|
61 |
<copy todir="${build.result.folder}/@dot" failonerror="true" overwrite="false">
|
|
62 |
<fileset dir="${temp.folder}/@dot.bin">
|
|
63 |
</fileset>
|
|
64 |
</copy>
|
|
65 |
<delete dir="${temp.folder}/@dot.bin"/>
|
|
66 |
</target>
|
|
67 |
|
|
68 |
<target name="src.zip" depends="init" unless="src.zip">
|
|
69 |
<mkdir dir="${build.result.folder}"/>
|
|
70 |
<antcall target="zip.src.zip"/>
|
|
71 |
</target>
|
|
72 |
<target name="zip.src.zip">
|
|
73 |
<zip destfile="${build.result.folder}/src.zip" filesonly="false" whenempty="skip" update="false">
|
|
74 |
<fileset dir="src/">
|
|
75 |
<include name="**/*.java"/>
|
|
76 |
</fileset>
|
|
77 |
</zip>
|
|
78 |
</target>
|
|
79 |
<target name="copy.src.zip">
|
|
80 |
<copy todir="${source.destination.folder}/" failonerror="true" overwrite="true">
|
|
81 |
<fileset dir="src/">
|
|
82 |
<include name="**/*.java"/>
|
|
83 |
</fileset>
|
|
84 |
</copy>
|
|
85 |
</target>
|
|
86 |
|
|
87 |
<target name="build.jars" depends="init" description="Compile classes and build nested jars for the plug-in: com.nokia.s60tools.imaker.doc.user.">
|
|
88 |
<available property="@dot" file="${build.result.folder}/@dot"/>
|
|
89 |
<antcall target="@dot"/>
|
|
90 |
</target>
|
|
91 |
|
|
92 |
<target name="build.sources" depends="init">
|
|
93 |
<available property="src.zip" file="${build.result.folder}/src.zip"/>
|
|
94 |
<antcall target="src.zip"/>
|
|
95 |
</target>
|
|
96 |
|
|
97 |
<target name="gather.bin.parts" depends="init" if="destination.temp.folder">
|
|
98 |
<mkdir dir="${destination.temp.folder}/com.nokia.s60tools.imaker.doc.user_${plugin.version}"/>
|
|
99 |
<copy todir="${destination.temp.folder}/com.nokia.s60tools.imaker.doc.user_${plugin.version}" failonerror="true" overwrite="false">
|
|
100 |
<fileset dir="${build.result.folder}/@dot">
|
|
101 |
<include name="**"/>
|
|
102 |
</fileset>
|
|
103 |
</copy>
|
|
104 |
<copy todir="${destination.temp.folder}/com.nokia.s60tools.imaker.doc.user_${plugin.version}" failonerror="true" overwrite="false">
|
|
105 |
<fileset dir="${basedir}">
|
|
106 |
<include name="META-INF/"/>
|
|
107 |
<include name="html/"/>
|
|
108 |
<include name="plugin.xml"/>
|
|
109 |
</fileset>
|
|
110 |
</copy>
|
|
111 |
</target>
|
|
112 |
|
|
113 |
<target name="build.zips" depends="init">
|
|
114 |
</target>
|
|
115 |
|
|
116 |
<target name="gather.sources" depends="init" if="destination.temp.folder">
|
|
117 |
<mkdir dir="${destination.temp.folder}/com.nokia.s60tools.imaker.doc.user_${plugin.version}"/>
|
|
118 |
<copy file="${build.result.folder}/src.zip" todir="${destination.temp.folder}/com.nokia.s60tools.imaker.doc.user_${plugin.version}" failonerror="false" overwrite="false"/>
|
|
119 |
<antcall target="copy.src.includes">
|
|
120 |
<param name="source.destination.folder" value="${destination.temp.folder}/com.nokia.s60tools.imaker.doc.user_${plugin.version}"/>
|
|
121 |
</antcall>
|
|
122 |
</target>
|
|
123 |
|
|
124 |
<target name="gather.individual.sources" depends="init">
|
|
125 |
<antcall target="copy.src.zip">
|
|
126 |
<param name="source.destination.folder" value="${destination.temp.folder}"/>
|
|
127 |
</antcall>
|
|
128 |
<antcall target="copy.src.includes">
|
|
129 |
<param name="source.destination.folder" value="${destination.temp.folder}"/>
|
|
130 |
</antcall>
|
|
131 |
</target>
|
|
132 |
|
|
133 |
<target name="copy.src.includes" depends="init">
|
|
134 |
<copy todir="${source.destination.folder}" failonerror="false" overwrite="false">
|
|
135 |
<fileset dir="${basedir}">
|
|
136 |
<include name="src/"/>
|
|
137 |
<include name="html/"/>
|
|
138 |
<include name="plugin.xml"/>
|
|
139 |
<include name="META-INF/"/>
|
|
140 |
</fileset>
|
|
141 |
</copy>
|
|
142 |
</target>
|
|
143 |
|
|
144 |
<target name="gather.logs" depends="init" if="destination.temp.folder">
|
|
145 |
<mkdir dir="${destination.temp.folder}/com.nokia.s60tools.imaker.doc.user_${plugin.version}"/>
|
|
146 |
<copy todir="${destination.temp.folder}/com.nokia.s60tools.imaker.doc.user_${plugin.version}" failonerror="false" overwrite="false">
|
|
147 |
<fileset dir="${temp.folder}">
|
|
148 |
<include name="@dot.bin${logExtension}"/>
|
|
149 |
</fileset>
|
|
150 |
</copy>
|
|
151 |
</target>
|
|
152 |
|
|
153 |
<target name="clean" depends="init" description="Clean the plug-in: com.nokia.s60tools.imaker.doc.user of all the zips, jars and logs created.">
|
|
154 |
<delete dir="${build.result.folder}/@dot"/>
|
|
155 |
<delete file="${build.result.folder}/src.zip"/>
|
|
156 |
<delete file="${plugin.destination}/com.nokia.s60tools.imaker.doc.user_${plugin.version}.jar"/>
|
|
157 |
<delete file="${plugin.destination}/com.nokia.s60tools.imaker.doc.user_${plugin.version}.zip"/>
|
|
158 |
<delete dir="${temp.folder}"/>
|
|
159 |
</target>
|
|
160 |
|
|
161 |
<target name="refresh" depends="init" if="eclipse.running" description="Refresh this folder.">
|
|
162 |
<eclipse.convertPath fileSystemPath="E:/workspaces/imaker/imaker_plugin/com.nokia.s60tools.imaker.doc.user" property="resourcePath"/>
|
|
163 |
<eclipse.refreshLocal resource="${resourcePath}" depth="infinite"/>
|
|
164 |
</target>
|
|
165 |
|
|
166 |
<target name="zip.plugin" depends="init" description="Create a zip containing all the elements for the plug-in: com.nokia.s60tools.imaker.doc.user.">
|
|
167 |
<delete dir="${temp.folder}"/>
|
|
168 |
<mkdir dir="${temp.folder}"/>
|
|
169 |
<antcall target="build.jars"/>
|
|
170 |
<antcall target="build.sources"/>
|
|
171 |
<antcall target="gather.bin.parts">
|
|
172 |
<param name="destination.temp.folder" value="${temp.folder}/"/>
|
|
173 |
</antcall>
|
|
174 |
<antcall target="gather.sources">
|
|
175 |
<param name="destination.temp.folder" value="${temp.folder}/"/>
|
|
176 |
</antcall>
|
|
177 |
<delete>
|
|
178 |
<fileset dir="${temp.folder}">
|
|
179 |
<include name="**/*.bin${logExtension}"/>
|
|
180 |
</fileset>
|
|
181 |
</delete>
|
|
182 |
<zip destfile="${plugin.destination}/com.nokia.s60tools.imaker.doc.user_${plugin.version}.zip" basedir="${temp.folder}" filesonly="true" whenempty="skip" update="false"/>
|
|
183 |
<delete dir="${temp.folder}"/>
|
|
184 |
</target>
|
|
185 |
<target name="collect.jar">
|
|
186 |
<copy todir="${destination.temp.folder}" file="com.nokia.s60tools.imaker.doc.user_${plugin.version}.jar" failonerror="true" overwrite="true" />
|
|
187 |
</target>
|
|
188 |
</project>
|