Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » How to make compiler ignore certain subprojects?
How to make compiler ignore certain subprojects? [message #251975] Mon, 10 March 2008 17:34 Go to next message
Eclipse UserFriend
I work on a large Maven1-based project in Eclipse. We build the deployment
package on the command line. I don't use the build in Eclipse, except for
fixing syntax errors. When I'm working on the project, I only ever care
about a small handful of subprojects. I've tried to configure Eclipse so
that it will only compile the subprojects I care about, by setting the
"Exclude" property on each source directory that I don't care about, to
"*.java". Unfortunately, this doesn't seem to make a difference. It
continues to try to compile subprojects that I've tried to exclude.

Is there something else I have to do to make it not compile the
subprojects I don't care about?
Re: How to make compiler ignore certain subprojects? [message #251983 is a reply to message #251975] Tue, 11 March 2008 08:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

David Karr wrote:
> I work on a large Maven1-based project in Eclipse. We build the
> deployment package on the command line. I don't use the build in
> Eclipse, except for fixing syntax errors. When I'm working on the
> project, I only ever care about a small handful of subprojects. I've
> tried to configure Eclipse so that it will only compile the subprojects
> I care about, by setting the "Exclude" property on each source directory
> that I don't care about, to "*.java". Unfortunately, this doesn't seem
> to make a difference. It continues to try to compile subprojects that
> I've tried to exclude.
>
> Is there something else I have to do to make it not compile the
> subprojects I don't care about?
>

When editing the Source Folder exclusions, use the Add Multiple...
button and you can select an entire branch of the source tree to exclude.

Hope this helps,
Eric
Re: How to make compiler ignore certain subprojects? [message #252005 is a reply to message #251983] Tue, 11 March 2008 16:58 Go to previous messageGo to next message
Eclipse UserFriend
I'm afraid that doesn't help.

Each subproject has its own source tree. I'm trying to exclude the entire
source tree of several subprojects. In the source entry for a subproject,
I add "*.java" to the exclude list. This doesn't appear to make any
difference. When the project is rebuilt, it still tries to recompile
source files in that subproject. Using "Add Multiple" only allows me to
select multiple directories in the source tree for the subproject. With
this, I would select "com" and be done, but that's the same as "*.java",
which didn't make any difference.
Re: How to make compiler ignore certain subprojects? [message #252025 is a reply to message #252005] Wed, 12 March 2008 09:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

David Karr wrote:
> I'm afraid that doesn't help.
>
> Each subproject has its own source tree. I'm trying to exclude the
> entire source tree of several subprojects. In the source entry for a
> subproject, I add "*.java" to the exclude list. This doesn't appear to
> make any difference. When the project is rebuilt, it still tries to
> recompile source files in that subproject. Using "Add Multiple" only
> allows me to select multiple directories in the source tree for the
> subproject. With this, I would select "com" and be done, but that's the
> same as "*.java", which didn't make any difference.
>

Did you actually try it? Using com/ from the Add Multiple... dialog and
specifying *.java are NOT semantically the same. I'm pretty sure *.java
will only exclude .java files that are at the root of the source
location; that is not a recursive or "deep" specification. To do it that
way you'd probably have to use something like **/*.java, as in the
examples in the dialog.

Hope this helps,
Eric
Re: How to make compiler ignore certain subprojects? [message #252033 is a reply to message #252025] Fri, 14 March 2008 11:41 Go to previous message
Eclipse UserFriend
No, I didn't try it, because I had no idea the expression was used like
that. If I had actually read the info in that dialog, I would have used
"**/*.java" as you describe and I would have never asked this question :) .

Thanks.
Previous Topic:Query on tooltip functionality on F2
Next Topic:Disappearing Text with Tabs & Quotes?
Goto Forum:
  


Current Time: Sat Apr 26 21:18:33 EDT 2025

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

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

Back to the top