buildframework/helium/sf/java/diamonds/tests/antunit/run-scenario.ant.xml
changeset 587 85df38eb4012
child 588 c7c26511138f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/buildframework/helium/sf/java/diamonds/tests/antunit/run-scenario.ant.xml	Tue Apr 27 08:33:08 2010 +0300
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- 
+============================================================================ 
+Name        : test_signaltask.ant.xml 
+Part of     : Helium AntLib
+
+Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+All rights reserved.
+This component and the accompanying materials are made available
+under the terms of the License "Eclipse Public License v1.0"
+which accompanies this distribution, and is available
+at the URL "http://www.eclipse.org/legal/epl-v10.html".
+
+Initial Contributors:
+Nokia Corporation - initial contribution.
+
+Contributors:
+
+Description:
+
+============================================================================
+-->
+<project name="run-scenario" >
+    <description>Helium Antlib logger macro.</description>
+    <property environment="env" />
+    
+    <target name="setUp">    
+        <tempfile property="temp.dir" suffix=".dir" />
+        <mkdir dir="${temp.dir}" />
+    </target>
+    
+    <target name="tearDown">
+        <delete dir="${temp.dir}" />
+    </target>
+    
+    <macrodef name="runScenario">
+        <attribute name="scenario" />
+        <attribute name="target" />
+        <sequential>
+            <exec osfamily="windows" executable="cmd" dir="${file.run-scenario}/../../scenarii/@{scenario}" failonerror="true">
+                <env key="ANT_ARGS" value="${env.ANT_ARGS}" />
+                <arg line="/c ..\build.bat" />
+                <arg line="@{target}" />
+                <arg value="-Dant.executor.class=com.nokia.helium.core.ant.HeliumExecutor" />
+                <arg value="-Dtemp.dir=${temp.dir}" />
+            </exec>
+            <exec osfamily="unix" executable="../bld.sh" dir="${file.run-scenario}/../../scenarii/@{scenario}" failonerror="true">
+                <env key="ANT_ARGS" value="${env.ANT_ARGS}" />
+                <arg line="@{target}" />
+                <arg value="-Dant.executor.class=com.nokia.helium.core.ant.HeliumExecutor" />
+                <arg value="-Dtemp.dir=${temp.dir}" />
+            </exec>
+        </sequential>
+    </macrodef>
+
+</project>