package org.apache.tools.ant.taskdefs.optional.starteam;

import org.apache.tools.ant.BuildException;
import com.starbase.starteam.Server;

/**
 * This interface has been designed to allow for different log on to the StarTeam Server to dynamically
 * added and maintained. It assumes that the calling StarTeamTask has all the parameters required for
 * log on method and that they have been initialised correctly.
 * 
 * @author John Ballment
 *
 */
public interface StarTeamLogOnProvider {
	
	/**
	 * LogOn method uses the StarTeamTask's parameters to initiate a log on to the specified server instance.
	 *  
	 * @param task
	 * @param server
	 * @throws ServerException
	 */
	public void LogOn(StarTeamTask task, Server server ) throws BuildException ;

}
