javacommons/security/javaunicertstoreplugin/tsrc/build/build.xml
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 15:09:22 +0300
branchRCL_3
changeset 25 ae942d28ec0e
parent 14 04becd199f91
permissions -rw-r--r--
Revision: v2.2.11 Kit: 201035

<!--
#
# Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
# All rights reserved.
# This component and the accompanying materials are made available
# under the terms of "Eclipse Public License v1.0"
# which accompanies this distribution, and is available
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
#
# Initial Contributors:
# Nokia Corporation - initial contribution.
#
# Contributors:
#
# Description: 
#
-->

<project name="javaunitcertstoreplugintests" default="backup" basedir=".">

  <import file="../../../../../build/utilities.xml"/>

  <property name="captain.binary.dir" value="/epoc32/release/winscw/udeb"/>
  <property name="javacaptain.exe.name" value="javacaptain.exe"/>
  <property name="sys.bin.dir" value="/epoc32/winscw/c/sys/bin"/>

  <target name="init" depends="init.properties">
      <property name="test.tmp.dir" location="${env.JAVA_SRC_ROOT}/javacommons/security/javaunicertstoreplugin/tsrc/build/tmp"/>
      <property name="certs.dir" location="${java.captain.datacage}/security/trustroots/device/certificates"/>
  </target>

  <target name="backup" depends="init">
      <mkdir dir="${sys.bin.dir}"/>
      <copy file="${captain.binary.dir}/${javacaptain.exe.name}" tofile="${sys.bin.dir}/${javacaptain.exe.name}"/>
      <delete file="${captain.binary.dir}/${javacaptain.exe.name}"/>
      <mkdir dir="${test.tmp.dir}"/>
      <move todir="${test.tmp.dir}">
          <fileset dir="${certs.dir}"/>
      </move>
  </target>
  
  <target name="clean" depends="init">
      <copy file="${sys.bin.dir}/${javacaptain.exe.name}" 
            tofile="${captain.binary.dir}/${javacaptain.exe.name}"/>
      <delete file="${sys.bin.dir}/${javacaptain.exe.name}"/>
      <copy todir="${certs.dir}">
          <fileset dir="${test.tmp.dir}"/>
      </copy>
      <delete dir="${test.tmp.dir}"/>
  </target>

</project>