sysmodelmgr/com.symbian.smt.gui.properties/build.xml
changeset 0 522a326673b6
equal deleted inserted replaced
-1:000000000000 0:522a326673b6
       
     1 <?xml version="1.0" encoding="UTF-8"?>
       
     2 <project name="com.symbian.smt.gui.frag" default="build.jars" basedir=".">
       
     3 
       
     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 
       
     9 	<!-- Compiler settings. -->
       
    10 	<property name="javacFailOnError" value="false"/>
       
    11 	<property name="javacDebugInfo" value="on"/>
       
    12 	<property name="javacVerbose" value="false"/>
       
    13 	<property name="logExtension" value=".log"/>
       
    14 	<property name="compilerArg" value=""/>
       
    15 	<property name="javacSource" value="1.3"/>
       
    16 	<property name="javacTarget" value="1.2"/>
       
    17 	<path id="path_bootclasspath">
       
    18 		<fileset dir="${java.home}/lib">
       
    19 			<include name="*.jar"/>
       
    20 		</fileset>
       
    21 	</path>
       
    22 	<property name="bootclasspath" refid="path_bootclasspath"/>
       
    23 	<property name="bundleJavacSource" value="${javacSource}"/>
       
    24 	<property name="bundleJavacTarget" value="${javacTarget}"/>
       
    25 	<property name="bundleBootClasspath" value="${bootclasspath}"/>
       
    26 
       
    27 	<target name="init" depends="properties">
       
    28 		<condition property="pluginTemp" value="${buildTempFolder}/plugins">
       
    29 			<isset property="buildTempFolder"/>
       
    30 		</condition>
       
    31 		<property name="pluginTemp" value="${basedir}"/>
       
    32 		<condition property="build.result.folder" value="${pluginTemp}/com.symbian.smt.gui.properties">
       
    33 			<isset property="buildTempFolder"/>
       
    34 		</condition>
       
    35 		<property name="build.result.folder" value="${basedir}"/>
       
    36 		<property name="temp.folder" value="${basedir}/temp.folder"/>
       
    37 		<property name="plugin.destination" value="${release.folder}"/>
       
    38 	</target>
       
    39 
       
    40 	<target name="properties" if="eclipse.running">
       
    41 		<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
       
    42 
       
    43 	</target>
       
    44 
       
    45 	<target name="build.update.jar" depends="init" description="Build the plug-in: com.symbian.smt.gui.frag for an update site.">
       
    46 		<delete dir="${temp.folder}"/>
       
    47 		<mkdir dir="${temp.folder}"/>
       
    48 		<antcall target="build.jars"/>
       
    49 		<antcall target="gather.bin.parts">
       
    50 			<param name="destination.temp.folder" value="${temp.folder}/"/>
       
    51 		</antcall>
       
    52 		<zip destfile="${plugin.destination}/com.symbian.smt.gui.properties.jar" basedir="${temp.folder}/com.symbian.smt.gui.properties" filesonly="false" whenempty="skip" update="false"/>
       
    53 		<delete dir="${temp.folder}"/>
       
    54 	</target>
       
    55 
       
    56 	<target name="build.jars" depends="init" description="Build all the jars for the plug-in: com.symbian.smt.gui.properties">
       
    57 	</target>
       
    58 
       
    59 	<target name="build.sources" depends="init">
       
    60 	</target>
       
    61 
       
    62 	<target name="gather.bin.parts" depends="init" if="destination.temp.folder">
       
    63 		<mkdir dir="${destination.temp.folder}/com.symbian.smt.gui.frag"/>
       
    64 		<copy todir="${destination.temp.folder}/com.symbian.smt.gui.properties" failonerror="true" overwrite="false">
       
    65 			<fileset dir="${basedir}" includes="META-INF/,."			/>
       
    66 		</copy>
       
    67 	</target>
       
    68 
       
    69 	<target name="build.zips" depends="init">
       
    70 	</target>
       
    71 
       
    72 	<target name="gather.sources" depends="init" if="destination.temp.folder">
       
    73 	</target>
       
    74 
       
    75 	<target name="gather.logs" depends="init" if="destination.temp.folder">
       
    76 	</target>
       
    77 
       
    78 	<target name="clean" depends="init" description="Clean the plug-in: com.symbian.smt.gui.frag of all the zips, jars and logs created.">
       
    79 		<delete file="${plugin.destination}/com.symbian.smt.gui.properties_1.0.0.jar"/>
       
    80 		<delete file="${plugin.destination}/com.symbian.smt.gui.properties_1.0.0.zip"/>
       
    81 		<delete dir="${temp.folder}"/>
       
    82 	</target>
       
    83 
       
    84 	<target name="zip.plugin" depends="init" description="Create a zip containing all the elements for the plug-in: com.symbian.smt.gui.frag.">
       
    85 		<delete dir="${temp.folder}"/>
       
    86 		<mkdir dir="${temp.folder}"/>
       
    87 		<antcall target="build.jars"/>
       
    88 		<antcall target="build.sources"/>
       
    89 		<antcall target="gather.bin.parts">
       
    90 			<param name="destination.temp.folder" value="${temp.folder}/"/>
       
    91 		</antcall>
       
    92 		<antcall target="gather.sources">
       
    93 			<param name="destination.temp.folder" value="${temp.folder}/"/>
       
    94 		</antcall>
       
    95 		<delete>
       
    96 			<fileset dir="${temp.folder}" includes="**/*.bin${logExtension}"			/>
       
    97 		</delete>
       
    98 				
       
    99 		<copy todir="${plugin.destination}/com.symbian.smt.gui.properties">
       
   100 			<fileset dir="${temp.folder}/com.symbian.smt.gui.properties" >
       
   101 				<exclude name="**/distribution.policy*"/>
       
   102 			</fileset>
       
   103 		</copy>
       
   104 		
       
   105 		<delete dir="${temp.folder}"/>
       
   106 	</target>
       
   107 
       
   108 </project>