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

Class P4Fstat

public class P4Fstat extends P4Base

P4Fstat--find out which files are under Perforce control and which are not.
Example Usage:
 <project name="p4fstat" default="p4fstat"
 basedir="C:\dev\gnu">
     <target name="p4fstat" >
         <p4fstat showfilter="all">
             <fileset dir="depot" includes="**\/*"/>
         </p4fstat>
     </target>
 </project>
 

UNKNOWN: category="scm"

Method Summary
voidaddFileset(FileSet set)
Adds a fileset to be examined by p4fstat.
voidexecute()
Executes the p4fstat task.
intgetLengthOfTask()
Return the number of files seen.
voidsetChangelist(int changelist)
Sets optionally a change list number.
voidsetShowFilter(String filter)
Sets the filter that one wants applied.

Method Detail

addFileset

public void addFileset(FileSet set)
Adds a fileset to be examined by p4fstat.

Parameters: set the fileset to add.

execute

public void execute()
Executes the p4fstat task.

Throws: BuildException if no files are specified.

getLengthOfTask

public int getLengthOfTask()
Return the number of files seen.

Returns: the number of files seen.

setChangelist

public void setChangelist(int changelist)
Sets optionally a change list number.

Parameters: changelist change list that one wants information about.

Throws: BuildException if the change list number is negative.

setShowFilter

public void setShowFilter(String filter)
Sets the filter that one wants applied.
OptionMeaning
allall files under Perforce control or not
existingonly files under Perforce control
non-existingonly files not under Perforce control or not

Parameters: filter should be one of all|existing|non-existing.