Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[test] jdi: fix .jar ClassPath for I-Build #496

Merged
merged 1 commit into from
Sep 16, 2024
Merged

Conversation

jukzi
Copy link
Contributor

@jukzi jukzi commented Sep 16, 2024

No description provided.

cp += "bin/" + File.separatorChar;
}
fClassPath = new File(cp).getAbsolutePath();
} catch (URISyntaxException e) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, we need the name of the jar, not of any file inside. The proposed solution is basically a copy paste of org.eclipse.test.internal.AwtScreenshot.dumpAwtScreenshot(String). However i have not tested it and would like to just let it try on i-build

@jukzi jukzi merged commit 53b619b into eclipse-jdt:master Sep 16, 2024
10 checks passed
@jukzi jukzi deleted the jar_path branch September 16, 2024 15:26
@jukzi
Copy link
Contributor Author

jukzi commented Sep 17, 2024

this did not help. it logged (no jar but wrong path!):

MainClass 
       path=/Users/genie.releng/workspace/AutomatedTests/ep434I-unit-mac64-java17/workarea/I20240916-1800/eclipse-testing/test-eclipse/Eclipse.app/Contents/Eclipse/plugins/org.eclipse.jdt.debug.jdi.tests_1.1.100.v20240916-1525/
launched with pid=32296: /Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home/bin/java

 -classpath /Users/genie.releng/workspace/AutomatedTests/ep434I-unit-mac64-java17/workarea/I20240916-1800/eclipse-testing/test-eclipse/Eclipse.app/Contents/Eclipse/./bin -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=9900,suspend=y,server=y org.eclipse.debug.jdi.tests.program.MainClass

https://download.eclipse.org/eclipse/downloads/drops4/I20240916-1800/testresults/ep434I-unit-mac64-java17_macosx.cocoa.x86_64_17/org.eclipse.debug.jdi.tests.AutomatedSuite.txt

interestlingly the std.err is collected in a total different file:
https://download.eclipse.org/eclipse/downloads/drops4/I20240914-1800/testresults/consolelogs/ep434I-unit-win32-java17_win32.win32.x86_64_17_consolelog.txt

     [java] Error: Could not find or load main class org.eclipse.debug.jdi.tests.program.MainClass
     [java] Caused by: java.lang.ClassNotFoundException: org.eclipse.debug.jdi.tests.program.MainClass

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants