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