Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Importing war
Importing war [message #231141] Fri, 08 May 2009 11:31 Go to next message
breako  is currently offline breako Friend
Messages: 57
Registered: July 2009
Member
Hi,
I import a war into my workspace. In my war I have some .properties files
inthe build/classes directory.
Eclipse puts them into JavaResources:/src.

Why?

This is causing me problems. When I start the war, it gives out about not
being able to find one of the .properties files?

Any help greatly appreciated.
Re: Importing war [message #231204 is a reply to message #231141] Tue, 12 May 2009 01:36 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

breako wrote:
> Hi,
> I import a war into my workspace. In my war I have some .properties
> files inthe build/classes directory. Eclipse puts them into
> JavaResources:/src.
>
> Why?
>
> This is causing me problems. When I start the war, it gives out about
> not being able to find one of the .properties files?
>
> Any help greatly appreciated.

"Java Resources" is an organizational node specific to the UI in the
Project Explorer, it's not literally the name of a directory on
disk. The Navigator view will show the actual layout of your files,
which might help you find out why the file's not being found at runtime.

--
---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Importing war [message #231454 is a reply to message #231204] Sun, 17 May 2009 10:38 Go to previous message
breako  is currently offline breako Friend
Messages: 57
Registered: July 2009
Member
Thanks for that Nitin. If we could just forget about the issue of the
file not being found and I could just ask you a question on the
organisational structure.

When I import a war, Eclipse creates the directories /src/ and
/WebContent/ under my project and puts .properties files in /src/ and JSPs
in /WebContent/.

I can see this in the navigator view and in my windows explorer.

I am wondering is there anyway I change how eclipse decides to put what
files where when unpacking a war?

Thanks.
Previous Topic:Problem with WTP Editor and validation
Next Topic:Building Working Set
Goto Forum:
  


Current Time: Tue Apr 23 14:28:40 GMT 2024

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

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

Back to the top