|
1 <!-- |
|
2 # |
|
3 # Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
4 # All rights reserved. |
|
5 # This component and the accompanying materials are made available |
|
6 # under the terms of the License "Eclipse Public License v1.0" |
|
7 # which accompanies this distribution, and is available |
|
8 # at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
9 # |
|
10 # Initial Contributors: |
|
11 # Nokia Corporation - initial contribution. |
|
12 # |
|
13 # Contributors: |
|
14 # |
|
15 # Description: |
|
16 # |
|
17 --> |
|
18 |
|
19 <project name="eswtuitestutils" default="createJars" basedir="."> |
|
20 |
|
21 <description> |
|
22 Builds eswtuitestutils on Qt |
|
23 </description> |
|
24 |
|
25 <import file="../../../../build/utilities.xml"/> |
|
26 |
|
27 <!-- Needed by the utilities.xml. See the description form the utilities.xml |
|
28 file --> |
|
29 |
|
30 <target name="compile"> |
|
31 <omj.javac classpath="${bootclasspath.cdc}:${impl.cldc.jar}"/> |
|
32 </target> |
|
33 |
|
34 <property name="javah.classnames" value="com.nokia.mj.impl.uitestutils.S60Utils"/> |
|
35 |
|
36 <!-- This empty call is needed to avoid OMJ tool to add this component class to cldc jar --> |
|
37 <target name="add.classes.to.collection.jar"/> |
|
38 |
|
39 <target name="createJars" depends="deploy"> |
|
40 <copy file="${compile.result.root}/eswtuitestutils/release_japted.jar" todir="${bcp.dest.directory}" failonerror="true"/> |
|
41 <move file="${bcp.dest.directory}/release_japted.jar" tofile="${bcp.dest.directory}/eswtuitestutils.jar" failonerror="true"/> |
|
42 <antcall target="appendODC"/> |
|
43 </target> |
|
44 |
|
45 <target name="appendODC" > |
|
46 <!-- Appends eswtuitestutils.odc if not present in installerodclist30 file --> |
|
47 <loadfile srcFile="${epocroot}epoc32/data/z/resource/java/installerodclist" property="uitestutils"> |
|
48 <filterchain> |
|
49 <linecontains> |
|
50 <contains value="${component.dir}.odc"/> |
|
51 </linecontains> |
|
52 </filterchain> |
|
53 </loadfile> |
|
54 <antcall target="appendUITestUtils"/> |
|
55 </target> |
|
56 |
|
57 <target name="appendUITestUtils" unless="uitestutils"> |
|
58 <concat destfile="${epocroot}epoc32/data/z/resource/java/installerodclist" append="true">${component.dir}.odc${line.separator}</concat> |
|
59 <concat destfile="${epocroot}epoc32/data/z/resource/java/installerodclist" append="true">${component.dir}.jar${line.separator}</concat> |
|
60 </target> |
|
61 |
|
62 </project> |