Community
Participate
Working Groups
I would like to request that Eclipse add the ability to conditionally compile the src folder(s). Currently, building a project compiles all java files in a src folder(s). I'd like to add the ability to build a project using only a selected set java files under the src folder (w/o the error icon showing up). It could be implemented by using working sets and the descrictor of what to compile. What do you think?
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.
Daniel: There is already work going on at the platform core level which should 'solve' your problem. Adding this PR as a duplicate of the platform/core PR. *** This bug has been marked as a duplicate of 6664 ***