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

List<T>().Add problem C# -

Javascript natural sort array/object and maintain index association -