Merge pull request #8053 from Bo98/java.io.tmpdir
formula: set java.io.tmpdir
This commit is contained in:
commit
f6bb1f1ef8
@ -1021,6 +1021,7 @@ class Formula
|
|||||||
TMPDIR: HOMEBREW_TEMP,
|
TMPDIR: HOMEBREW_TEMP,
|
||||||
TEMP: HOMEBREW_TEMP,
|
TEMP: HOMEBREW_TEMP,
|
||||||
TMP: HOMEBREW_TEMP,
|
TMP: HOMEBREW_TEMP,
|
||||||
|
_JAVA_OPTIONS: "-Djava.io.tmpdir=#{HOMEBREW_TEMP}",
|
||||||
HOMEBREW_PATH: nil,
|
HOMEBREW_PATH: nil,
|
||||||
PATH: ENV["HOMEBREW_PATH"],
|
PATH: ENV["HOMEBREW_PATH"],
|
||||||
}
|
}
|
||||||
@ -1803,6 +1804,7 @@ class Formula
|
|||||||
PATH: PATH.new(ENV["PATH"], HOMEBREW_PREFIX/"bin"),
|
PATH: PATH.new(ENV["PATH"], HOMEBREW_PREFIX/"bin"),
|
||||||
HOMEBREW_PATH: nil,
|
HOMEBREW_PATH: nil,
|
||||||
}.merge(common_stage_test_env)
|
}.merge(common_stage_test_env)
|
||||||
|
test_env[:_JAVA_OPTIONS] += " -Djava.io.tmpdir=#{HOMEBREW_TEMP}"
|
||||||
|
|
||||||
ENV.clear_sensitive_environment!
|
ENV.clear_sensitive_environment!
|
||||||
Utils.set_git_name_email!
|
Utils.set_git_name_email!
|
||||||
@ -2126,7 +2128,7 @@ class Formula
|
|||||||
# Common environment variables used at both build and test time
|
# Common environment variables used at both build and test time
|
||||||
def common_stage_test_env
|
def common_stage_test_env
|
||||||
{
|
{
|
||||||
_JAVA_OPTIONS: "#{ENV["_JAVA_OPTIONS"]&.+(" ")}-Duser.home=#{HOMEBREW_CACHE}/java_cache",
|
_JAVA_OPTIONS: "-Duser.home=#{HOMEBREW_CACHE}/java_cache",
|
||||||
GOCACHE: "#{HOMEBREW_CACHE}/go_cache",
|
GOCACHE: "#{HOMEBREW_CACHE}/go_cache",
|
||||||
GOPATH: "#{HOMEBREW_CACHE}/go_mod_cache",
|
GOPATH: "#{HOMEBREW_CACHE}/go_mod_cache",
|
||||||
CARGO_HOME: "#{HOMEBREW_CACHE}/cargo_cache",
|
CARGO_HOME: "#{HOMEBREW_CACHE}/cargo_cache",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user