FileDocCategorySizeDatePackage
P4Delete.javaAPI DocApache Ant 1.702196Wed Dec 13 06:16:20 GMT 2006org.apache.tools.ant.taskdefs.optional.perforce

P4Delete

public class P4Delete extends P4Base
Checkout files for deletion. Example Usage:
<p4delete change="${p4.change}" view="//depot/project/foo.txt" />
Simple re-write of P4Edit changing 'edit' to 'delete'.
todo
What to do if file is already open in one of our changelists perhaps (See also {@link P4Edit P4Edit})?
ant.task
category="scm"

Fields Summary
public String
change
number of the change list to work on
Constructors Summary
Methods Summary
public voidexecute()
executes the p4 delete task

throws
BuildException if there is no view specified

        if (change != null) {
            P4CmdOpts = "-c " + change;
        }
        if (P4View == null) {
            throw new BuildException("No view specified to delete");
        }
        execP4Command("-s delete " + P4CmdOpts + " " + P4View, new SimpleP4OutputHandler(this));
    
public voidsetChange(java.lang.String change)
An existing changelist number for the deletion; optional but strongly recommended.

param
change the number of a change list

    // CheckStyle:VisibilityModifier ON

                            
        
        this.change = change;