(MODULES-1749) Update java_version fact...
with maximum memory size Add -Xmx8m to make large systems happy.
This commit is contained in:
committed by
Peter Souter
parent
3124798492
commit
79805000cc
@@ -14,7 +14,7 @@
|
||||
if Facter::Util::Resolution.which('java')
|
||||
Facter.add(:java_version) do
|
||||
setcode do
|
||||
Facter::Util::Resolution.exec('java -version 2>&1').lines.first.split(/"/)[1].strip
|
||||
Facter::Util::Resolution.exec('java -Xmx8m -version 2>&1').lines.first.split(/"/)[1].strip
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user