next up previous contents index
Next: PropertyFile Up: Perforce Tasks Previous: P4Revert   Contents   Index

P4Add

Description:

Adds files specified in nested fileset children.

Parameters

Attribute Description Required
commandlength A positive integer specifying the maximum length of the commandline when calling Perforce to add the files. Defaults to 450, higher values mean faster execution, but also possible failures. No
changelist If specified the open files are associated with the specified pending changelist number; otherwise the open files are associated with the default changelist. No

Examples
Require a changelist, add all java files starting from a directory, and submit

<p4change/>
<p4add commandlength="20000" changelist="${p4.change}">
    <fileset dir="../dir/src/" includes="**/*.java"/>
<p4add>
<p4submit change="${p4.change}"/>

Change History
Sept 2000 - Internal Release within Rubus
Nov 2000 V1.0 Initial Release donated to ASF :-)
Jan 2001 V1.1 fixed cross platform (NT/Unix) bug refactored p4 output handling code refactored exec'ing code



Andrew Marlow 2003-07-08