Community
Participate
Working Groups
Created attachment 93619 [details] Patch While working on bug 221859, I made some changes to TargetPlatformHelper.stripPathInformation, allowing the helper method to be used in multiple locations. When making the changes, I made some test cases. I fleshed out those test cases into a unit test. Running my tests, I found a couple of problems including a possible NPE. Changes I made to stripPathInformation, please let me know if these are not valid: 1) If the id ends with '.jar' I remove it since it is not part of the id. 2) If the path is absolute, but the file does not exist (can't get the symbolic name), the method will just use the last segment (we already do the same thing for relative paths). Patch with test and changes is attached. More tests for TargetPlatformHelper should be added over time.
thanks, will get in for M7
thank you Curtis, this will be in M7 I love people who write test cases.
Created attachment 94154 [details] mylyn/context/zip