ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Gerlach <gerl...@planb-media.de>
Subject If-statements in ant
Date Tue, 03 Jul 2001 09:57:19 GMT
Hi there

is it possible to use if-statements in ant's build.xml-Files?
Like:

<target name="Test">
	<if property="${property_value}" 
	    condition="EQUAL" 
	    value="${property_value}">
		<delete ... >
		</delete>
	</if>
</target>

Espacially, i wan't to copy a file only when it not
exists. I want to copy a config_template.xml-File to 
a directory every time i make a deploy, but i want to 
copy the config_template.xml to config.xml only if 
there is NOT a previous config.xml. How to do that ?

Thanks in advance
	M. Gerlach
-- 
_______________________________________________________________

    Martin Gerlach                Distributed Systems
    
    phone: +49 (0)221 250-1046    mailto:gerlach@imigo.de
    fax:   +49 (0)221 250-1588    http://www.planb-media.de
    
    plan_b media ag               Coloneum
    Butzweilerstr. 255            D-50829 Cologne, Germany
_______________________________________________________________

Mime
View raw message