Recipe: How to add a server to the ServerDirectory list
Last updated at 1:32 am UTC on 17 January 2006
Problem:
You have a new local private (or other) server that you would like to add to the list of servers that Squeak knows about.
Solution
If you are using the Squeakland plugin image, look at: http://squeakland.org:8080/super/314
Otherwise, do the following:
1. Make sure that the directory (Squeak home)/prefs/knownServers exists, or create it.
2. DoIt on the statement:
ServerDirectory transferServerDefinitionsToExternal
3. In the prefs/knownServers directory, make a copy of a similar type of server and modify it to suit your needs for the new server that you are adding.
4. DoIt on the statement:
ServerDirectory fetchExternalSettingsIn: (FileDirectory default directoryNamed: 'prefs')
Discussion
This will create a separate definition file in the prefs/knownServers directory for each of the currently known servers, and then replace the current server list with all of the definition files in the prefs/knownServers directory. This is kind of the brute force method, but lets you modify any of the servers that Squeak knows about.
Instead of typing these statements in, I just selected the text for them from the comments in the class-side definitions of these methods. Be sure to look at Squeakland reference above whether you use the plugin image or not, because it provides some guidelines for coding the file for your new server entry. Also see the class comments for ServerDirectory.
Also see
Make your own Update server #3
http://squeakland.org:8080/super/312
SuperSwiki