|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectP4Base
com.pmease.quickbuild.repository.P4ClientSpec
P4ClientSpec manages Perforce client specification. It supports both client spec read and write. It is loosely based on original P4Client class from Apache Ant distribution, which doesn't seem to be supported any more (in Ant 1.6.2). It uses Ant optional perforce classes.
Field Summary | |
protected java.lang.String |
clientValue
|
protected java.util.ArrayList |
descValue
|
protected java.lang.String |
hostValue
|
protected java.lang.String |
lineEndValue
|
protected java.lang.String |
optionsValue
|
protected java.lang.String |
ownerValue
|
protected java.lang.String |
rootValue
|
protected java.util.ArrayList |
viewValue
|
Constructor Summary | |
P4ClientSpec()
|
Method Summary | |
void |
addDescValue(java.lang.String desc)
Adds client spec description line |
void |
addViewValue(java.lang.String view)
Adds a line to the client spec view value. |
java.lang.String |
getClientValue()
Returns client spec name. |
java.lang.String |
getDescValue()
Returns client spec description is String form (lines separated by \n\t) |
java.lang.String |
getHostValue()
Returns client spec host. |
java.lang.String |
getLineEndValue()
Returns client spec LineEnd. |
java.lang.String |
getOptionsValue()
Returns client spec options. |
java.lang.String |
getOwnerValue()
Returns client spec owner. |
java.lang.String |
getRootValue()
Returns client spec root directory. |
java.lang.String |
getViewValue()
Returns client spec view value as a String (lines separated by \t\n) |
void |
read()
Reads perforce client specification defined by set clientValue and populates object data. |
void |
setClientValue(java.lang.String clientValue)
Sets client spec name. |
void |
setDescValue(java.util.ArrayList desc)
Sets client spec description. |
void |
setHostValue(java.lang.String hostValue)
Sets client spec host. |
void |
setLineEndValue(java.lang.String lineEndValue)
Sets client spec LineEnd. |
void |
setOptionsValue(java.lang.String optionsValue)
Sets client spec options. |
void |
setOwnerValue(java.lang.String ownerValue)
Sets client spec owner. |
void |
setRootValue(java.lang.String rootValue)
Sets client spec root directory. |
void |
setViewValue(java.util.ArrayList viewValue)
Sets client spec view value. |
void |
write()
Writes currently defined client specification into perforce. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String clientValue
protected java.lang.String ownerValue
protected java.lang.String hostValue
protected java.lang.String rootValue
protected java.lang.String optionsValue
protected java.lang.String lineEndValue
protected java.util.ArrayList viewValue
protected java.util.ArrayList descValue
Constructor Detail |
public P4ClientSpec()
Method Detail |
public java.lang.String getClientValue()
public void setClientValue(java.lang.String clientValue)
clientValue
- client spec namepublic java.lang.String getOwnerValue()
public void setOwnerValue(java.lang.String ownerValue)
ownerValue
- client spec ownerpublic java.lang.String getHostValue()
public void setHostValue(java.lang.String hostValue)
hostValue
- client spec hostpublic java.lang.String getDescValue()
public void addDescValue(java.lang.String desc)
desc
- client spec description linepublic void setDescValue(java.util.ArrayList desc)
desc
- client spec descriptionpublic java.lang.String getRootValue()
public void setRootValue(java.lang.String rootValue)
rootValue
- client spec root directorypublic java.lang.String getOptionsValue()
public void setOptionsValue(java.lang.String optionsValue)
optionsValue
- client spec optionspublic java.lang.String getLineEndValue()
public void setLineEndValue(java.lang.String lineEndValue)
lineEndValue
- client spec LineEndpublic java.lang.String getViewValue()
public void addViewValue(java.lang.String view)
view
- line to be added to the client spec view valuepublic void setViewValue(java.util.ArrayList viewValue)
viewValue
- client spec view valuepublic void read() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
- (non-Javadoc)Task.execute()
public void write() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
- (non-Javadoc)Task.execute()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |