From 9fd80fab19092a193c216acb70b75acec5d20586 Mon Sep 17 00:00:00 2001
From: Peter Donald P4Revert
Revert files
-
+
+
+
P4Add
+ Add files
+ General P4 Properties
@@ -149,7 +153,7 @@ available from the Perforce web
Standard taskdefs (for you to copy'n'paste)
+Standard taskdefs (for you to copy'n'paste) -- normally this is done automatically if you install this optional task.
<taskdef name="p4sync" classname="org.apache.tools.ant.taskdefs.optional.perforce.P4Sync" />
<taskdef name="p4change" classname="org.apache.tools.ant.taskdefs.optional.perforce.P4Change" />
@@ -158,8 +162,9 @@ available from the Perforce web
<taskdef name="p4have" classname="org.apache.tools.ant.taskdefs.optional.perforce.P4Have" />
<taskdef name="p4label" classname="org.apache.tools.ant.taskdefs.optional.perforce.P4Label" />
<taskdef name="p4counter" classname="org.apache.tools.ant.taskdefs.optional.perforce.P4Counter" />
- <taskdef name="p4reopen" classname="org.apache.tools.ant.taskdefs.optional.perforce.P4Reopen" />
- <taskdef name="p4revert" classname="org.apache.tools.ant.taskdefs.optional.perforce.P4Revert" />
+ <taskdef name="p4reopen" classname="org.apache.tools.ant.taskdefs.optional.perforce.P4Reopen" />
+ <taskdef name="p4revert" classname="org.apache.tools.ant.taskdefs.optional.perforce.P4Revert" />
+ <taskdef name="p4add" classname="org.apache.tools.ant.taskdefs.optional.perforce.P4Add" />
Request a new changelist from the Perforce server. -This task sets the ${p4.change} property which can then be passed to P4Submit or P4Edit. +This task sets the ${p4.change} property which can then be passed to P4Submit, +P4Edit, or P4Add.
| 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 | +
+<p4change/>
+<p4add commandlength="20000" changelist="${p4.change}">
+ <fileset dir="../dir/src/" includes="**/*.java"/>
+<p4add>
+<p4submit change="${p4.change}"/>
+