ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Gerlach <>
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?

<target name="Test">
	<if property="${property_value}" 
		<delete ... >

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
    fax:   +49 (0)221 250-1588
    plan_b media ag               Coloneum
    Butzweilerstr. 255            D-50829 Cologne, Germany

View raw message