Merge "Remove obsolete java version environment variables" into main
This commit is contained in:
commit
f2c51919ad
2 changed files with 0 additions and 6 deletions
|
@ -34,8 +34,6 @@ func makeVarsProvider(ctx android.MakeVarsContext) {
|
|||
|
||||
ctx.Strict("ANDROID_JAVA_HOME", "${JavaHome}")
|
||||
ctx.Strict("ANDROID_JAVA8_HOME", "prebuilts/jdk/jdk8/${hostPrebuiltTag}")
|
||||
ctx.Strict("ANDROID_JAVA9_HOME", "prebuilts/jdk/jdk9/${hostPrebuiltTag}")
|
||||
ctx.Strict("ANDROID_JAVA11_HOME", "prebuilts/jdk/jdk11/${hostPrebuiltTag}")
|
||||
ctx.Strict("ANDROID_JAVA_TOOLCHAIN", "${JavaToolchain}")
|
||||
ctx.Strict("JAVA", "${JavaCmd} ${JavaVmFlags}")
|
||||
ctx.Strict("JAVAC", "${JavacCmd} ${JavacVmFlags}")
|
||||
|
|
|
@ -382,8 +382,6 @@ func NewConfig(ctx Context, args ...string) Config {
|
|||
|
||||
// Configure Java-related variables, including adding it to $PATH
|
||||
java8Home := filepath.Join("prebuilts/jdk/jdk8", ret.HostPrebuiltTag())
|
||||
java9Home := filepath.Join("prebuilts/jdk/jdk9", ret.HostPrebuiltTag())
|
||||
java11Home := filepath.Join("prebuilts/jdk/jdk11", ret.HostPrebuiltTag())
|
||||
java17Home := filepath.Join("prebuilts/jdk/jdk17", ret.HostPrebuiltTag())
|
||||
javaHome := func() string {
|
||||
if override, ok := ret.environ.Get("OVERRIDE_ANDROID_JAVA_HOME"); ok {
|
||||
|
@ -410,8 +408,6 @@ func NewConfig(ctx Context, args ...string) Config {
|
|||
ret.environ.Set("JAVA_HOME", absJavaHome)
|
||||
ret.environ.Set("ANDROID_JAVA_HOME", javaHome)
|
||||
ret.environ.Set("ANDROID_JAVA8_HOME", java8Home)
|
||||
ret.environ.Set("ANDROID_JAVA9_HOME", java9Home)
|
||||
ret.environ.Set("ANDROID_JAVA11_HOME", java11Home)
|
||||
ret.environ.Set("PATH", strings.Join(newPath, string(filepath.ListSeparator)))
|
||||
|
||||
// b/286885495, https://bugzilla.redhat.com/show_bug.cgi?id=2227130: some versions of Fedora include patches
|
||||
|
|
Loading…
Reference in a new issue