Merge pull request #1561 from tancred/xcodeapp_always_creates_support_sources

Create support sources folder if necessary.

Reviewed.
This commit is contained in:
Antoine Mercadal committed 2012-06-14 10:27:43 -07:00
commit f8df87edcf
1 file changed
+14 -2
+14 -2
View File
@@ -474,14 +474,26 @@ NSString * const XCCListeningStartNotification = @"XCCListeningStartNotification
[PBXContent writeToFile:XCodeSupportPBXPath atomically:YES encoding:NSUTF8StringEncoding error:nil];
DLog(@"PBX file adapted to the project");
DLog(@"Creating source folder %@", [XCodeSupportProjectSources path]);
[fm createDirectoryAtPath:[XCodeSupportProjectSources path] withIntermediateDirectories:YES attributes:nil error:nil];
[self createXcodeSupportProjectSourcesDirIfNecessary];
return NO;
}
[self createXcodeSupportProjectSourcesDirIfNecessary];
return YES;
}
/*!
Create the .xCodeSupport/Sources folder if necessary.
*/
- (void)createXcodeSupportProjectSourcesDirIfNecessary
{
if ([fm fileExistsAtPath:[XCodeSupportProjectSources path]])
return;
DLog(@"Creating source folder %@", [XCodeSupportProjectSources path]);
[fm createDirectoryAtPath:[XCodeSupportProjectSources path] withIntermediateDirectories:YES attributes:nil error:nil];
}
/*!
Initialize the creation of the .xCodeSupport project. This
Operation is threaded