|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.cruisecontrol.sourcecontrols.AlienBrainCore
This class implements the SourceControl methods for an AlienBrain repository. It does this by taking advantage of the AlienBrain command- line utility. Obviously, the command line utility must be installed and working in order for this class to work. This class is based very heavily on P4.java.
Field Summary | |
protected static java.lang.String |
AB_NO_SESSION
|
Constructor Summary | |
AlienBrainCore()
|
Method Summary | |
protected void |
addArgumentIfSet(Commandline cmdLine,
java.lang.String argument,
java.lang.String flag)
Try to add flagged argument to a Commandline |
protected void |
addFlagIfSet(Commandline cmdLine,
boolean flagValue,
java.lang.String flagName)
Try to add a flag to a Commandline |
protected ManagedCommandline |
buildCommonCommand()
Construct a ManagedCommandline preset with arguments applicable to any AlienBrain command that we wish to run. |
java.lang.String |
getBranch()
|
java.lang.String |
getDatabase()
|
java.lang.String |
getPassword()
|
java.lang.String |
getPath()
|
java.lang.String |
getServer()
|
java.lang.String |
getUser()
|
protected void |
setActiveBranch(java.lang.String branch)
Sets the active branch to the provided branch name. |
void |
setBranch(java.lang.String branch)
Sets the path to the project within the AlienBrain repository. |
void |
setDatabase(java.lang.String database)
Sets the name of the project database. |
void |
setPassword(java.lang.String password)
Sets the password of the AlienBrain user account used to connect. |
void |
setPath(java.lang.String path)
Sets the path to the project within the AlienBrain repository. |
void |
setServer(java.lang.String server)
Sets the hostname of the server hosting the AlienBrain repository. |
void |
setUser(java.lang.String user)
Sets the name of the AlienBrain user account used to connect. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final java.lang.String AB_NO_SESSION
Constructor Detail |
public AlienBrainCore()
Method Detail |
public void setServer(java.lang.String server)
server
- The AlienBrain server's hostname.public java.lang.String getServer()
public void setDatabase(java.lang.String database)
database
- The name of the project database.public java.lang.String getDatabase()
public void setUser(java.lang.String user)
user
- The name of the AlienBrin user account.public java.lang.String getUser()
public void setPassword(java.lang.String password)
password
- The password of the AlienBrin user account.public java.lang.String getPassword()
public void setPath(java.lang.String path)
path
- The path within the project database to check for
modifications. Typically something like alienbrain://path/to/projectpublic java.lang.String getPath()
public void setBranch(java.lang.String branch)
branch
- The branch within the AlienBrain project.public java.lang.String getBranch()
protected void addFlagIfSet(Commandline cmdLine, boolean flagValue, java.lang.String flagName)
cmdLine
- The Commandline object to possibly add argumentsflagValue
- Whether or not to add the flag.flagName
- The flag to use if the argument is added.protected void addArgumentIfSet(Commandline cmdLine, java.lang.String argument, java.lang.String flag)
cmdLine
- The Commandline object to possibly add argumentsargument
- The argument to possibly add.flag
- The flag to use if the argument is added.protected ManagedCommandline buildCommonCommand()
protected void setActiveBranch(java.lang.String branch) throws java.io.IOException, CruiseControlException
branch
- The branch name.
CruiseControlException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |