Skip to content

Commit

Permalink
[test] jdi: fix AutomatedSuite dir classpath
Browse files Browse the repository at this point in the history
Do not add "bin" to classpath for "Eclipse-BundleShape: dir" in
MANIFEST.MF
  • Loading branch information
EcljpseB0T authored and jukzi committed Sep 18, 2024
1 parent f6bca2c commit 11d1f99
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ public AbstractJDITest(String name) {
try {
String cp = MainClass.class.getProtectionDomain().getCodeSource().getLocation().toURI().getPath();
System.out.println("MainClass path=" + cp);
if (new File(cp).isDirectory() && !cp.endsWith(File.separatorChar + "bin" + File.separatorChar)) {
if (new File(cp).isDirectory() && !cp.endsWith(File.separatorChar + "bin" + File.separatorChar)
&& new File(cp + "bin" + File.separatorChar).isDirectory()) {
cp += "bin" + File.separatorChar;
}
fClassPath = new File(cp).getAbsolutePath();
Expand Down

0 comments on commit 11d1f99

Please sign in to comment.