Eli Young
8dd715a599
Improve java_version fact maintainability
2015-02-09 15:26:53 -08:00
Oliver Falk
79805000cc
(MODULES-1749) Update java_version fact...
...
with maximum memory size
Add -Xmx8m to make large systems happy.
2015-02-06 12:47:23 +00:00
Peter Souter
cd3ac1ee46
(MODULES-1570) Add java_major_version fact
...
Gives the major version of the Java release (ie. Java 1.7.0_71, major version is 7)
We also want to specifically return nil when java not present
2015-01-07 15:42:23 -08:00
Peter Souter
5168f61c26
(MODULES-1570) Improve variable names
...
Lets keep it vaguely consistent
2014-12-29 15:13:47 +00:00
Peter Souter
8724592f2b
(MODULES-1570) java_version fact
...
Adapted from the many found on Github, simply runs `java -version` and strips the results. From what I can find there aren't many edge cases for the result `java -version 2>&1` could return, so this should be fairly compatible.
2014-12-29 15:13:47 +00:00