Summary
Open file(s) in a client workspace for addition to the depot.
- Assembly
- NAnt
.Contrib .dll - Namespace
- NAnt
.Contrib .Tasks .Perforce - Base Types
-
- ExternalProgramBase
- P4Base
graph BT
Type-->Base0["P4Base"]
click Base0 "/api/NAnt.Contrib.Tasks.Perforce/P4Base"
Base0-->Base1["ExternalProgramBase"]
Type["P4Add"]
class Type type-node
Syntax
[TaskName("p4add")]
public class P4Add : P4Base
Examples
Add all cs files under the given directory into the "new" changelist (will be created if it doesn't already exist).
<p4add file="C:\Src\Project\*.cs" changelist="new" />
Add Test.txt into the default changelist.
<p4add file="C:\Src\Project\Test.txt" />
Attributes
Type | Description |
---|---|
TaskName |
Properties
Name | Value | Summary |
---|---|---|
Changelist | string |
Changelist that files will be added into. Changelist will be created
if not already present.
|
Client | string |
The p4 client spec to use. The default is the current client.
Inherited from P4Base
|
Command |
string |
This is an override used by the base class to get command specific args.
|
ExeName | string |
Override the ExeName paramater for p4.exe
Inherited from P4Base
|
File | string |
File(s) to add. File name can contain wildcard characters. (Note:
this is not using p4 wildcard syntax, but the OS wildcards).
|
Port | string |
The p4 server and port to connect to. The default is "perforce:1666".
Inherited from P4Base
|
ProgramArguments | string |
Gets the command line arguments for the external program.
Inherited from P4Base
|
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 .
Inherited from P4Base
|
Type | string |
File Type settings. Applied to all files in the
NAnt.Contrib.Tasks.Perforce.P4Add.File
parameter.
|
User | string |
The p4 username. The default is the current user.
Inherited from P4Base
|
View | string |
The client, branch or label view to operate upon. The default is
"//...".
Inherited from P4Base
|
Methods
Name | Value | Summary |
---|---|---|
ExecuteTask |
void |
Execute the perforce command assembled by subclasses.
Inherited from P4Base
|
get |
string |
Build the command string for this particular command.
|