buildframework/helium/external/helium-antlib/test-macros.ant.xml
changeset 217 0f5e3a7fb6af
parent 181 59bb7c4d6172
child 307 22ecbfc20eb4
child 584 56dd7656a965
child 587 85df38eb4012
equal deleted inserted replaced
181:59bb7c4d6172 217:0f5e3a7fb6af
     1 <?xml version="1.0"?>
       
     2 <!-- 
       
     3 ============================================================================ 
       
     4 Name        : test-macros.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-macros" xmlns:au="org.apache.ant.antunit">
       
    24     <description>Helium Antlib test macro.</description>
       
    25 
       
    26     <taskdef resource="org/apache/ant/antunit/antlib.xml" uri="org.apache.ant.antunit"/>
       
    27 
       
    28     <dirname property="helium.antlib.root.dir" file="${ant.file.test-macros}" />
       
    29     <property name="build.temp.dir" location="${helium.antlib.root.dir}/../build" />
       
    30 
       
    31     <fileset dir="." includes="**/test_*.ant.xml" id="defaut.antunit"/>
       
    32     
       
    33     <macrodef name="antunitModule">
       
    34         <attribute name="name" />
       
    35         <attribute name="filesetid" default="defaut.antunit"/>
       
    36         <sequential>
       
    37             <mkdir dir="${build.temp.dir}/antunit/@{name}" />
       
    38             <au:antunit>
       
    39                 <fileset refid="@{filesetid}" />
       
    40                 <au:plainlistener logLevel="info"/>
       
    41                 <au:xmllistener toDir="${build.temp.dir}/antunit/@{name}"/>
       
    42             </au:antunit>
       
    43         </sequential>
       
    44     </macrodef>
       
    45 
       
    46 </project>