Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Ant WAR/web.xml Problem
Ant WAR/web.xml Problem [message #24094] Thu, 15 May 2003 05:45 Go to next message
Eclipse UserFriend
Originally posted by: news33.calidris.nildram.co.uk

I have recently migrated from NetBeans to Eclipse, and I am trying to
use the old Ant build scripts we have. The project is a WAR file, and
the source code is laid out into etc,lib,src and web directories. The
Ant script takes these files, copies them into the right structure for a
WAR, and packages it. All files in etc are copied with the exception of
web.xml, which is referred to directly in the Ant WAR task.

This works fine from NetBeans, and fine from Ant command line, but
something odd is going on in Eclipse.

I'm getting a warning that the selected WAR includes a web.xml and I
should pass web.xml direct to the WAR task. When I check the WAR, there
is no web.xml file in there at all.

Anyone got any clues?

Cheers,

Tim.
Re: Ant WAR/web.xml Problem [message #24235 is a reply to message #24094] Thu, 15 May 2003 06:11 Go to previous message
Eclipse UserFriend
Originally posted by: hcs33.egon.gyaloglo.hu

Hi,

Do you use Eclipse 2.1 final? In ant 1.5.2 there are a couple of issues with
the war task. Afaik it has been fixed for Ant 1.5.3. You should try to use
an 1.5.1 or 1.5.3 version of ant instead of the version Eclipse provides.
Look at Help-->Workbench User Guide-->Tasks-->Building resources-->Running
Ant buildfiles-->Using a different version of Ant for the how-to.

HTH,
Regards,
Csaba

"Tim Sawyer" <news33@calidris.nildram.co.uk> wrote in message
news:b9vnnb$qsu$1@rogue.oti.com...
> I have recently migrated from NetBeans to Eclipse, and I am trying to
> use the old Ant build scripts we have. The project is a WAR file, and
> the source code is laid out into etc,lib,src and web directories. The
> Ant script takes these files, copies them into the right structure for a
> WAR, and packages it. All files in etc are copied with the exception of
> web.xml, which is referred to directly in the Ant WAR task.
>
> This works fine from NetBeans, and fine from Ant command line, but
> something odd is going on in Eclipse.
>
> I'm getting a warning that the selected WAR includes a web.xml and I
> should pass web.xml direct to the WAR task. When I check the WAR, there
> is no web.xml file in there at all.
>
> Anyone got any clues?
>
> Cheers,
>
> Tim.
>
Previous Topic:BeanShell editor
Next Topic:[Q] org.eclipse.jdt.internal.core.builder.SourceFile in Eclipse 2.1
Goto Forum:
  


Current Time: Fri May 09 00:59:09 EDT 2025

Powered by FUDForum. Page generated in 0.03054 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top