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

jhome introduced #2608

Merged
merged 2 commits into from
Nov 21, 2023
Merged

jhome introduced #2608

merged 2 commits into from
Nov 21, 2023

Conversation

yegor256
Copy link
Member

@yegor256 yegor256 commented Nov 20, 2023

See #2607


PR-Codex overview

Detailed summary

  • Added a new dependency com.yegor256:jhome:0.0.1 with test scope in pom.xml.
  • Imported and used com.yegor256.Jhome in MainTest.java and SnippetTestCase.java to locate executable files inside JAVA_HOME directory.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@yegor256 yegor256 marked this pull request as draft November 20, 2023 15:20
@yegor256 yegor256 marked this pull request as ready for review November 20, 2023 16:16
@yegor256
Copy link
Member Author

@volodya-lombrozo pls, review

@@ -179,7 +180,7 @@ private static String run(
*/
private static void compileJava(final Path generated, final Path classes) {
new Jaxec(
SnippetTestCase.jdkExecutable("javac"),
new Jhome().path("bin/javac").toString(),
Copy link
Member

Choose a reason for hiding this comment

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

@yegor256 What do you think if we add javac() and java() methods to Jhome. Then, instead of new Jhome().path("bin/javac") we will need to write only new Jhome().javac()?

Copy link
Member

Choose a reason for hiding this comment

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

@yegor256 Created a separate issue for that: yegor256/jhome#5

@yegor256
Copy link
Member Author

@rultor merge

@rultor
Copy link
Contributor

rultor commented Nov 21, 2023

@rultor merge

@yegor256 OK, I'll try to merge now. You can check the progress of the merge here

@rultor rultor merged commit 91a09a2 into master Nov 21, 2023
11 checks passed
@rultor
Copy link
Contributor

rultor commented Nov 21, 2023

@rultor merge

@yegor256 Done! FYI, the full log is here (took me 23min)

@yegor256 yegor256 deleted the 2607 branch November 24, 2023 03:34
yegor256 added a commit that referenced this pull request Nov 30, 2023
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.

None yet

3 participants