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
Post a Comment