Merge "Run ErrorProne in OpenJDK9"
am: 8eb0ad15bf
Change-Id: Ia4ceec4cc2fcb4bdd8565230d74bdb0cf972b89a
This commit is contained in:
@@ -322,10 +322,8 @@ func NewConfig(srcDir, buildDir string) (Config, error) {
|
||||
func (c *config) fromEnv() error {
|
||||
switch c.Getenv("EXPERIMENTAL_USE_OPENJDK9") {
|
||||
case "":
|
||||
if c.Getenv("RUN_ERROR_PRONE") != "true" {
|
||||
// Use OpenJDK9, but target 1.8
|
||||
c.useOpenJDK9 = true
|
||||
}
|
||||
// Use OpenJDK9, but target 1.8
|
||||
c.useOpenJDK9 = true
|
||||
case "false":
|
||||
// Use OpenJDK8
|
||||
case "1.8":
|
||||
@@ -631,6 +629,10 @@ func (c *config) UseGoma() bool {
|
||||
return Bool(c.productVariables.UseGoma)
|
||||
}
|
||||
|
||||
func (c *config) RunErrorProne() bool {
|
||||
return c.IsEnvTrue("RUN_ERROR_PRONE")
|
||||
}
|
||||
|
||||
// Returns true if OpenJDK9 prebuilts are being used
|
||||
func (c *config) UseOpenJDK9() bool {
|
||||
return c.useOpenJDK9
|
||||
|
Reference in New Issue
Block a user