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>
 

Field Summary

Fields inherited from class org.apache.tools.ant.taskdefs.optional.perforce.P4Base

P4Client, P4CmdOpts, P4Opts, P4Port, P4User, P4View, failOnError, shell, util

Fields inherited from class org.apache.tools.ant.Task

description, location, target, taskName, taskType, wrapper

Fields inherited from class org.apache.tools.ant.ProjectComponent

project

Method Summary

void
addFileset(FileSet set)
adds a fileset to be examined by p4fstat
void
execute()
executes the p4fstat task
int
getLengthOfTask()
return the number of files seen
void
setChangelist(int changelist)
sets optionally a change list number
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

Methods inherited from class org.apache.tools.ant.taskdefs.optional.perforce.P4Base

execP4Command, execP4Command, getErrorMessage, getInError, init, setClient, setCmdopts, setErrorMessage, setFailonerror, setGlobalopts, setInError, setPort, setUser, setView

Methods inherited from class org.apache.tools.ant.Task

execute, getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType

Methods inherited from class org.apache.tools.ant.ProjectComponent

getProject, log, log, setProject

Method Details

addFileset

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

Parameters:
set - the fileset to add


execute

public void execute()
            throws BuildException
executes the p4fstat task
Overrides:
execute in interface 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)
            throws BuildException
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


Copyright B) 2000-2005 Apache Software Foundation. All Rights Reserved.