ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Purcell" <>
Subject RE: .war file question
Date Mon, 01 Nov 2004 22:32:39 GMT
Thanks again for the response.

As far as the index.html file, I am pulling one from cvs and was using that one explicitely,
instead of having <war> create one. This is my first ant script and I am just getting
underway. Any info is always appreciated.


-----Original Message-----
From: Wendy Smoak []
Sent: Monday, November 01, 2004 4:22 PM
To: Ant Users List
Subject: RE: .war file question

> From: Scott Purcell [] 
> I am creating a war application using ant and ran into a 
> perculiar problem. I need to create a 'empty' dir in the 
> webapp and I cannot figure out how to do it? Does anyone know 
> if I can achieve this, or not.

I think that if you make the directory at
${build.dir}/src/application/tmpfolder before executing the <war> task,
then include everything in the 'application' directory, it will pick up
both your index.html file and the empty directory.

You can use <mkdir> to create the directory if necessary.

Is there anything else in the 'application' directory?  (Is there some
reason you're naming the index.html file specifically?)

I gave up using the <war> task and just keep the directory structure
exactly as it should be for a webapp, then use the <zip> task to create
the .war file:

Wendy Smoak

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message