Summary: | Java source files shouldn't show errors when in src dir, but not java resource | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Rich Dougherty <rich> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | RESOLVED WORKSFORME | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 2.0 | ||
Target Milestone: | 2.1 M2 | ||
Hardware: | PC | ||
OS: | Linux-Motif | ||
Whiteboard: |
Description
Rich Dougherty
2002-04-19 01:41:43 EDT
If you turn off the default filter in the Java perpsective (see the little triangle at the top of the package view) you would see them. Now for the behavior of the Java builder with respect to such folder names, I am not sure I do not want these to be flagged as being located in wrong package name. Usually this scenario is rather a mistake. Will defer, and may revisit post 2.0 if willing to introduce some filters on Java resources for building... Deferring Will reconsider post 2.0 Thanks for the pointer on filtering resources in the Package view. I was a bit confused about why the packages were being built if they couldn't be "seen" by Eclipse. This makes Eclipse's behaviour fine, in my view. Also, I think you are right that it should be an error to place Java files inside packages with dots in their name. Therefore I think Eclipse is correct to report the error. As an enhancement, you could consider mentioning the illegal directory name in the error message. For example, "Java file cannot be compiled in a directory with a dot in its name". I wouldn't consider this a big issue, however. Finally, my problem with Java files inside the .svn directory has been resolved. As of Subversion 0.14.3 the locally cached resources have ".svn-work" or ".svn-base" appended to their names. For example, a locally cached Java file might be stored under the filename "Class.java.svn-work". This works around the difficulties I had with the Eclipse builder. In conclusion, I am happy with the Eclipse's behaviour. Unless you wish to make either of the enhancements that have been mentioned in this report (filtering resources for the Java builder, changing the error message) you may wish to close it. Excellent. Note also that you can tell the JavaBuilder to ignore the *.svn-* files alltogether. This means it won't attempt to copy them as attached resources (as it usually does). See the preference: Window>Preferences>Java>Compiler>Other>Filtered resources Also, for the dot package reporting, you currently will get an error message indicating that the package name doesn't match the expectation. The message isn't perfect in this scenario, but at least you get a notification that something is wrong with this very file around the package name. Closing following your advice Reopening to close properly. Closing |