587
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
|
2 |
<!--
|
|
3 |
============================================================================
|
|
4 |
Name : test_signaltask.ant.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="run-scenario" >
|
|
24 |
<description>Helium Antlib logger macro.</description>
|
|
25 |
<property environment="env" />
|
|
26 |
|
|
27 |
<target name="setUp">
|
|
28 |
<tempfile property="temp.dir" suffix=".dir" />
|
|
29 |
<mkdir dir="${temp.dir}" />
|
|
30 |
</target>
|
|
31 |
|
|
32 |
<target name="tearDown">
|
|
33 |
<delete dir="${temp.dir}" />
|
|
34 |
</target>
|
|
35 |
|
|
36 |
<macrodef name="runScenario">
|
|
37 |
<attribute name="scenario" />
|
|
38 |
<attribute name="target" />
|
|
39 |
<sequential>
|
|
40 |
<exec osfamily="windows" executable="cmd" dir="${file.run-scenario}/../../scenarii/@{scenario}" failonerror="true">
|
|
41 |
<env key="ANT_ARGS" value="${env.ANT_ARGS}" />
|
|
42 |
<arg line="/c ..\build.bat" />
|
|
43 |
<arg value="@{target}" />
|
|
44 |
<arg value="-Dant.executor.class=com.nokia.helium.core.ant.HeliumExecutor" />
|
|
45 |
<arg value="-Dtemp.dir=${temp.dir}" />
|
|
46 |
</exec>
|
|
47 |
<exec osfamily="unix" executable="../bld.sh" dir="${file.run-scenario}/../../scenarii/@{scenario}" failonerror="true">
|
|
48 |
<env key="ANT_ARGS" value="${env.ANT_ARGS}" />
|
|
49 |
<arg line="@{target}" />
|
|
50 |
<arg value="-Dant.executor.class=com.nokia.helium.core.ant.HeliumExecutor" />
|
|
51 |
<arg value="-Dtemp.dir=${temp.dir}" />
|
|
52 |
</exec>
|
|
53 |
</sequential>
|
|
54 |
</macrodef>
|
|
55 |
|
|
56 |
</project>
|