buildframework/helium/sf/java/logging/tests/scenarii/missing_default_config/build.xml
changeset 628 7c4a911dc066
child 645 b8d81fa19e7d
equal deleted inserted replaced
588:c7c26511138f 628:7c4a911dc066
       
     1 <?xml version="1.0" encoding="UTF-8"?>
       
     2 <!-- 
       
     3 ============================================================================ 
       
     4 Name        : build.xml 
       
     5 Part of     : Helium AntLib
       
     6 
       
     7 Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     8 All rights reserved.
       
     9 This component and the accompanying materials are made available
       
    10 under the terms of the License "Eclipse Public License v1.0"
       
    11 which accompanies this distribution, and is available
       
    12 at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
    13 
       
    14 Initial Contributors:
       
    15 Nokia Corporation - initial contribution.
       
    16 
       
    17 Contributors:
       
    18 
       
    19 Description:
       
    20 
       
    21 ============================================================================
       
    22 -->
       
    23 <project name="helium-antlib-unittestvalid-build" xmlns:au="antlib:org.apache.ant.antunit" xmlns:hlm="http://www.nokia.com/helium">
       
    24     <description>Helium Antlib Logging unittests.</description>
       
    25     <property environment="env"/>
       
    26     <property name="step1" value="1" />
       
    27     <property name="step2" value="1" />
       
    28         
       
    29     <taskdef resource="com/nokia/helium/logger/ant/antlib.xml" uri="http://www.nokia.com/helium" />
       
    30     <taskdef resource="com/nokia/helium/core/ant/antlib.xml" uri="http://www.nokia.com/helium"/>
       
    31     
       
    32     <hlm:stage id="stage1" starttarget="stage1" endtarget="stage1" />
       
    33     <hlm:stage id="stage2" starttarget="stage2" endtarget="stage2" />
       
    34 
       
    35     <!-- voluntarly missing the default stagerecord-->
       
    36     <!-- hlm:stagerecord id="record.default" defaultoutput="${temp.dir}/main.ant.log" loglevel="info" / -->
       
    37     <hlm:stagerecord id="record.stage1"  stagerefid="stage1" output="${temp.dir}/stage1.ant.log" loglevel="info" />
       
    38     <hlm:stagerecord id="record.stage2"  stagerefid="stage2" output="${temp.dir}/stage2.ant.log" loglevel="info" />
       
    39 
       
    40     <target name="start-ant-log">
       
    41         <hlm:triggerlogger/> 
       
    42     </target>
       
    43 
       
    44     <target name="build" depends="start-ant-log">
       
    45         <echo>Main log start step1</echo>
       
    46         <antcall target="stage1" />
       
    47         <echo>Main log start step2</echo>
       
    48         <antcall target="stage2" />
       
    49         <echo>Main log start step3</echo>
       
    50         <antcall target="stage1">
       
    51             <param name="step1" value="2" />
       
    52         </antcall>
       
    53         <fail message="Testing build failure" />
       
    54         <echo>Main log start step4</echo>
       
    55         <antcall target="stage2">
       
    56             <param name="step2" value="2" />
       
    57         </antcall>
       
    58         <echo>Main log start step5</echo>
       
    59     </target>
       
    60 
       
    61     <target name="stage1">
       
    62         <echo>In stage1 (${step1})</echo>
       
    63     </target>
       
    64 
       
    65     <target name="stage2">
       
    66         <echo>In stage2 (${step2})</echo>
       
    67     </target>
       
    68     
       
    69 </project>