diff --git a/Documentation/ChangeLog b/Documentation/ChangeLog index 2ba4b54..75e9987 100644 --- a/Documentation/ChangeLog +++ b/Documentation/ChangeLog @@ -2,7 +2,11 @@ * PCProject.m ([-execToolName]): Fixed typo where 'ExecuToolName' had been typed instead of 'ExecToolName'. - + * PCProjectLauncher.m ([-run:]): Add './' before the name when + we're using openapp, so that we use 'openapp ./Gorm.app' but + 'opentool autogsdoc'. This fixes running application/tool + projects. + 2007-03-06 Nicola Pero * GNUmakefile: Set GNUSTEP_MAKEFILES using gnustep-config if not yet set. diff --git a/Framework/PCProjectLauncher.m b/Framework/PCProjectLauncher.m index 8f2073b..45fdff1 100644 --- a/Framework/PCProjectLauncher.m +++ b/Framework/PCProjectLauncher.m @@ -291,7 +291,16 @@ enum { if ([project isExecutable]) { openPath = [project execToolName]; - [args addObject:[project projectName]]; + if ([openPath isEqualToString: @"openapp"]) + { + /* openapp ./MyApplication.app */ + [args addObject: [NSString stringWithFormat: @"./%@", [project projectName]]]; + } + else + { + /* opentool MyTool */ + [args addObject: [project projectName]]; + } } else { @@ -342,7 +351,6 @@ enum { selector:@selector(runDidTerminate:) name:NSTaskDidTerminateNotification object:launchTask]; - [launchTask setArguments:args]; [launchTask setCurrentDirectoryPath:[project projectPath]]; [launchTask setLaunchPath:openPath];