org.apache.tools.ant.taskdefs.optional.perforce
public class P4Fstat extends P4Base
<project name="p4fstat" default="p4fstat" basedir="C:\dev\gnu"> <target name="p4fstat" > <p4fstat showfilter="all"> <fileset dir="depot" includes="**\/*"/> </p4fstat> </target> </project>
failOnError, P4Client, P4CmdOpts, P4Opts, P4Port, P4User, P4View, shell, util
description, location, project
Constructor and Description |
---|
P4Fstat() |
Modifier and Type | Method and Description |
---|---|
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(java.lang.String filter)
Sets the filter that one wants applied.
|
execP4Command, execP4Command, getErrorMessage, getInError, init, setClient, setCmdopts, setErrorMessage, setFailonerror, setGlobalopts, setInError, setPort, setUser, setView
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
public void setShowFilter(java.lang.String filter)
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 |
filter
- should be one of all|existing|non-existing.public void setChangelist(int changelist) throws BuildException
changelist
- change list that one wants information about.BuildException
- if the change list number is negative.public void addFileset(FileSet set)
set
- the fileset to add.public void execute() throws BuildException
execute
in class Task
BuildException
- if no files are specified.public int getLengthOfTask()