mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-02-19 18:11:31 +00:00
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:
parent
218d8f84db
commit
1bfdbcfe56
2 changed files with 15 additions and 3 deletions
|
@ -2,7 +2,11 @@
|
||||||
|
|
||||||
* PCProject.m ([-execToolName]): Fixed typo where 'ExecuToolName'
|
* PCProject.m ([-execToolName]): Fixed typo where 'ExecuToolName'
|
||||||
had been typed instead of 'ExecToolName'.
|
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>
|
2007-03-06 Nicola Pero <nicola.pero@meta-innovation.com>
|
||||||
|
|
||||||
* GNUmakefile: Set GNUSTEP_MAKEFILES using gnustep-config if not yet set.
|
* GNUmakefile: Set GNUSTEP_MAKEFILES using gnustep-config if not yet set.
|
||||||
|
|
|
@ -291,7 +291,16 @@ enum {
|
||||||
if ([project isExecutable])
|
if ([project isExecutable])
|
||||||
{
|
{
|
||||||
openPath = [project execToolName];
|
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
|
else
|
||||||
{
|
{
|
||||||
|
@ -342,7 +351,6 @@ enum {
|
||||||
selector:@selector(runDidTerminate:)
|
selector:@selector(runDidTerminate:)
|
||||||
name:NSTaskDidTerminateNotification
|
name:NSTaskDidTerminateNotification
|
||||||
object:launchTask];
|
object:launchTask];
|
||||||
|
|
||||||
[launchTask setArguments:args];
|
[launchTask setArguments:args];
|
||||||
[launchTask setCurrentDirectoryPath:[project projectPath]];
|
[launchTask setCurrentDirectoryPath:[project projectPath]];
|
||||||
[launchTask setLaunchPath:openPath];
|
[launchTask setLaunchPath:openPath];
|
||||||
|
|
Loading…
Reference in a new issue