Determining if a directory already exists using SVN ANT -


i'm looking create directory using svn ant, if directory not exist (using mkdir nested task svn ant appears fail if specify directory exists).

is there isexists flag or of ilk can use here? or else can use detect existing directories on svn repository before continue creating directories via ant script?

any thoughts on appreciated.

cheers,

stuart

you want use svnexists condition. allows (using ant-contrib)

<if>     <not><svnexists target="..."/></not>     <then>         <svn>             <mkdir url="..." message="creating directory" />         </svn>     </then> </if> 

note: intermediate directories must exist when using mkdir.


Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -