587
|
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" />
|
628
|
30 |
<taskdef resource="com/nokia/helium/core/ant/antlib.xml" uri="http://www.nokia.com/helium"/>
|
587
|
31 |
|
|
32 |
<hlm:stage id="stage1" starttarget="stage1" endtarget="stage1" />
|
|
33 |
<hlm:stage id="stage2" starttarget="stage2" endtarget="stage2" />
|
|
34 |
|
|
35 |
<hlm:stagerecord id="record.default" defaultoutput="${temp.dir}/main.ant.log" loglevel="info" />
|
|
36 |
<hlm:stagerecord id="record.stage1" stagerefid="stage1" output="${temp.dir}/stage1.ant.log" loglevel="info" />
|
|
37 |
<hlm:stagerecord id="record.stage2" stagerefid="stage2" output="${temp.dir}/stage2.ant.log" loglevel="info" />
|
|
38 |
|
|
39 |
<target name="start-ant-log">
|
|
40 |
<hlm:triggerlogger/>
|
|
41 |
</target>
|
|
42 |
|
|
43 |
<target name="build" depends="start-ant-log">
|
|
44 |
<echo>Main log start step1</echo>
|
|
45 |
<antcall target="stage1" />
|
|
46 |
<echo>Main log start step2</echo>
|
|
47 |
<antcall target="stage2" />
|
|
48 |
<echo>Main log start step3</echo>
|
|
49 |
<antcall target="stage1">
|
|
50 |
<param name="step1" value="2" />
|
|
51 |
</antcall>
|
|
52 |
<fail message="Testing build failure" />
|
|
53 |
<echo>Main log start step4</echo>
|
|
54 |
<antcall target="stage2">
|
|
55 |
<param name="step2" value="2" />
|
|
56 |
</antcall>
|
|
57 |
<echo>Main log start step5</echo>
|
|
58 |
</target>
|
|
59 |
|
|
60 |
<target name="stage1">
|
|
61 |
<echo>In stage1 (${step1})</echo>
|
|
62 |
</target>
|
|
63 |
|
|
64 |
<target name="stage2">
|
|
65 |
<echo>In stage2 (${step2})</echo>
|
|
66 |
</target>
|
|
67 |
|
|
68 |
</project>
|