ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeremy Nix" <Jeremy....@sfsltd.com>
Subject RE: Including empty directories in a WAR task
Date Wed, 05 Nov 2003 16:47:41 GMT
I'm using ANT 1.5.4 (included in Eclipse M4).  The following is the task
that I'm calling to generate my WAR.
..................
<target name="war" depends="compile.java" description="build the
distribution (war) file" >
	<war destfile="${dist.dir}/MYWAR.war" filesonly="false"
			webxml="${basedir}/descriptors/WEB-INF/web.xml">
		<fileset dir="${basedir}/Java/" casesensitive="false">
			<!--this directory has a set of empty
directories-->
			<include name="emptydir/**"/>
		</fileset>
		<lib dir="${lib.dir}" casesensitive="false">
			<include name="*.jar"/>
		</lib>
		<classes dir="${build.dir}" casesensitive="false">
			<include name="**"/>
		</classes>
	</war>
</target>
.........................


_________________________________
Jeremy Nix
Southwest Financial Services, LTD.
Jeremy.Nix@sfsltd.com
(513) 621-6699 ext.1158



-----Original Message-----
From: Stefan Bodewig [mailto:bodewig@apache.org] 
Sent: Wednesday, November 05, 2003 11:06 AM
To: dev@ant.apache.org
Subject: Re: Including empty directories in a WAR task


On Wed, 5 Nov 2003, Jeremy Nix <Jeremy.Nix@sfsltd.com> wrote:

> I'm having troubles figuring out how to include empty directories in 
> the WAR task (and others for that matter).

There have been problems with this in prior versions, so make sure you
are at least using Ant 1.5.3 before going any further.

Then you obviously must not set the filesonly attribute to true.

And then you include pattern must match the directory you want to
include.

If this is the case, please show us a snippet of how you try to archive
the directories and indicate where Ant is supposed to find the empty
directory.

Stefan

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


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


Mime
View raw message