Class ProfileSelector

  extended by net.sf.taverna.raven.appconfig.bootstrap.ProfileSelector

public class ProfileSelector
extends java.lang.Object

Handles the selection of a profile, determined by the properties $raven.profile and $raven.profilelist. The profile that gets used is determined by the following rules $raven.profilelist - Is only used if $raven.profile is not defined. Contains a list of available profiles. On first run, Taverna will use the lowest version profile (or should it start with the latest version?) in the list and makes a local copy to $taverna.home/conf/current-profile-1.5.2.xml. On subsequent runs will always use the local copy. If a higher version becomes available in the list then an option to update becomes available, and if selected updates the local copy. Likewise, switching to a lower version updates the local copy. This is the standard configuration for Taverna releases. $raven.profile - if set overrides $raven.profilelist (and removes the property if it exists). and forces this profile to be used (i.e. no update request required from user). No local copy gets stored or read. This defaults to $taverna.startup/conf/profile.xml if the file exists and $raven.profile is not already defined. (so in effect $raven.profilelist is ignored if this file is present). This is useful for training courses, snapshot releases and custom installs. Ultimately the property $raven.profile will hold the actual profile to be used

Stuart Owen

Field Summary
static java.lang.String CURRENT_PROFILE
Constructor Summary
ProfileSelector(java.util.Properties properties)
Method Summary
 java.lang.String getProfileLocation()
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail


public static final java.lang.String CURRENT_PROFILE
See Also:
Constant Field Values
Constructor Detail


public ProfileSelector(java.util.Properties properties)
Method Detail


public java.lang.String getProfileLocation()