yegor256 / jhome Goto Github PK
View Code? Open in Web Editor NEWGet JAVA_HOME from Java, even if it's not set
License: MIT License
Get JAVA_HOME from Java, even if it's not set
License: MIT License
Currently we just throw exception if javac
is not installed. It would we nice to have other option to check that javac
is installed, for example by using method boolean hasJavac()
or similar. Otherwise we have the only option to check presence of javac
by catching an exception, which is an anti-pattern in fact.
The puzzle 5-ee2a7bdc
from #5 has to be resolved:
jhome/src/main/java/com/yegor256/Jhome.java
Lines 82 to 85 in 2268a06
The puzzle was created by @volodya-lombrozo on 22-Nov-23.
role: DEV.
If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.
Currently several tests violate test best practices:
MatcherAssert.assertThat(
new Jhome().path().toFile().exists(),
Matchers.is(true)
);
I suggest to add jtcop
plugin to that library.
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
.github/workflows/codecov.yml
actions/checkout v4
actions/setup-java v4
actions/cache v4
codecov/codecov-action v4.0.0-beta.3
ubuntu 22.04
.github/workflows/mvn.yml
actions/checkout v4
actions/setup-java v4
actions/cache v4
.github/workflows/pdd.yml
actions/checkout v4
ubuntu 22.04
.github/workflows/up.yml
actions/checkout v4
peter-evans/create-pull-request v6
ubuntu 22.04
.github/workflows/xcop.yml
actions/checkout v4
ubuntu 22.04
pom.xml
com.jcabi:parent 0.67.0
com.yegor256:jaxec 0.3.1
com.github.volodya-lombrozo:jtcop-maven-plugin 1.2.4
com.qulice:qulice-maven-plugin 0.22.1
What do you think if we add javac()
and java()
methods to Jhome
? Then, instead of new Jhome().path("bin/javac")
we will be able to write only new Jhome().javac()
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.