buildframework/helium/sf/java/core/tests/scenarii/config_report/build.xml
changeset 645 b8d81fa19e7d
equal deleted inserted replaced
643:27cf35f95864 645:b8d81fa19e7d
       
     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" xmlns:ac="antlib:net.sf.antcontrib">
       
    24     <description>Helium Antlib logger unittests.</description>
       
    25     
       
    26     <property name="feature.enabled" value="true"/>
       
    27     <property name="enable.feature" value="true"/>
       
    28     <property name="internal.abc.enabled" value="true"/>
       
    29     <property name="internal.bla.enabled" value="false"/>
       
    30     <property name="skip.ats.sending" value="t"/>
       
    31     <property name="test.prop.bool.val" value="t"/>
       
    32     <property name="test.comment.prop.bool.val" value="yes"/>
       
    33     <property name="test.build.number" value="123aa"/>
       
    34     <property name="test.build.id" value="test-build-id-1"/>
       
    35     <property name="test.bn" value="123"/>
       
    36     <property name="test.prop.float.1" value="6.5"/>
       
    37     <property name="test.prop.float.2" value="1.5a"/>
       
    38     <property name="test.prop.int.3" value="1.8"/>
       
    39     
       
    40     <import file="feature/feature.ant.xml"/>
       
    41     
       
    42     <condition property="internal.old.enabled">
       
    43         <or>
       
    44             <istrue value="${xyz.enabled}"/>
       
    45             <isset property="enable.feature"/>
       
    46         </or>
       
    47     </condition>
       
    48     
       
    49     <condition property="internal.new.enabled">
       
    50         <or>
       
    51             <istrue value="${feature.enabled}"/>
       
    52             <isset property="abc.feature"/>
       
    53         </or>
       
    54     </condition>
       
    55     
       
    56     <condition property="internal.both.enabled">
       
    57         <or>
       
    58             <istrue value="${feature.enabled}"/>
       
    59             <isset property="enable.feature"/>
       
    60         </or>
       
    61     </condition>
       
    62     
       
    63     <target name="run-target-disabled" if="internal.feature.enabled">
       
    64         <echo>Running run-target-disabled</echo>
       
    65     </target>
       
    66     
       
    67     <target name="run-target-enabled" if="feature.enabled">
       
    68         <echo>Running run-target-enabled</echo>
       
    69     </target>
       
    70     
       
    71     <target name="run-with-old-flag-enabled" if="internal.old.enabled">
       
    72         <echo>Running run-with-old-flag-enabled</echo>
       
    73     </target>
       
    74     
       
    75     <target name="run-with-new-flag-enabled" if="internal.new.enabled">
       
    76         <echo>Running run-with-new-flag-enabled</echo>
       
    77     </target>
       
    78     
       
    79     <target name="run-with-both-enabled" if="internal.both.enabled">
       
    80         <echo>Running run-with-both-enabled</echo>
       
    81     </target>
       
    82     
       
    83     <target name="run-with-unless-enabled" unless="skip.ats.sending">
       
    84         <echo>Running run-with-unless-enabled</echo>
       
    85     </target>
       
    86     
       
    87     <target name="run-with-unless-internal-enabled" unless="internal.old.enabled">
       
    88         <echo>Running run-with-unless-internal-enabled</echo>
       
    89     </target>
       
    90     
       
    91     <target name="antcall-deprecated-target" if="test.bool.val">
       
    92         <echo>Running antcall-deprecated-target</echo>
       
    93         <antcall target="a-deprecated-target"/>
       
    94     </target> 
       
    95 
       
    96     <target name="runtarget-deprecated-target">
       
    97         <echo>Running runtarget-deprecated-target</echo>
       
    98         <ac:runtarget target="b-deprecated-target"/>
       
    99     </target> 
       
   100 
       
   101     <target name="depends-deprecated-target" depends="c-deprecated-target">
       
   102         <echo>Running depends-deprecated-target</echo>
       
   103     </target> 
       
   104 
       
   105     <target name="run-private-target-as-antcall">
       
   106         <echo>Running run-private-target-as-antcall</echo>
       
   107         <antcall target="a-private-target"/>
       
   108     </target>
       
   109 
       
   110     <target name="run-private-target-as-runtarget">
       
   111         <echo>Running run-private-target-as-runtarget</echo>
       
   112         <ac:runtarget target="b-private-target"/>
       
   113     </target>
       
   114     
       
   115     <target name="run-private-target-as-depends" depends="c-private-target">
       
   116         <echo>Running run-private-target-as-depends</echo>
       
   117     </target>
       
   118 
       
   119 </project>