628
|
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="test-enable-flags" xmlns:au="antlib:org.apache.ant.antunit" xmlns:hlm="http://www.nokia.com/helium">
|
|
24 |
<description>Helium Antlib logger unittests.</description>
|
|
25 |
|
|
26 |
<import file="../property/feature.ant.xml"/>
|
|
27 |
<property name="feature.enabled" value="true"/>
|
|
28 |
<property name="enable.feature" value="true"/>
|
|
29 |
<property name="internal.abc.enabled" value="true"/>
|
|
30 |
<property name="internal.bla.enabled" value="false"/>
|
|
31 |
<property name="skip.ats.sending" value="t"/>
|
|
32 |
|
|
33 |
|
|
34 |
<condition property="internal.old.enabled">
|
|
35 |
<or>
|
|
36 |
<istrue value="${xyz.enabled}"/>
|
|
37 |
<isset property="enable.feature"/>
|
|
38 |
</or>
|
|
39 |
</condition>
|
|
40 |
|
|
41 |
<condition property="internal.new.enabled">
|
|
42 |
<or>
|
|
43 |
<istrue value="${feature.enabled}"/>
|
|
44 |
<isset property="abc.feature"/>
|
|
45 |
</or>
|
|
46 |
</condition>
|
|
47 |
|
|
48 |
<condition property="internal.both.enabled">
|
|
49 |
<or>
|
|
50 |
<istrue value="${feature.enabled}"/>
|
|
51 |
<isset property="enable.feature"/>
|
|
52 |
</or>
|
|
53 |
</condition>
|
|
54 |
|
|
55 |
<target name="run-target-disabled" if="internal.feature.enabled">
|
|
56 |
<echo>Running run-target-disabled</echo>
|
|
57 |
</target>
|
|
58 |
|
|
59 |
<target name="run-target-enabled" if="feature.enabled">
|
|
60 |
<echo>Running run-target-enabled</echo>
|
|
61 |
</target>
|
|
62 |
|
|
63 |
<target name="run-with-old-flag-enabled" if="internal.old.enabled">
|
|
64 |
<echo>Running run-with-old-flag-enabled</echo>
|
|
65 |
</target>
|
|
66 |
|
|
67 |
<target name="run-with-new-flag-enabled" if="internal.new.enabled">
|
|
68 |
<echo>Running run-with-new-flag-enabled</echo>
|
|
69 |
</target>
|
|
70 |
|
|
71 |
<target name="run-with-both-enabled" if="internal.both.enabled">
|
|
72 |
<echo>Running run-with-both-enabled</echo>
|
|
73 |
</target>
|
|
74 |
|
|
75 |
<target name="run-with-unless-enabled" unless="skip.ats.sending">
|
|
76 |
<echo>Running run-with-unless-enabled</echo>
|
|
77 |
</target>
|
|
78 |
|
|
79 |
<target name="run-with-unless-internal-enabled" unless="internal.old.enabled">
|
|
80 |
<echo>Running run-with-unless-internal-enabled</echo>
|
|
81 |
</target>
|
|
82 |
|
|
83 |
|
|
84 |
|
|
85 |
</project>
|