ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dimitris Mouchritsas <>
Subject Checking for and properties upon initialization
Date Wed, 21 May 2008 12:45:09 GMT
Hi everyone.
I'm trying to create a sample project to test if the 
file exists and if the required properties are set
upon initialization. But I'm not quite sure if I use correctly the 
condition task. This is what I've come up with right now:

<?xml version="1.0" encoding="utf-8"?>
<project name="TestProject" default="init">

    <target name="check-required-properties"
            description="Checks for required properties">

                    <available file="" />
                    <isset property="server.path" />


    <target name="init"
            description="Check build properties and initialize directory 
        <tstamp />

Without the file the build process succeeds. Why?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message