|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <project basedir="." default="emma" name="TDEP_Build"> |
|
3 <target name="init"> |
|
4 <property environment="env" /> |
|
5 <property name="td.destination" value="${env.EPOCROOT}epoc32/tools/TDEP" /> |
|
6 <property name="td.eclipse" value="${env.ECLIPSEHOME}" /> |
|
7 <property name="td.carbide" value="${env.CARBIDEHOME}" /> |
|
8 <property name="td.eclipse.startupjar" value="${env.ECLIPSEHOME}/plugins/org.eclipse.equinox.launcher.jar" /> |
|
9 <property name="Build.Type" value="I" /> |
|
10 <property name="Build.Id" value="testdriver2"/> |
|
11 <property name="TDArchive.Name" value="testdriver2"/> |
|
12 <property name="Build.Config" value="win32.win32.x86"/> |
|
13 </target> |
|
14 |
|
15 |
|
16 <!-- use EMMA offline mode to instrument testdrive code for code coverage testing --> |
|
17 <target name="emma" depends="init"> |
|
18 <!-- instruct testdriver2.zip --> |
|
19 <echo message="use emma to instructment testdriver2.zip"/> |
|
20 <property name="plugindir" value="${td.destination}/emma/output/tdplugins/eclipse/plugins"/> |
|
21 |
|
22 <mkdir dir="${td.destination}/emma/output" /> |
|
23 <unzip overwrite="true" src="${td.destination}/${TDArchive.Name}.zip" dest="${td.destination}/emma/output" /> |
|
24 <exec executable="java"> |
|
25 <arg line="-cp emma.jar emma instr -ix -com.sun.*,-javax.* -m overwrite -cp ${plugindir}/com.symbian.driver_1.0.1001.jar"/> |
|
26 </exec> |
|
27 <exec executable="java"> |
|
28 <arg line="-cp emma.jar emma instr -ix -com.sun.*,-javax.* -m overwrite -cp ${plugindir}/com.symbian.driver.report_1.0.1001.jar"/> |
|
29 </exec> |
|
30 <exec executable="java"> |
|
31 <arg line="-cp emma.jar emma instr -ix -com.sun.*,-javax.* -m overwrite -cp ${plugindir}/com.symbian.utils_1.0.1001.jar"/> |
|
32 </exec> |
|
33 <exec executable="java"> |
|
34 <arg line="-cp emma.jar emma instr -ix -com.sun.*,-javax.* -m overwrite -cp ${plugindir}/com.symbian.driver.plugins.comms.stat_1.0.0.jar"/> |
|
35 </exec> |
|
36 <exec executable="java"> |
|
37 <arg line="-cp emma.jar emma instr -ix -com.sun.*,-javax.* -m overwrite -cp ${plugindir}/com.symbian.driver.core_2.3.0.jar"/> |
|
38 </exec> |
|
39 <exec executable="java"> |
|
40 <arg line="-cp emma.jar emma instr -ix -com.sun.*,-javax.* -m overwrite -cp ${plugindir}/com.symbian.driver.plugins.coredump_1.0.0.jar"/> |
|
41 </exec> |
|
42 <exec executable="java"> |
|
43 <arg line="-cp emma.jar emma instr -ix -com.sun.*,-javax.* -m overwrite -cp ${plugindir}/com.symbian.driver.plugins.utrace_1.0.0.jar"/> |
|
44 </exec> |
|
45 <zip destfile="${td.destination}/emma/${TDArchive.Name}.zip" basedir="${td.destination}/emma/output" filesonly="false" whenempty="skip" update="false" /> |
|
46 <delete dir="${td.destination}/emma/output" /> |
|
47 </target> |
|
48 </project> |