Merge "Adding option to include sources only for Java 11 builds"

This commit is contained in:
Sorin Basca
2021-12-21 07:37:46 +00:00
committed by Gerrit Code Review
5 changed files with 24 additions and 2 deletions

View File

@@ -658,6 +658,10 @@ func (c *config) IsEnvFalse(key string) bool {
return value == "0" || value == "n" || value == "no" || value == "off" || value == "false"
}
func (c *config) TargetsJava11() bool {
return c.IsEnvTrue("EXPERIMENTAL_TARGET_JAVA_VERSION_11")
}
// EnvDeps returns the environment variables this build depends on. The first
// call to this function blocks future reads from the environment.
func (c *config) EnvDeps() map[string]string {