|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <project name="com.nokia.s60tools.analyzetool.help" default="build.jars" basedir="."> |
|
3 |
|
4 <property name="pluginVersion" value="1.8.0"/> |
|
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="bundleId" value="com.nokia.s60tools.analyzetool.help"/> |
|
10 <property name="bundleVersion" value="${pluginVersion}"/> |
|
11 |
|
12 <!-- Compiler settings. --> |
|
13 <property name="javacFailOnError" value="false"/> |
|
14 <property name="javacDebugInfo" value="on"/> |
|
15 <property name="javacVerbose" value="false"/> |
|
16 <property name="logExtension" value=".log"/> |
|
17 <property name="compilerArg" value=""/> |
|
18 <property name="javacSource" value="1.5"/> |
|
19 <property name="javacTarget" value="1.5"/> |
|
20 <condition property="dir_bootclasspath" value="${java.home}/../Classes"> |
|
21 <os family="mac"/> |
|
22 </condition> |
|
23 <property name="dir_bootclasspath" value="${java.home}/lib"/> |
|
24 <path id="path_bootclasspath"> |
|
25 <fileset dir="${dir_bootclasspath}"> |
|
26 <include name="*.jar"/> |
|
27 </fileset> |
|
28 </path> |
|
29 <property name="bootclasspath" refid="path_bootclasspath"/> |
|
30 <property name="bundleJavacSource" value="${javacSource}"/> |
|
31 <property name="bundleJavacTarget" value="${javacTarget}"/> |
|
32 <property name="bundleBootClasspath" value="${bootclasspath}"/> |
|
33 |
|
34 <target name="init" depends="properties"> |
|
35 <condition property="pluginTemp" value="${buildTempFolder}/plugins"> |
|
36 <isset property="buildTempFolder"/> |
|
37 </condition> |
|
38 <property name="pluginTemp" value="${basedir}"/> |
|
39 <condition property="build.result.folder" value="${pluginTemp}/com.nokia.s60tools.analyzetool.help_${pluginVersion}"> |
|
40 <isset property="buildTempFolder"/> |
|
41 </condition> |
|
42 <property name="build.result.folder" value="${basedir}"/> |
|
43 <property name="temp.folder" value="${basedir}/temp.folder"/> |
|
44 <property name="plugin.destination" value="${basedir}"/> |
|
45 </target> |
|
46 |
|
47 <target name="properties" if="eclipse.running"> |
|
48 <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/> |
|
49 |
|
50 </target> |
|
51 |
|
52 <target name="build.update.jar" depends="init" description="Build the plug-in: com.nokia.s60tools.analyzetool.help for an update site."> |
|
53 <delete dir="${temp.folder}"/> |
|
54 <mkdir dir="${temp.folder}"/> |
|
55 <antcall target="build.jars"/> |
|
56 <antcall target="gather.bin.parts"> |
|
57 <param name="destination.temp.folder" value="${temp.folder}/"/> |
|
58 </antcall> |
|
59 <jar destfile="${plugin.destination}/com.nokia.s60tools.analyzetool.help_${pluginVersion}.jar" basedir="${temp.folder}/com.nokia.s60tools.analyzetool.help_${pluginVersion}" filesetmanifest="merge"/> |
|
60 <delete dir="${temp.folder}"/> |
|
61 </target> |
|
62 |
|
63 <target name="build.jars" depends="init" description="Compile classes and build nested jars for the plug-in: com.nokia.s60tools.analyzetool.help."> |
|
64 </target> |
|
65 |
|
66 <target name="build.sources" depends="init"> |
|
67 </target> |
|
68 |
|
69 <target name="gather.bin.parts" depends="init" if="destination.temp.folder"> |
|
70 <mkdir dir="${destination.temp.folder}/com.nokia.s60tools.analyzetool.help_${pluginVersion}"/> |
|
71 <copy todir="${destination.temp.folder}/com.nokia.s60tools.analyzetool.help_${pluginVersion}" failonerror="true" overwrite="false"> |
|
72 <fileset dir="${basedir}"> |
|
73 <include name="plugin.xml"/> |
|
74 <include name="META-INF/"/> |
|
75 <include name="."/> |
|
76 <include name="html/"/> |
|
77 <include name="nokia.css"/> |
|
78 <include name="about.html"/> |
|
79 </fileset> |
|
80 </copy> |
|
81 </target> |
|
82 |
|
83 <target name="build.zips" depends="init"> |
|
84 </target> |
|
85 |
|
86 <target name="gather.sources" depends="init" if="destination.temp.folder"> |
|
87 </target> |
|
88 |
|
89 <target name="gather.logs" depends="init" if="destination.temp.folder"> |
|
90 </target> |
|
91 |
|
92 <target name="clean" depends="init" description="Clean the plug-in: com.nokia.s60tools.analyzetool.help of all the zips, jars and logs created."> |
|
93 <delete file="${plugin.destination}/com.nokia.s60tools.analyzetool.help_${pluginVersion}.jar"/> |
|
94 <delete file="${plugin.destination}/com.nokia.s60tools.analyzetool.help_${pluginVersion}.zip"/> |
|
95 <delete dir="${temp.folder}"/> |
|
96 </target> |
|
97 |
|
98 <target name="refresh" depends="init" if="eclipse.running" description="Refresh this folder."> |
|
99 <eclipse.convertPath fileSystemPath="C:/PlatformRnDTools/Carbide_Extensions/AnalyzeTool/trunk/com.nokia.s60tools.analyzetool.help" property="resourcePath"/> |
|
100 <eclipse.refreshLocal resource="${resourcePath}" depth="infinite"/> |
|
101 </target> |
|
102 |
|
103 <target name="zip.plugin" depends="init" description="Create a zip containing all the elements for the plug-in: com.nokia.s60tools.analyzetool.help."> |
|
104 <delete dir="${temp.folder}"/> |
|
105 <mkdir dir="${temp.folder}"/> |
|
106 <antcall target="build.jars"/> |
|
107 <antcall target="build.sources"/> |
|
108 <antcall target="gather.bin.parts"> |
|
109 <param name="destination.temp.folder" value="${temp.folder}/"/> |
|
110 </antcall> |
|
111 <antcall target="gather.sources"> |
|
112 <param name="destination.temp.folder" value="${temp.folder}/"/> |
|
113 </antcall> |
|
114 <delete> |
|
115 <fileset dir="${temp.folder}"> |
|
116 <include name="**/*.bin${logExtension}"/> |
|
117 </fileset> |
|
118 </delete> |
|
119 <zip destfile="${plugin.destination}/com.nokia.s60tools.analyzetool.help_${pluginVersion}.zip" basedir="${temp.folder}" filesonly="true" whenempty="skip" update="false"/> |
|
120 <delete dir="${temp.folder}"/> |
|
121 </target> |
|
122 |
|
123 </project> |