org.apache.tools.ant.taskdefs.optional.perforce

Class P4Submit

public class P4Submit extends P4Base

Submits a numbered changelist to Perforce. Note: P4Submit cannot (yet) submit the default changelist. This shouldn't be a problem with the ANT task as the usual flow is P4Change to create a new numbered change followed by P4Edit then P4Submit. Example Usage:-
<p4submit change="${p4.change}" />

UNKNOWN: category="scm"

Nested Class Summary
classP4Submit.P4SubmitAdapter
internal class used to process the output of p4 submit
Field Summary
Stringchange
change list number
Method Summary
voidexecute()
do the work
voidsetChange(String change)
set the change list number to submit
voidsetChangeProperty(String changeProperty)
property defining the change number if the change number gets renumbered
voidsetNeedsResolveProperty(String needsResolveProperty)
property defining the need to resolve the change list

Field Detail

change

public String change
change list number

Method Detail

execute

public void execute()
do the work

Throws: BuildException if no change list specified

setChange

public void setChange(String change)
set the change list number to submit

Parameters: change The changelist number to submit; required.

setChangeProperty

public void setChangeProperty(String changeProperty)
property defining the change number if the change number gets renumbered

Parameters: changeProperty name of a new property to which the change number will be assigned if it changes

Since: ant 1.6.1

setNeedsResolveProperty

public void setNeedsResolveProperty(String needsResolveProperty)
property defining the need to resolve the change list

Parameters: needsResolveProperty a property which will be set if the change needs resolve

Since: ant 1.6.1