org.apache.tools.ant .Task org.apache.tools.ant.taskdefs.optional.perforce .P4Base org.apache.tools.ant.taskdefs.optional.perforce .P4Fstat P4Fstat public class P4Fstat extends P4Base (Code) 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>
Method Summary public voidaddFileset (FileSet set) Adds a fileset to be examined by p4fstat.public voidexecute () Executes the p4fstat task.public intgetLengthOfTask () Return the number of files seen. int getPasses () Return the number of passes to make.public voidsetChangelist (int changelist) Sets optionally a change list number.public voidsetShowFilter (String filter) Sets the filter that one wants applied.
addFileset public void addFileset(FileSet set)(Code) Adds a fileset to be examined by p4fstat.
Parameters: set - the fileset to add.
getLengthOfTask public int getLengthOfTask()(Code) Return the number of files seen.
the number of files seen.
getPasses int getPasses() (Code) Return the number of passes to make.
IS THIS BEING USED?
number of passes (how many filesets).
setChangelist public void setChangelist(int changelist) throws BuildException (Code) 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)(Code) Sets the filter that one wants applied.
Option Meaning
all all files under Perforce control or not
existing only files under Perforce control
non-existing only files not under Perforce control or not
Parameters: filter - should be one of all|existing|non-existing.