645
|
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="helium-antlib-blocks-demo" xmlns:hlm="http://www.nokia.com/helium">
|
|
24 |
<description>Helium Antlib blocks demo.</description>
|
|
25 |
|
|
26 |
<taskdef resource="com/nokia/helium/blocks/ant/antlib.xml" uri="http://www.nokia.com/helium" />
|
|
27 |
<import file="../../../companyproperties.ant.xml" />
|
|
28 |
|
|
29 |
<target name="demo">
|
|
30 |
<mkdir dir="./workspace-demo" />
|
|
31 |
<hlm:blocksAddWorkspace name="unittest-addworkspace" dir="./workspace-demo" wsidproperty="wsid" verbose="true" />
|
|
32 |
<echo>wsid: ${wsid}</echo>
|
|
33 |
<condition property="name.exists" else="false">
|
|
34 |
<hlm:blocksWorkspaceExists name="unittest-addworkspace" />
|
|
35 |
</condition>
|
|
36 |
<echo>unittest-addworkspace exists: ${name.exists}</echo>
|
|
37 |
<condition property="dir.exists" else="false">
|
|
38 |
<hlm:blocksWorkspaceExists dir="workspace-demo" />
|
|
39 |
</condition>
|
|
40 |
<echo>workspace-demo dir exists: ${dir.exists}</echo>
|
|
41 |
<hlm:blocksRemoveWorkspace wsid="${wsid}" verbose="true" />
|
|
42 |
</target>
|
|
43 |
|
|
44 |
</project>
|