[Pkg] Installer: Installer-Launcher-kph.4.mcz
squeaksource-noreply at iam.unibe.ch
squeaksource-noreply at iam.unibe.ch
Fri Jun 6 22:43:52 UTC 2008
A new version of Installer-Launcher was added to project Installer:
http://www.squeaksource.com/Installer/Installer-Launcher-kph.4.mcz
==================== Summary ====================
Name: Installer-Launcher-kph.4
Author: kph
Time: 6 June 2008, 11:43:29 pm
UUID: ece43f4f-4916-4968-ac98-5f4519c1f93d
Ancestors: Installer-Launcher-kph.3
fixed startup bug
=============== Diff against Installer-Launcher-kph.3 ===============
Item was changed:
----- Method: ProjectLauncher>>startUpAfterLogin (in category '*installer-launcher') -----
startUpAfterLogin
| scriptName loader isUrl |
self setupFlaps.
Preferences readDocumentAtStartup ifTrue: [
HTTPClient isRunningInBrowser ifTrue:[
self setupFromParameters.
scriptName _ self parameterAt: 'src'.
CodeLoader defaultBaseURL: (self parameterAt: 'Base').
] ifFalse:[
scriptName _ (SmalltalkImage current getSystemAttribute: 2) ifNil:[''].
+ scriptName _ [ scriptName convertFromSystemString ] ifError: [ scriptName asString ].
- scriptName _ [ scriptName convertFromSystemString ] onError: [ scriptName asString ].
scriptName isEmpty ifFalse:[
"figure out if script name is a URL by itself"
isUrl _ (scriptName asLowercase beginsWith:'http://') or:[
(scriptName asLowercase beginsWith:'file://') or:[
(scriptName asLowercase beginsWith:'ftp://')]].
isUrl ifFalse:[
Smalltalk at: scriptName asSymbol
ifPresent: [:launchClass | ^ Launcher newLaunchWith: SmalltalkImage current ].
scriptName _ 'file:', (FileDirectory default fullNameFor: scriptName) ]
].
]. ]
ifFalse: [ scriptName := '' ].
scriptName isEmptyOrNil
ifTrue:[^Preferences eToyFriendly ifTrue: [self currentWorld addGlobalFlaps]].
loader _ CodeLoader new.
loader loadSourceFiles: (Array with: scriptName).
(scriptName asLowercase endsWith: '.pr')
ifTrue:[self installProjectFrom: loader]
ifFalse:[loader installSourceFiles].
!
More information about the Packages
mailing list