FileDocCategorySizeDatePackage
P4Submit.javaAPI DocApache Ant 1.705846Wed Dec 13 06:16:18 GMT 2006org.apache.tools.ant.taskdefs.optional.perforce

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}" />
ant.task
category="scm"

Fields Summary
public String
change
change list number
private String
changeProperty
change property
private String
needsResolveProperty
needsresolveproperty
Constructors Summary
Methods Summary
public voidexecute()
do the work

throws
BuildException if no change list specified

        if (change != null) {
            execP4Command("submit -c " + change, (P4HandlerAdapter) new P4SubmitAdapter(this));
        } else {
            //here we'd parse the output from change -o into submit -i
            //in order to support default change.
            throw new BuildException("No change specified (no support for default change yet....");
        }
    
public voidsetChange(java.lang.String change)
set the change list number to submit

param
change The changelist number to submit; required.

        this.change = change;
    
public voidsetChangeProperty(java.lang.String changeProperty)
property defining the change number if the change number gets renumbered

param
changeProperty name of a new property to which the change number will be assigned if it changes
since
ant 1.6.1

        this.changeProperty = changeProperty;
    
public voidsetNeedsResolveProperty(java.lang.String needsResolveProperty)
property defining the need to resolve the change list

param
needsResolveProperty a property which will be set if the change needs resolve
since
ant 1.6.1

        this.needsResolveProperty = needsResolveProperty;