ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Pepersack" <RPepers...@mdinsurance.state.md.us>
Subject Check to See If Directory Exists
Date Tue, 10 Oct 2006 20:24:09 GMT
Hi all,

I need to check to see if a directory exists, and if not, then create
the directory.  But, if the directory already exists, then leave it
alone, because it may already contain some important files.  I have more
than a dozen directories to check for, and I would like to find a way to
do this that's less verbose than a bunch of <property> and <available>
tasks.  Does anyone know how?

Here's the equivalent command from a batch file:

if not exist c:\myapp mkdir c:\myapp

Thanks,

Bob

Robert Pepersack
Senior Lead Developer
Maryland Insurance Administration
410-468-2054

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message