Fixed: renamed jsc to narwhal-jsc.

Also put the list of mandatory executables in Info.plist.
This commit is contained in:
Aparajita Fishman
2013-05-02 17:52:21 -04:00
parent 1f4b49c461
commit 2b5cf1a56d
2 changed files with 11 additions and 2 deletions
+4 -2
View File
@@ -81,13 +81,15 @@ static NSString * const XCCSlashReplacement = @""; // DIVISION SLASH, Unicod
// When scanning the project, we immediately ignore directories that match this regex.
static NSString * const XCCDirectoriesToIgnorePattern = @"^(?:Build|F(?:rameworks|oundation)|AppKit|Objective-J|(?:Browser|CommonJS)\\.environment|Resources|XcodeSupport|.+\\.xcodeproj)$";
// The key for an Info.plist array of the mandatory executables XCC needs.
static NSString * const XCCMandatoryExecutablesKey = @"XCCMandatoryExecutables";
// The regex above is used with this predicate for testing.
static NSPredicate * XCCDirectoriesToIgnorePredicate = nil;
// An array of the default predicates used to ignore paths.
static NSArray *XCCDefaultIgnoredPathPredicates = nil;
@interface XcodeCapp ()
// Only used with 10.6 when we don't have file-level FSEvents
@@ -1195,7 +1197,7 @@ void fsevents_callback(ConstFSEventStreamRef streamRef,
- (BOOL)executablesAreAccessible
{
NSArray *executables = @[@"python", @"jsc", @"objj", @"nib2cib"];
NSArray *executables = [[NSBundle mainBundle] objectForInfoDictionaryKey:XCCMandatoryExecutablesKey];
for (NSString *executable in executables)
{