build/utilities.xml
changeset 87 1627c337e51e
parent 67 63b81d807542
equal deleted inserted replaced
80:d6dafc5d983f 87:1627c337e51e
    64 
    64 
    65 
    65 
    66   <!-- Importing emma utilities for Java code coverage measurement. -->
    66   <!-- Importing emma utilities for Java code coverage measurement. -->
    67   <import file="emmautilities.xml"/>
    67   <import file="emmautilities.xml"/>
    68 
    68 
    69 
    69   <!-- Import cobertura utilities for Java code coverage measurement on Symbian. -->
    70 
    70   <condition property="cobertura.import"
    71 
    71              value="coberturautilities.xml"
    72 
    72                else="coberturautilities_stub.xml">
    73 
    73     <isset property="set.cobertura.enabled" />
    74 
    74   </condition>
    75 
    75 
       
    76   <import file="${cobertura.import}"/>
    76 
    77 
    77 
    78 
    78 <!--STARTING POINTS START-->
    79 <!--STARTING POINTS START-->
    79 
    80 
    80   <!--The start point of the component's build when there are classes that can
    81   <!--The start point of the component's build when there are classes that can
   227                else="${jsrc}">
   228                else="${jsrc}">
   228       <isset property="java.cpp.tmp.dir" />
   229       <isset property="java.cpp.tmp.dir" />
   229     </condition>
   230     </condition>
   230 
   231 
   231     <ant target="${compile.target}"/>
   232     <ant target="${compile.target}"/>
       
   233     <ant target="cobertura.instr" />
   232     <ant target="finetune.classes"/>
   234     <ant target="finetune.classes"/>
   233     <ant target="emma.instr"/>
   235     <ant target="emma.instr"/>
   234     <ant target="add.classes.to.collection.jar"/>
   236     <ant target="add.classes.to.collection.jar"/>
   235     <ant target="collect.localisation.files"/>
   237     <ant target="collect.localisation.files"/>
   236 
   238 
   317       source="${javac.source}"
   319       source="${javac.source}"
   318       target="${javac.target}"
   320       target="${javac.target}"
   319       destdir="${dst.dir}"
   321       destdir="${dst.dir}"
   320       debug="${javac.debug.on}"
   322       debug="${javac.debug.on}"
   321       debuglevel="lines,vars,source"
   323       debuglevel="lines,vars,source"
   322       bootclasspath="${bcp}:${int.bcp}:${platform.api.jar}:${public.api.jar}${eswt.jar}">
   324       includeAntRuntime="false"
       
   325       bootclasspath="${bcp}:${int.bcp}:${platform.api.jar}:${public.api.jar}${eswt.jar}:${cobertura.classpath}">
   323 
   326 
   324    <!-- Uncomment the following line if you want to see Javac warnings. -->
   327    <!-- Uncomment the following line if you want to see Javac warnings. -->
   325    <!--   <compilerarg value="-Xlint"/> -->
   328    <!--   <compilerarg value="-Xlint"/> -->
   326 
   329 
   327       <src path="${jsrc.for.javac}"/>
   330       <src path="${jsrc.for.javac}"/>
   372 
   375 
   373 
   376 
   374 <!--ODC FILE START-->
   377 <!--ODC FILE START-->
   375 
   378 
   376   <!--Generate the odc files -->
   379   <!--Generate the odc files -->
   377   <target name="generate.odc" depends="system.properties" unless="no.rommizing">
   380   <target name="generate.odc" depends="system.properties,cobertura.systemprop" unless="no.rommizing">
   378     <exec executable="python" failonerror="true">
   381     <exec executable="python" failonerror="true">
   379       <arg value="${java.src.root}/build/buildutils/generateOdcFile.py"/>
   382       <arg value="${java.src.root}/build/buildutils/generateOdcFile.py"/>
   380       <arg value="${component.root.dir}/${odc.file.name}.odc"/>
   383       <arg value="${component.root.dir}/${odc.file.name}.odc"/>
   381       <arg value="${native.dll.name}"/>
   384       <arg value="${native.dll.name}"/>
   382       <arg value="${classes.collection.dir}"/>
   385       <arg value="${classes.collection.dir}"/>
   530   <target name="component.clean">
   533   <target name="component.clean">
   531   </target>
   534   </target>
   532 
   535 
   533   <!--Do the cleaning-->
   536   <!--Do the cleaning-->
   534   <target name="clean.impl" depends="init.properties, clean.from.collection.jars,
   537   <target name="clean.impl" depends="init.properties, clean.from.collection.jars,
   535                                      emma.clean">
   538                                      emma.clean, cobertura.clean">
   536     <!--
   539     <!--
   537     <echo message = "target.platform = ${target.platform}"/>
   540     <echo message = "target.platform = ${target.platform}"/>
   538     <echo message = "target.cfg = ${target.cfg}"/>
   541     <echo message = "target.cfg = ${target.cfg}"/>
   539     <echo message = "bootclasspath = ${bootclasspath}"/>
   542     <echo message = "bootclasspath = ${bootclasspath}"/>
   540     -->
   543     -->
   622 
   625 
   623 
   626 
   624 <!--GENERATE JAVADOC START-->
   627 <!--GENERATE JAVADOC START-->
   625   <target name="javadoc" description="Create javadoc. Use -javadoc.dir=dir to override location">
   628   <target name="javadoc" description="Create javadoc. Use -javadoc.dir=dir to override location">
   626      <property name="javadoc.dir" value="javadoc" />
   629      <property name="javadoc.dir" value="javadoc" />
   627 	 <javadoc destdir="${javadoc.dir}"
   630    <javadoc destdir="${javadoc.dir}"
   628 			  version="true"
   631         version="true"
   629 			  use="true"
   632         use="true"
   630               defaultexcludes="true"
   633               defaultexcludes="true"
   631 			  windowtitle="Runtime API">
   634         windowtitle="Runtime API">
   632 
   635 
   633 	   <fileset dir="${java.src.root}/javacommons/" defaultexcludes="yes">
   636      <fileset dir="${java.src.root}/javacommons/" defaultexcludes="yes">
   634 		 <include name="utils/javasrc/com/nokia/mj/impl/rt/support/*.java"/>
   637      <include name="utils/javasrc/com/nokia/mj/impl/rt/support/*.java"/>
   635 		 <include name="utils/javasrc/com/nokia/mj/impl/utils/**/*.java"/>
   638      <include name="utils/javasrc/com/nokia/mj/impl/utils/**/*.java"/>
   636 		 <include name="utils/javasrc/com/nokia/mj/impl/rt/ui/**/*.java"/>
   639      <include name="utils/javasrc/com/nokia/mj/impl/rt/ui/**/*.java"/>
   637 		 <include name="fileutils/javasrc/**/*.java"/>
   640      <include name="fileutils/javasrc/**/*.java"/>
   638   	     <include name="comms/javasrc/**/*.java"/>
   641          <include name="comms/javasrc/**/*.java"/>
   639 		 <include name="javastorage/javasrc/**/*.java"/>
   642      <include name="javastorage/javasrc/**/*.java"/>
   640 	   </fileset>
   643      </fileset>
   641 
   644 
   642 	   <doctitle><![CDATA[<h1>Runtime API</h1>]]></doctitle>
   645      <doctitle><![CDATA[<h1>Runtime API</h1>]]></doctitle>
   643 	   <bottom><![CDATA[<i>Copyright &#169; 2008 Nokia. All Rights Reserved.</i>]]></bottom>
   646      <bottom><![CDATA[<i>Copyright &#169; 2008 Nokia. All Rights Reserved.</i>]]></bottom>
   644 	 </javadoc>
   647    </javadoc>
   645   </target>
   648   </target>
   646 <!--GENERATE JAVADOC END-->
   649 <!--GENERATE JAVADOC END-->
   647 
   650 
   648 
   651 
   649 
   652