How to suppress compile by source and/or project? [message #66152] |
Sat, 07 June 2003 01:12  |
Eclipse User |
|
|
|
This is all with
Version: 2.1.0
Build id: 200303272130
Two situations. One is a project that I open for reference only. I do
this fairly frequently, usually to look at the source for some library
that I happen to be using. I don't need to compile it, in some cases it
won't compile because something critical is missing, but I can't find a
way to tell Eclipse not to compile one project when it builds everything.
I would have thought that the project depend list controls what got
compiled when a project is compiled, but it still seems like everything is
compiled every time I save any resource file.
Second is similar. One project source folder has a subdirectory of old
java source files,most of which no longer compile. How can I tell
Eclipse to not try to compile them?
|
|
|
Re: How to suppress compile by source and/or project? [message #67891 is a reply to message #66152] |
Mon, 09 June 2003 08:51  |
Eclipse User |
|
|
|
Originally posted by: chaves.no-spam.inf.ufsc.br.no-spam
For your first problem, your referenced project should not have a source
folder (project properties -> java build path -> source -> "source folders
on build path" should be empty). Instead, this project's code will be
provided by JARs/ZIPs/bin directory (project properties -> java build path
-> libraries). For each library, you can expand its node to attach sources
(so you can read them when debugging and searching).
For your second problem, select the source folder (again in project
properties -> java build path -> source -> "source folder on build path")
that contains the problematic source files and exclude them using an
exclusion filter (expand its node, select "Exclusion Filter", edit).
HTH,
Rafael
|
|
|
Powered by
FUDForum. Page generated in 0.04502 seconds