Summary: | Conditional Compilation | ||
---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Daniel S.V. MacDonald <dsvmd> |
Component: | Resources | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | RESOLVED DUPLICATE | QA Contact: | |
Severity: | enhancement | ||
Priority: | P3 | ||
Version: | 2.0 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: |
Description
Daniel S.V. MacDonald
2002-09-05 17:35:04 EDT
Can you explain when you would like to do this vs. dividing the classes between separate projects and compiling them independently? My reasoning for this request stems from trying to use Eclipse and Together Control Center together. As a consequence for using Together, I have a src folder with the following structure: src/ bfd model_design model_requirements model_user_interface model_test The "bfd" folder is the only folder that contains implementation files. All other folders contain design related files, some of which are java files. In Eclipse, using a "Working Set" I can hide the "model_*" folders from view, but I cannot hide them from the compiler. I request that a feature be added to the Eclipse compiler that recognizes "Working Sets". This way, under Eclipse I can build the entire project without any compiler errors. Although I am specifically experiencing this problem in using Eclipse and TCC together, I believe it may affect using Eclipse with other tools. You're other option is to define 'bfd' as the only source folder and add all the other folders as 'ordinary' folders... not java source folders. Not every folder containing java files has to be a source folder on the classpath. I tried setting may src folder to "src/bfd", but then I get the following error hundreds of times: "The declared package does not match the expected package game." If I have a java file "bfd/Foo.java", then by setting the source folder to "src/bfd" causes the compiler to think there is no package for "Foo.java" instead of "bfd". Is the folder layout fixed? Or can you change it slightly? Can you move the package bfd inside another subfolder of src, so you could set it as the only source folder? Or can you move it outside of src to another toplevel folder, which would then become the only source folder? Yes, the folder layout is fixed. I can't move it. |