javatools/certificatesconfigurator/tsrc/build/build.xml
branchRCL_3
changeset 14 04becd199f91
equal deleted inserted replaced
13:f5050f1da672 14:04becd199f91
       
     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="test.base.dir" location="${env.JAVA_SRC_ROOT}/javatools/certificatesconfigurator/tsrc/tmp"/>
       
    24   <property name="test.legacy.base.dir" location="${test.base.dir}/legacy"/>
       
    25   <property name="test.omj.base.dir" location="${test.base.dir}/omj"/>
       
    26   <property name="test.legacy.certs.dir" location="${test.legacy.base.dir}/certs"/>
       
    27   <property name="test.legacy.certs.states.dir" location="${test.legacy.base.dir}/states"/>
       
    28   <property name="test.omj.certs.primary.dir" location="${test.omj.base.dir}/primarycerts"/>
       
    29   <property name="test.omj.certs.secondary.dir" location="${test.omj.base.dir}/secondarycerts"/>
       
    30   <property name="test.omj.certs.states.dir" location="${test.omj.base.dir}/states"/>
       
    31   <property name="test.trustrootpolicy.dir" location="${test.base.dir}/trustrootpolicy"/>
       
    32   <property name="legacy.certs.dir" location="/epoc32/release/winscw/udeb/Z/private/10203636/security/trustroots/device/certificates"/>
       
    33   <property name="legacy.certs.states.dir" location="/epoc32/winscw/C/private/10203636/security/trustroots/device/state"/>
       
    34   <property name="omj.certs.primary.dir" location="/epoc32/release/winscw/udeb/Z/private/200211dc/security/trustroots/device/certificates"/>
       
    35   <property name="omj.certs.secondary.dir" location="/epoc32/winscw/C/private/200211dc/security/trustroots/device/certificates"/>
       
    36   <property name="omj.certs.states.dir" location="/epoc32/winscw/C/private/200211dc/security/trustroots/device/state"/>
       
    37   <property name="legacy.trustrootpolicy.file" location="/epoc32/release/winscw/udeb/Z/private/10203636/security/midp2_trp.xml"/>
       
    38 
       
    39   <target name="init" depends="init.properties">
       
    40       <available file="${test.base.dir}" type="dir" property="test.base.dir.exists"/>
       
    41   </target>
       
    42 
       
    43   <target name="backup" depends="init" unless="test.base.dir.exists">
       
    44       <mkdir dir="${test.legacy.certs.dir}"/>
       
    45       <mkdir dir="${test.legacy.certs.states.dir}"/>
       
    46       <mkdir dir="${test.omj.certs.primary.dir}"/>
       
    47       <mkdir dir="${test.omj.certs.secondary.dir}"/>
       
    48       <mkdir dir="${test.omj.certs.states.dir}"/>
       
    49       <mkdir dir="${test.trustrootpolicy.dir}"/>
       
    50       <copy todir="${test.legacy.certs.dir}" failonerror="false">
       
    51           <fileset dir="${legacy.certs.dir}"/>
       
    52       </copy>
       
    53       <copy todir="${test.legacy.certs.states.dir}" failonerror="false">
       
    54           <fileset dir="${legacy.certs.states.dir}"/>
       
    55       </copy>
       
    56       <copy todir="${test.omj.certs.primary.dir}" failonerror="false">
       
    57           <fileset dir="${omj.certs.primary.dir}"/>
       
    58       </copy>
       
    59       <copy todir="${test.omj.certs.secondary.dir}" failonerror="false">
       
    60           <fileset dir="${omj.certs.secondary.dir}"/>
       
    61       </copy>
       
    62       <copy todir="${test.omj.certs.states.dir}" failonerror="false">
       
    63           <fileset dir="${omj.certs.states.dir}"/>
       
    64       </copy>
       
    65       <move file="${legacy.trustrootpolicy.file}" todir="${test.trustrootpolicy.dir}"/>      
       
    66       <delete>
       
    67           <fileset dir="${legacy.certs.dir}"/>
       
    68       </delete>
       
    69       <delete>
       
    70           <fileset dir="${legacy.certs.states.dir}"/>
       
    71       </delete>
       
    72       <delete>
       
    73           <fileset dir="${omj.certs.primary.dir}"/>
       
    74       </delete>
       
    75       <delete>
       
    76           <fileset dir="${omj.certs.secondary.dir}"/>
       
    77       </delete>
       
    78       <delete>
       
    79           <fileset dir="${omj.certs.states.dir}"/>
       
    80       </delete>
       
    81       <copy file="../data/midp2_trp.xml" tofile="${legacy.trustrootpolicy.file}"/>      
       
    82       <unzip src="../data/roots.zip" dest="${legacy.certs.dir}"/>
       
    83       <unzip src="../data/states.zip" dest="${legacy.certs.states.dir}"/>
       
    84   </target>
       
    85 
       
    86   <target name="clean" depends="init.properties">
       
    87       <delete dir="${legacy.certs.dir}"/>
       
    88       <delete dir="${legacy.certs.states.dir}"/>
       
    89       <delete dir="${omj.certs.primary.dir}"/>
       
    90       <delete dir="${omj.certs.secondary.dir}"/>
       
    91       <delete dir="${omj.certs.states.dir}"/>
       
    92       <copy todir="${legacy.certs.dir}" failonerror="false">
       
    93           <fileset dir="${test.legacy.certs.dir}"/>
       
    94       </copy>
       
    95       <copy todir="${legacy.certs.states.dir}" failonerror="false">
       
    96           <fileset dir="${test.legacy.certs.states.dir}"/>
       
    97       </copy>
       
    98       <copy todir="${omj.certs.primary.dir}" failonerror="false">
       
    99           <fileset dir="${test.omj.certs.primary.dir}"/>
       
   100       </copy>
       
   101       <copy todir="${omj.certs.secondary.dir}" failonerror="false">
       
   102           <fileset dir="${test.omj.certs.secondary.dir}"/>
       
   103       </copy>
       
   104       <copy todir="${omj.certs.states.dir}" failonerror="false">
       
   105           <fileset dir="${test.omj.certs.states.dir}"/>
       
   106       </copy>
       
   107       <copy file="${test.trustrootpolicy.dir}/midp2_trp.xml" tofile="${legacy.trustrootpolicy.file}" overwrite="true" failonerror="false"/>      
       
   108       <delete dir="${test.base.dir}"/>
       
   109   </target>
       
   110 
       
   111 </project>
       
   112