From 548dee42b41aff4da83f5ea88688c0fa68cb1268 Mon Sep 17 00:00:00 2001 From: Peter Schmitt Date: Fri, 29 Apr 2016 00:17:03 +0000 Subject: Clarify plmerge variable substitution behavior. -- MOS_MIGRATED_REVID=121074077 --- .../build/lib/rules/objc/ObjcRuleClasses.java | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'src/main/java/com') diff --git a/src/main/java/com/google/devtools/build/lib/rules/objc/ObjcRuleClasses.java b/src/main/java/com/google/devtools/build/lib/rules/objc/ObjcRuleClasses.java index ac5d8301ad..8ccc437db9 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/objc/ObjcRuleClasses.java +++ b/src/main/java/com/google/devtools/build/lib/rules/objc/ObjcRuleClasses.java @@ -848,7 +848,10 @@ public class ObjcRuleClasses { return builder /* The infoplist file. This corresponds to appname-Info.plist in Xcode projects. - Blaze will perform variable substitution on the plist file for the following values: + +

Blaze will perform variable substitution on the plist file for the following values + (if they are strings in the top-level dict of the plist):

+ + +

The key in ${} may be suffixed with :rfc1034identifier (for + example ${PRODUCT_NAME::rfc1034identifier}) in which case Blaze will + replicate Xcode's behavior and replace non-RFC1034-compliant characters with + -.

*/ .add(attr(INFOPLIST_ATTR, LABEL).allowedFileTypes(PLIST_TYPE)) /* @@ -864,7 +872,10 @@ public class ObjcRuleClasses { in Xcode projects. Duplicate keys between infoplist files will cause an error if and only if the values conflict. If both infoplist and infoplists are specified, the files defined in both attributes will be used. - Blaze will perform variable substitution on the plist files for the following values: + +

Blaze will perform variable substitution on the plist file for the following values + (if they are strings in the top-level dict of the plist):

+ + +

The key in ${} may be suffixed with :rfc1034identifier (for + example ${PRODUCT_NAME::rfc1034identifier}) in which case Blaze will + replicate Xcode's behavior and replace non-RFC1034-compliant characters with + -.

*/ .add(attr("infoplists", BuildType.LABEL_LIST).allowedFileTypes(PLIST_TYPE)) /* -- cgit v1.2.3