forked from pantsbuild/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding a special '$JAVA_HOME' symbol for use in jvm platforms args.
This addresses a long-standing TODO in pants.ini: # TODO(gmalmquist): Find a way to resolve the -Xbootclasspath # automatically, either by putting rt.jars up on the nexus or # using some kind of special variable name (see discussion on # RB 2494). Now, at compile-time, the args from the jvm platform settings will be pre-processed to replace all instances of `$JAVA_HOME` with the java home determined by the platform's preferred jvm distribution. The code will attempt to look up the distribution strictly, but if that fails it will fallback on a non-strict lookup. "Strict" here means a version X such that target_level <= X <= target_level.9999 Whereas unstrict is simply: target_level <= X Testing Done: Manual testing + added a test to `tests/python/pants_test/backend/jvm/tasks/jvm_compile/java/jvm_platform_integration_mixin.py`. Travis went green: https://travis-ci.org/pantsbuild/pants/builds/132398495 Jenkins went green: http://jenkins.pantsbuild.org/job/pantsbuild/job/pants/branch/PR-3490/1/ Travis went green again: https://travis-ci.org/pantsbuild/pants/builds/132867977 Bugs closed: 3490 Reviewed at https://rbcommons.com/s/twitter/r/3924/
- Loading branch information
1 parent
8021eec
commit fd2316e
Showing
6 changed files
with
173 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters