Inject the TOOLS_REPOSITORY constant in the RuleClassProvider instead of using Constants.java
It also includes one example on how to use the new mechanism in BazelCppRuleClasses.
This is the first phase for the removal of the TOOLS_REPOSITORY constant.
--
MOS_MIGRATED_REVID=113244399
diff --git a/src/main/java/com/google/devtools/build/lib/packages/RuleClassProvider.java b/src/main/java/com/google/devtools/build/lib/packages/RuleClassProvider.java
index f6918cb..f6529a6 100644
--- a/src/main/java/com/google/devtools/build/lib/packages/RuleClassProvider.java
+++ b/src/main/java/com/google/devtools/build/lib/packages/RuleClassProvider.java
@@ -72,4 +72,9 @@
* overwritten in the WORKSPACE file in the actual workspace.
*/
String getDefaultWorkspaceFile();
+
+ /**
+ * Returns the path to the tools repository
+ */
+ String getToolsRepository();
}