|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
com.perforce.p4java.ant.tasks.PerforceTask
com.perforce.p4java.ant.tasks.ServerTask
com.perforce.p4java.ant.tasks.ClientTask
com.perforce.p4java.ant.tasks.FstatTask
public class FstatTask
Dumps information about each file, with each item of information on a separate line. It is best used within a Perforce API application where the items can be accessed as variables, but its output is also suitable for parsing from the client command output.
PerforceTask
,
ServerTask
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.perforce.p4java.ant.tasks.ServerTask |
---|
ServerTask.GlobalOption |
Nested classes/interfaces inherited from class com.perforce.p4java.ant.tasks.PerforceTask |
---|
PerforceTask.Field, PerforceTask.File |
Field Summary | |
---|---|
protected int |
affectedByChangelist
Instructs fstat to display only files affected by the given changelist number. |
protected java.lang.String |
filterString
Limits the output to files satisfying the expression given as 'filter'. |
protected int |
maxResults
Limits output to the first 'max' number of files. |
protected java.util.List<IExtendedFileSpec> |
retExtendedFileSpecs
Collection of extended file and revision specifiers returned from the Perforce command. |
protected boolean |
reverseSort
Sorts the output in reverse order. |
protected int |
sinceChangelist
Instructs fstat to display only files affected since the given changelist number. |
protected boolean |
sortByDate
Sort by date. |
protected boolean |
sortByFileSize
Sort by filesize. |
protected boolean |
sortByFiletype
Sort by filetype. |
protected boolean |
sortByHaveRev
Sort by have revision. |
protected boolean |
sortByHeadRev
Sort by head revision. |
Fields inherited from class com.perforce.p4java.ant.tasks.ClientTask |
---|
p4Client |
Fields inherited from class com.perforce.p4java.ant.tasks.ServerTask |
---|
allHosts, commandOptions, globaloptions, hostName, P4_SERVER_PROTOCOL_PROPERTIES_FILE, P4_SERVER_USAGE_PROPERTIES_FILE, p4Server, programName, programVersion, protocolPropertiesFile, protocolProps, textLanguage, unsetClientName, unsetUserName, usagePropertiesFile, usageProps, workingDirectory |
Fields inherited from class com.perforce.p4java.ant.tasks.PerforceTask |
---|
charset, client, failOnError, fields, FILE_TOKEN_REGEX_PATTERN, fileList, files, fileSpecs, LINE_PADDING, LINE_SEPARATOR, p4Messages, passwd, port, protocol, retFileSpecs, retStatusMessage, user |
Fields inherited from class org.apache.tools.ant.Task |
---|
target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, project |
Constructor Summary | |
---|---|
FstatTask()
Default constructor. |
Method Summary | |
---|---|
protected void |
execP4Command()
Execute the Perforce fstat command with file specs and options. |
java.util.List<IExtendedFileSpec> |
getRetExtendedFileSpecs()
Gets the ret extended file specs. |
void |
setAffectedByChangelist(int affectedByChangelist)
Sets the affected by changelist. |
void |
setAllRevs(boolean allRevs)
Sets the all revs. |
void |
setBothPathTypes(boolean bothPathTypes)
Sets the both path types. |
void |
setExcludeLocalPath(boolean excludeLocalPath)
Sets the exclude local path. |
void |
setFileSizeDigest(boolean fileSizeDigest)
Sets the file size digest. |
void |
setFilterString(java.lang.String filterString)
Sets the filter string. |
void |
setMappedFiles(boolean mappedFiles)
Sets the mapped files. |
void |
setMaxResults(int maxResults)
Sets the max results. |
void |
setOpenedFiles(boolean openedFiles)
Sets the opened files. |
void |
setOpenedNeedsResolvingFiles(boolean openedNeedsResolvingFiles)
Sets the opened needs resolving files. |
void |
setOpenedNotHeadRevFiles(boolean openedNotHeadRevFiles)
Sets the opened not head rev files. |
void |
setOpenedResolvedFiles(boolean openedResolvedFiles)
Sets the opened resolved files. |
void |
setPendingIntegrationRecs(boolean pendingIntegrationRecs)
Sets the pending integration recs. |
void |
setReverseSort(boolean reverseSort)
Sets the reverse sort. |
void |
setShelvedFiles(boolean shelvedFiles)
Sets the shelved files. |
void |
setSinceChangelist(int sinceChangelist)
Sets the since changelist. |
void |
setSortByDate(boolean sortByDate)
Sets the sort by date. |
void |
setSortByFileSize(boolean sortByFileSize)
Sets the sort by file size. |
void |
setSortByFiletype(boolean sortByFiletype)
Sets the sort by filetype. |
void |
setSortByHaveRev(boolean sortByHaveRev)
Sets the sort by have rev. |
void |
setSortByHeadRev(boolean sortByHeadRev)
Sets the sort by head rev. |
void |
setSyncedFiles(boolean syncedFiles)
Sets the synced files. |
Methods inherited from class com.perforce.p4java.ant.tasks.ClientTask |
---|
cleanupP4, getP4Client, initP4, setP4Client |
Methods inherited from class com.perforce.p4java.ant.tasks.ServerTask |
---|
cleanupP4Server, createGlobalOption, getGlobalOptions, getP4Server, initP4Server, initP4ServerOptions, setAllHosts, setHostName, setP4Server, setProgramName, setProgramVersion, setProtocolPropertiesFile, setProtocolProps, setTextLanguage, setUnsetClientName, setUnsetUserName, setUsagePropertiesFile, setUsageProps, setWorkingDirectory |
Methods inherited from class com.perforce.p4java.ant.tasks.PerforceTask |
---|
addFileset, createField, createFile, execute, getFields, getFiles, getFileSpecs, getRetFileSpecs, getRetStatusMessage, init, isEmpty, logChangelistSummaries, logChangelistSummary, logExtendedFileSpec, logExtendedFileSpecs, logFileDiff, logFileDiffs, logFileLineMatch, logFileLineMatches, logFileSpec, logFileSpecs, logFix, logFixes, logJob, logJobs, parseChangelist, setCharset, setClient, setFailOnError, setFiles, setPasswd, setPort, setProtocol, setUser |
Methods inherited from class org.apache.tools.ant.Task |
---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String filterString
protected int maxResults
protected boolean reverseSort
protected int sinceChangelist
protected int affectedByChangelist
protected boolean sortByFiletype
protected boolean sortByDate
protected boolean sortByHeadRev
protected boolean sortByHaveRev
protected boolean sortByFileSize
protected java.util.List<IExtendedFileSpec> retExtendedFileSpecs
Constructor Detail |
---|
public FstatTask()
Method Detail |
---|
public void setFilterString(java.lang.String filterString)
filterString
- the new filter stringpublic void setMaxResults(int maxResults)
maxResults
- the new max resultspublic void setReverseSort(boolean reverseSort)
reverseSort
- the new reverse sortpublic void setSinceChangelist(int sinceChangelist)
sinceChangelist
- the new since changelistpublic void setAffectedByChangelist(int affectedByChangelist)
affectedByChangelist
- the new affected by changelistpublic void setSortByFiletype(boolean sortByFiletype)
sortByFiletype
- the new sort by filetypepublic void setSortByDate(boolean sortByDate)
sortByDate
- the new sort by datepublic void setSortByHeadRev(boolean sortByHeadRev)
sortByHeadRev
- the new sort by head revpublic void setSortByHaveRev(boolean sortByHaveRev)
sortByHaveRev
- the new sort by have revpublic void setSortByFileSize(boolean sortByFileSize)
sortByFileSize
- the new sort by file sizepublic void setMappedFiles(boolean mappedFiles)
mappedFiles
- the new mapped filespublic void setSyncedFiles(boolean syncedFiles)
syncedFiles
- the new synced filespublic void setOpenedNotHeadRevFiles(boolean openedNotHeadRevFiles)
openedNotHeadRevFiles
- the new opened not head rev filespublic void setOpenedFiles(boolean openedFiles)
openedFiles
- the new opened filespublic void setOpenedResolvedFiles(boolean openedResolvedFiles)
openedResolvedFiles
- the new opened resolved filespublic void setOpenedNeedsResolvingFiles(boolean openedNeedsResolvingFiles)
openedNeedsResolvingFiles
- the new opened needs resolving filespublic void setShelvedFiles(boolean shelvedFiles)
shelvedFiles
- the new shelved filespublic void setAllRevs(boolean allRevs)
allRevs
- the new all revspublic void setFileSizeDigest(boolean fileSizeDigest)
fileSizeDigest
- the new file size digestpublic void setBothPathTypes(boolean bothPathTypes)
bothPathTypes
- the new both path typespublic void setPendingIntegrationRecs(boolean pendingIntegrationRecs)
pendingIntegrationRecs
- the new pending integration recspublic void setExcludeLocalPath(boolean excludeLocalPath)
excludeLocalPath
- the new exclude local pathpublic java.util.List<IExtendedFileSpec> getRetExtendedFileSpecs()
protected void execP4Command() throws org.apache.tools.ant.BuildException
Return a list of everything Perforce knows about a set of Perforce files.
This method is not intended for general use, and is not documented in detail here; consult the main Perforce fstat command documentation for detailed help.
This method can be a real server and bandwidth resource hog, and should be used as sparingly as possible; alternatively, try to use it with as narrow a set of file specs as possible.
execP4Command
in class PerforceTask
org.apache.tools.ant.BuildException
- the build exceptionPerforceTask.execP4Command()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |