com.starbase.starteam
Class ConfigFiles

java.lang.Object
  |
  +--com.starbase.starteam.ConfigFiles

public class ConfigFiles
extends java.lang.Object

All client stored config file locations for StarTeam can be found using this class.


Method Summary
static java.io.File getConnectionManagerINI()
          Gets the full path to the ConnectionManager.ini file.
static java.io.File getDefaultCentralStatusDirectory()
          Returns the default location of the client's local directory for storing centralized status information.
static java.io.File getNonWindowsConfig()
          Returns the default location of the client's configuration settings for non-Windows platforms.
static java.io.File getServerList()
          Gets the default location of the client's "ServerList.st" file.
static java.io.File getStarTeamINI()
          Returns the default location of the client's "StarTeam.ini" file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getServerList

public static java.io.File getServerList()
                                  throws java.io.IOException
Gets the default location of the client's "ServerList.st" file. This file contains a list of StarTeam Server names, with connection information for each server.

On Windows platforms, the file is located in a user-specific application folder: for example, "C:\Documents and Settings\UserName\Application Data\Borland\StarTeam". (Older installations use "...\Application Data\Starbase".)

On non-windows platforms, the file is located in the ".starteam-client" subdirectory of the user's home directory. (Older installations use the ".starbase" subdirectory.)

Returns:
The default location of the client's "ServerList.st" file.
java.io.IOException

getStarTeamINI

public static java.io.File getStarTeamINI()
                                   throws java.io.IOException
Returns the default location of the client's "StarTeam.ini" file. This file contains GUI settings and view and folder working directory overrides.

On Windows platforms, the file is located in a user-specific application folder: for example, "C:\Documents and Settings\UserName\Application Data\Borland\StarTeam". (Older installations use "...\Application Data\Starbase".)

On non-windows platforms, the file is located in the ".starteam-client" subdirectory of the user's home directory. (Older installations use the ".starbase" subdirectory.)

Returns:
The default location of the client's "StarTeam.ini" file.
java.io.IOException

getDefaultCentralStatusDirectory

public static java.io.File getDefaultCentralStatusDirectory()
                                                     throws java.io.IOException
Returns the default location of the client's local directory for storing centralized status information.

On Windows platforms, the file is located in a user-specific application folder: for example, "C:\Documents and Settings\UserName\Local Settings\Application Data\Borland\StarTeam\syncdb". (Older installations use "...\Application Data\Starbase\syncdb".)

On non-windows platforms, the file is located in the ".starteam-client/syncdb" subdirectory of the user's home directory. (Older installations use the ".starbase/syncdb" subdirectory.)

Returns:
The default location of the client's centralized status directory
java.io.IOException

getConnectionManagerINI

public static java.io.File getConnectionManagerINI()
Gets the full path to the ConnectionManager.ini file.

On Windows platforms, the file is located in a global application folder: for example, "C:\Documents and Settings\All Users\Application Data\Borland\StarTeam". (Older installations use "...\Application Data\Starbase".)

On non-windows platforms, the ConnectionManager.ini file is unused. In this case, getConnectionManagerINI() returns null.

Returns:
The full path to ConnectionManager.ini, or null on non-Windows platforms.
See Also:
Platform.isWin32()

getNonWindowsConfig

public static java.io.File getNonWindowsConfig()
                                        throws java.io.IOException
Returns the default location of the client's configuration settings for non-Windows platforms. (This file is not used by the SDK on Windows.)

The name of the configuration file is "platform.ini", located in the ".starteam-client" subdirectory of the user's home directory. (Older installations use the ".starteam" file in ".starbase" subdirectory. Calling this method will copy the new platform.ini from the old location if the new one does not already exist.)

java.io.IOException


StarTeam SDK 10.4, Build 36
Copyright © 2003-2008 Borland Software Corporation. All rights reserved.