No idea if ant can do this, but i tend to put a 0 byte 'ignoreme' file in
the directory.  This stops these problems happening with more than just ant!

Daniel.

> -----Original Message-----
> From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]
> Sent: 23 November 2004 18:31
> To: [EMAIL PROTECTED]
> Subject: [OT] Ant question
>
>
> Hi
> I have a ant script which creates a war file, every
> thing works well but it does not copy empty directory
> in the war file, i need one directory which is empty,
> it is under WEB-INF and at run time xml files are
> created in it,
> My web application expects this empty folder and
> crashes if not found,
> How do i say in ant script to copy empty directory
> also.
> This is my ant script
> <target name="all" depends="compile,createjar"
> description="create deployable war file">
>  <war basedir="${webroot}" destfile ="download.war"
> webxml="${webroot}/WEB-INF/web.xml"
> excludes="**/*.properties,**/*.class" update="true" >
>
>        </war>
>     </target>
>
> Ashish
>
>
>
> __________________________________
> Do you Yahoo!?
> Meet the all-new My Yahoo! - Try it today!
> http://my.yahoo.com
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to