|
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 "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="javaunitcertstoreplugintests" default="backup" basedir="."> |
|
20 |
|
21 <import file="../../../../../build/utilities.xml"/> |
|
22 |
|
23 <property name="captain.binary.dir" value="/epoc32/release/winscw/udeb"/> |
|
24 <property name="javacaptain.exe.name" value="javacaptain.exe"/> |
|
25 <property name="sys.bin.dir" value="/epoc32/winscw/c/sys/bin"/> |
|
26 |
|
27 <target name="init" depends="init.properties"> |
|
28 <property name="test.tmp.dir" location="${env.JAVA_SRC_ROOT}/javacommons/security/javaunicertstoreplugin/tsrc/build/tmp"/> |
|
29 <property name="certs.dir" location="${java.captain.datacage}/security/trustroots/device/certificates"/> |
|
30 </target> |
|
31 |
|
32 <target name="backup" depends="init"> |
|
33 <mkdir dir="${sys.bin.dir}"/> |
|
34 <copy file="${captain.binary.dir}/${javacaptain.exe.name}" tofile="${sys.bin.dir}/${javacaptain.exe.name}"/> |
|
35 <delete file="${captain.binary.dir}/${javacaptain.exe.name}"/> |
|
36 <mkdir dir="${test.tmp.dir}"/> |
|
37 <move todir="${test.tmp.dir}"> |
|
38 <fileset dir="${certs.dir}"/> |
|
39 </move> |
|
40 </target> |
|
41 |
|
42 <target name="clean" depends="init"> |
|
43 <copy file="${sys.bin.dir}/${javacaptain.exe.name}" |
|
44 tofile="${captain.binary.dir}/${javacaptain.exe.name}"/> |
|
45 <delete file="${sys.bin.dir}/${javacaptain.exe.name}"/> |
|
46 <copy todir="${certs.dir}"> |
|
47 <fileset dir="${test.tmp.dir}"/> |
|
48 </copy> |
|
49 <delete dir="${test.tmp.dir}"/> |
|
50 </target> |
|
51 |
|
52 </project> |
|
53 |