diff options
author | Googler <noreply@google.com> | 2015-06-26 16:42:25 +0000 |
---|---|---|
committer | Damien Martin-Guillerez <dmarting@google.com> | 2015-06-29 16:37:46 +0000 |
commit | 737ad8d31e5ab980a604c73c4c0f3c2b1b5cd978 (patch) | |
tree | a01dcba8370b5d0abbee35074e467bcc955ae5ae /src/objc_tools | |
parent | 2cdd9ccecfee0ad1bc48728dd0916c6561a02d42 (diff) |
Update mainGroup sourceTree to be absolute instead of group.
Currently the path of mainGroup is being set to an absolute path and the
sourceTree is "<group>" (the default). Xcode doesn't seem to have a problem
with this, but it is confusing other tools like AppCode.
--
MOS_MIGRATED_REVID=96976734
Diffstat (limited to 'src/objc_tools')
-rw-r--r-- | src/objc_tools/xcodegen/java/com/google/devtools/build/xcode/xcodegen/XcodeprojGeneration.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/objc_tools/xcodegen/java/com/google/devtools/build/xcode/xcodegen/XcodeprojGeneration.java b/src/objc_tools/xcodegen/java/com/google/devtools/build/xcode/xcodegen/XcodeprojGeneration.java index 01b6579da7..c2d1457a41 100644 --- a/src/objc_tools/xcodegen/java/com/google/devtools/build/xcode/xcodegen/XcodeprojGeneration.java +++ b/src/objc_tools/xcodegen/java/com/google/devtools/build/xcode/xcodegen/XcodeprojGeneration.java @@ -400,6 +400,9 @@ public class XcodeprojGeneration { PBXProject project = new PBXProject(outputPath.getProjectName()); project.getMainGroup().setPath(workspaceRoot.toString()); + if (workspaceRoot.isAbsolute()) { + project.getMainGroup().setSourceTree(SourceTree.ABSOLUTE); + } try { project .getBuildConfigurationList() |