Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Importing war
Importing war [message #231141] Fri, 08 May 2009 07:31 Go to next message
breako  is currently offline breako
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] Mon, 11 May 2009 21:36 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2133
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 WTP, IBM
Re: Importing war [message #231454 is a reply to message #231204] Sun, 17 May 2009 06:38 Go to previous message
breako  is currently offline breako
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: Sat Apr 19 08:58:48 EDT 2014

Powered by FUDForum. Page generated in 0.05534 seconds