Community
Participate
Working Groups
I have a workspace with a JUnit project. Now I am using the method on IJavaProject.findPackageFragment to find a package fragment. If I search for a package fragement that contains to the project I have to use a path like this: /JUnit/junit/framework If I search for a package from the rt.jar the path must look like this /java/lang/reflect. If I don't know if the package belongs to a jar or to a project the method is almost "useless". Am I doing something wrong ? NOTES: PM (4/24/2001 3:12:30 PM) Specs say that the package from a jar should be fully qualified, e.g. "c:/jdk/classes.zip/java/lang". Need to check whether our implementation incorrectly allows relative path for jar roots. Seems weird though that relative paths are not the only ones we care about (is this for dealing with multiple identical package fragments ?). JW (6/4/01 3:47:17 PM) We should not be introducing changes here at this point. If the API is problematic, document as likely to change (but no changes for 0.9) DA (6/20/01 12:29:16 PM) PR reactived after build 0.125.
Closing
Closing the PR doesn't really help me. I still need a method that works for both packages in source folders and in Jars. Are you going to add another method that does the job ?
#findPackageFragment is using a full path. For looking up elements which a project relative path, you should use: #findElement.
Thanks and Ok to close
PRODUCT VERSION: 0.033