how to set source and build-folders other than default [message #76711] |
Fri, 10 June 2005 17:59 |
Eclipse User |
|
|
|
Originally posted by: lehmann-mapson.cnm.de
Hello,
I'm using eclipse for a JSP/Servlet project. For this, I'd like to have
all sources in ./WEB-INF/src and all classes in ./WEB-INF/classes. I
added a new source-folder in the properties, so eclipse is building
java-files in ./WEB-INF/src correctly. The problem is, that it neither
builds them to ./WEB-INF/src nor to ./WEB-INF/classes, but to the base
folder .
How can I change this behaviour? I tried to change output folder, but
then eclipse copies the whole base folder to another folder. Thats not
what I thought it to do.
Regards
Marten
|
|
|
Re: how to set source and build-folders other than default [message #76760 is a reply to message #76711] |
Fri, 10 June 2005 21:13 |
Eclipse User |
|
|
|
Originally posted by: eclipse.rizzoweb.com
Marten Lehmann wrote:
> Hello,
>
> I'm using eclipse for a JSP/Servlet project. For this, I'd like to have
> all sources in ./WEB-INF/src and all classes in ./WEB-INF/classes. I
> added a new source-folder in the properties, so eclipse is building
> java-files in ./WEB-INF/src correctly. The problem is, that it neither
> builds them to ./WEB-INF/src nor to ./WEB-INF/classes, but to the base
> folder .
> How can I change this behaviour? I tried to change output folder, but
> then eclipse copies the whole base folder to another folder. Thats not
> what I thought it to do.
What you may have overlooked is that the root folder of your Project
(what you call the base?) is still set as a source location. Since your
source is elsewhere, you need to remove the root folder from the list of
source locations.
Keep in mind that the Eclipse builder will go through all Source
Locations, compile any .java files it finds and copy any non-.java files
to the output location. That is most likely what you're seeing.
HTH,
Eric
|
|
|
Re: how to set source and build-folders other than default [message #76792 is a reply to message #76760] |
Fri, 10 June 2005 21:46 |
Eclipse User |
|
|
|
Originally posted by: lehmann-mapson.cnm.de
Hello,
> What you may have overlooked is that the root folder of your Project
> (what you call the base?) is still set as a source location. Since your
> source is elsewhere, you need to remove the root folder from the list of
> source locations.
thanks, it worked! Before I got strange errors like "output folder must
not be nested" or so...
Regards
Marten
|
|
|
Re: how to set source and build-folders other than default [message #76807 is a reply to message #76792] |
Fri, 10 June 2005 21:58 |
Eclipse User |
|
|
|
Originally posted by: lehmann-mapson.cnm.de
Well,
just another question: I set WEB-INF/classes as output-folder now and
classes are build to this folder indead. But why isn't this folder shown
in the Package Explorer window any longer? I can see WEB-INF/lib
WEB-INF/tmp and WEB-INF/work (created by the web-webcontainer), but not
WEB-INF/classes.
Regards
Marten
|
|
|
Re: how to set source and build-folders other than default [message #78165 is a reply to message #76807] |
Wed, 15 June 2005 15:17 |
Eclipse User |
|
|
|
Originally posted by: eclipse.rizzoweb.com
Marten Lehmann wrote:
> Well,
>
> just another question: I set WEB-INF/classes as output-folder now and
> classes are build to this folder indead. But why isn't this folder shown
> in the Package Explorer window any longer? I can see WEB-INF/lib
> WEB-INF/tmp and WEB-INF/work (created by the web-webcontainer), but not
> WEB-INF/classes.
The Package Explorer view just does not show the build output directory.
I've never seen a way to get it to do so (but that doesn't mean it is
impossible, just that I don't know how).
Is there a particular reason you want to browse the build output
location? There is no need to be looking at .class files (in general),
so I'm curious if whatever you're trying to do might be accomplished
some other way...
HTH,
Eric
|
|
|
Powered by
FUDForum. Page generated in 0.07488 seconds