Fixed launching apps/tools

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@25089 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2007-04-27 12:59:45 +00:00
parent 218d8f84db
commit 1bfdbcfe56
2 changed files with 15 additions and 3 deletions

View file

@ -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 <nicola.pero@meta-innovation.com>
* GNUmakefile: Set GNUSTEP_MAKEFILES using gnustep-config if not yet set.

View file

@ -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];