|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.sensor.ant.perforce.P4Environment
public class P4Environment
Provides a simple mechanism for configuring the Perforce Java API connection to the p4 tool. Provides a wrapper around the Perforce Java API Env object, and supplies defaults for certain properties. Typical usage:
P4Environment p4Env = new P4Environment(); p4Env.setPort("myperforceserver.foo.com:1666"); p4Env.setUser("philip_johnson"); p4Env.setPassword("foo"); p4Env.setVerbose(true); Env env = p4Env.getEnv();
Constructor Summary | |
---|---|
P4Environment()
Constructs a new P4Environment with default property values. |
Method Summary | |
---|---|
com.perforce.api.Env |
getEnv()
Returns a Perforce Java API Env instance constructed from the data supplied to this instance. |
void |
setP4Executable(java.lang.String path)
Sets the path to the p4 executable. |
void |
setP4Password(java.lang.String password)
Sets the password for the perforce user. |
void |
setP4Port(java.lang.String port)
Sets the port for the perforce server. |
void |
setP4SystemDrive(java.lang.String sysdrive)
Sets the system drive. |
void |
setP4SystemRoot(java.lang.String sysroot)
Sets the system root. |
void |
setP4User(java.lang.String user)
Sets the perforce user. |
void |
setVerbose(boolean isVerbose)
Sets verbose mode. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public P4Environment()
Method Detail |
---|
public void setP4Executable(java.lang.String path)
path
- The path.public void setP4Port(java.lang.String port)
port
- The port.public void setP4User(java.lang.String user)
user
- The user.public void setP4Password(java.lang.String password)
password
- The password.public void setP4SystemRoot(java.lang.String sysroot)
sysroot
- The system root.public void setP4SystemDrive(java.lang.String sysdrive)
sysdrive
- The system drive.public void setVerbose(boolean isVerbose)
isVerbose
- True to set verbose mode.public com.perforce.api.Env getEnv()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |