Community
Participate
Working Groups
Under project, run, then classpath tab. From the userclasses subtab, Unselect use default class path and click advanced. Use the Add folders radiobox and select a folder that has subfolders. Now add another except this time try to add a sub folder of the folder you just added. The folder you just added no longer appears in this list making this impossible. Workaround is to first add the sub folder then add the parent folder.
*** Bug 25934 has been marked as a duplicate of this bug. ***
In the JDT-UI build path dialog that's the indended behaviour as this would result in a nesting conflict. DOn't know if this restriction also applies to the launching classpath.
Yes - this is the intention. A subfolder cannot be added as it implies an overlapping set of package fragment roots, which is not allowed. However, we did not account for the reverse scenario - i.e. adding a subfolder followed by a parent. The question is, should enfore this restriction? Needs investigation.
Alright well let me give you my scenario to make it a little more clear why I would do this. I have a directory called config. This directory has log4j.properties and other property files which must be in the path. Now sometimes I run my app in debug mode in which case the production log4j.properties which is in the config directory is unsuitable, however, the rest of the config files in that directory are still suitable. So what I do is I want a standalone log4j.properties file in the path before the config one. I created a standalone dir under the config dir like /config/standalone. Now to make this work on my debug apps I put this in the classpath first /config/standalone;/config such that the log4j of the standalone is found first. When I read your messages it seems you only consider classes in the classpath whereas the classpath holds both classes and in this case property files.
It appears that running from "java" from the command line supports this, so there is no reason why we should have this restriction.
Fixed. Adding subfolders is now allowed.
Please verify, Joe S.
Verified.