P4Base Class

Summary

Base class for Perforce (P4) NAnt tasks. See individual task for example usage.
graph BT Type-->Base0["ExternalProgramBase"] Type["P4Base"] class Type type-node Derived0["P4Submit"]-->Type click Derived0 "/api/NAnt.Contrib.Tasks.Perforce/P4Submit" Derived1["P4Edit"]-->Type click Derived1 "/api/NAnt.Contrib.Tasks.Perforce/P4Edit" Derived2["P4Delete"]-->Type click Derived2 "/api/NAnt.Contrib.Tasks.Perforce/P4Delete" Derived3["P4Label"]-->Type click Derived3 "/api/NAnt.Contrib.Tasks.Perforce/P4Label" Derived4["P4Print"]-->Type click Derived4 "/api/NAnt.Contrib.Tasks.Perforce/P4Print" Derived5["P4Revert"]-->Type click Derived5 "/api/NAnt.Contrib.Tasks.Perforce/P4Revert" Derived6["P4Sync"]-->Type click Derived6 "/api/NAnt.Contrib.Tasks.Perforce/P4Sync" Derived7["P4Add"]-->Type click Derived7 "/api/NAnt.Contrib.Tasks.Perforce/P4Add" Derived8["P4Set"]-->Type click Derived8 "/api/NAnt.Contrib.Tasks.Perforce/P4Set" Derived9["P4Client"]-->Type click Derived9 "/api/NAnt.Contrib.Tasks.Perforce/P4Client" Derived10["P4Change"]-->Type click Derived10 "/api/NAnt.Contrib.Tasks.Perforce/P4Change" Derived11["P4Labelsync"]-->Type click Derived11 "/api/NAnt.Contrib.Tasks.Perforce/P4Labelsync" Derived12["P4Reopen"]-->Type click Derived12 "/api/NAnt.Contrib.Tasks.Perforce/P4Reopen"

Syntax

public abstract class P4Base : ExternalProgramBase

Properties

Name Value Summary
Client string
The p4 client spec to use. The default is the current client.
CommandSpecificArguments string
Derived classes should override this to provide command-specific commandline arguments.
ExeName string
Override the ExeName paramater for p4.exe
Port string
The p4 server and port to connect to. The default is "perforce:1666".
ProgramArguments string
Gets the command line arguments for the external program.
Script bool
Prepends a descriptive field (for example, text:, info:, error:, exit:) to each line of output produced by a Perforce command. This is most often used when scripting. The default is false.
User string
The p4 username. The default is the current user.
View string
The client, branch or label view to operate upon. The default is "//...".

Methods

Name Value Summary
ExecuteTask() void
Execute the perforce command assembled by subclasses.

See Also

  • NAnt.Contrib.Tasks.Perforce.P4Add
  • NAnt.Contrib.Tasks.Perforce.P4Change
  • NAnt.Contrib.Tasks.Perforce.P4Delete
  • NAnt.Contrib.Tasks.Perforce.P4Edit
  • NAnt.Contrib.Tasks.Perforce.P4Label
  • NAnt.Contrib.Tasks.Perforce.P4Labelsync
  • NAnt.Contrib.Tasks.Perforce.P4Print
  • NAnt.Contrib.Tasks.Perforce.P4Reopen
  • NAnt.Contrib.Tasks.Perforce.P4Revert
  • NAnt.Contrib.Tasks.Perforce.P4Submit
  • NAnt.Contrib.Tasks.Perforce.P4Sync