| org.apache.tools.ant.Task org.apache.tools.ant.taskdefs.optional.perforce.P4Base
All known Subclasses: org.apache.tools.ant.taskdefs.optional.perforce.P4Delete, org.apache.tools.ant.taskdefs.optional.perforce.P4Resolve, org.apache.tools.ant.taskdefs.optional.perforce.P4Revert, org.apache.tools.ant.taskdefs.optional.perforce.P4Change, org.apache.tools.ant.taskdefs.optional.perforce.P4Label, org.apache.tools.ant.taskdefs.optional.perforce.P4Submit, org.apache.tools.ant.taskdefs.optional.perforce.P4Reopen, org.apache.tools.ant.taskdefs.optional.perforce.P4Labelsync, org.apache.tools.ant.taskdefs.optional.perforce.P4Add, org.apache.tools.ant.taskdefs.optional.perforce.P4Integrate, org.apache.tools.ant.taskdefs.optional.perforce.P4Sync, org.apache.tools.ant.taskdefs.optional.perforce.P4Edit, org.apache.tools.ant.taskdefs.optional.perforce.P4Have, org.apache.tools.ant.taskdefs.optional.perforce.P4Fstat, org.apache.tools.ant.taskdefs.optional.perforce.P4Counter,
P4Client | protected String P4Client(Code) | | Perforce Client (eg myclientspec)
|
P4CmdOpts | protected String P4CmdOpts(Code) | | Perforce command opts.
Forms half of low level API
|
P4Opts | protected String P4Opts(Code) | | Perforce 'global' opts.
Forms half of low level API
|
P4Port | protected String P4Port(Code) | | Perforce Server Port (eg KM01:1666)
|
P4User | protected String P4User(Code) | | Perforce User (eg fbloggs)
|
P4View | protected String P4View(Code) | | Perforce view for commands. (eg //projects/foobar/main/source/... )
|
failOnError | protected boolean failOnError(Code) | | Keep going or fail on error - defaults to fail.
|
shell | protected String shell(Code) | | The OS shell to use (cmd.exe or /bin/sh)
|
util | protected Perl5Util util(Code) | | Perl5 regexp in Java - cool eh?
|
execP4Command | protected void execP4Command(String command) throws BuildException(Code) | | no usages found for this method
runs a Perforce command without a handler
Parameters: command - the command that one wants to execute throws: BuildException - if failonerror is set and the command fails |
execP4Command | protected void execP4Command(String command, P4Handler handler) throws BuildException(Code) | | Execute P4 command assembled by subclasses.
Parameters: command - The command to run Parameters: handler - A P4Handler to process any input and output throws: BuildException - if failonerror has been set to true |
getErrorMessage | public String getErrorMessage()(Code) | | gets the error message recorded by the Perforce handler
error message |
getInError | public boolean getInError()(Code) | | gets whether or not the task has encountered an error
error flag since: ant 1.6 |
init | public void init()(Code) | | sets attributes Port, Client, User from properties
if these properties are defined.
Called automatically by UnknownElement
See Also: org.apache.tools.ant.UnknownElement See Also: See Also: Property | Attribute |
---|
See Also: p4.port | Port | See Also: p4.client | Client | See Also: p4.user | User | See Also:
|
setClient | public void setClient(String p4Client)(Code) | | The p4 client spec to use;
optional, defaults to the current user
Parameters: p4Client - the name of the Perforce client spec |
setCmdopts | public void setCmdopts(String p4CmdOpts)(Code) | | Set extra command options; only used on some
of the Perforce tasks.
Parameters: p4CmdOpts - command line options going after the particularPerforce command |
setErrorMessage | public void setErrorMessage(String errorMessage)(Code) | | sets the error message
Parameters: errorMessage - line of error output |
setFailonerror | public void setFailonerror(boolean fail)(Code) | | whether to stop the build (true, default)
or keep going if an error is returned from the p4 command
Parameters: fail - indicates whether one wants to fail the build if an error comes from thePerforce command |
setGlobalopts | public void setGlobalopts(String p4Opts)(Code) | | Set global P4 options; Used on all
of the Perforce tasks.
Parameters: p4Opts - global options, to use a specific P4Config file for instance |
setInError | public void setInError(boolean inError)(Code) | | sets the error flag on the task
Parameters: inError - if true an error has been encountered by the handler since: ant 1.6 |
setPort | public void setPort(String p4Port)(Code) | | The p4d server and port to connect to;
optional, default "perforce:1666"
Parameters: p4Port - the port one wants to set such as localhost:1666 |
setUser | public void setUser(String p4User)(Code) | | The p4 username;
optional, defaults to the current user
Parameters: p4User - the user name |
setView | public void setView(String p4View)(Code) | | The client, branch or label view to operate upon;
optional default "//...".
the view is required for the following tasks :
- p4delete
- p4edit
- p4reopen
- p4resolve
Parameters: p4View - the view one wants to use |
|
|