ISvnOperationOptionsProviderpublic class SvnCat extends SvnOperation<SVNProperties>
target and
revision to the output streams.
The actual node
revision selected is determined by the target as it exists in
target's pegRevision.
If target is URL and its pegRevision is
SVNRevision.UNDEFINED, then it defaults to SVNRevision.HEAD.
If target is local and its pegRevision is
SVNRevision.UNDEFINED, then it defaults to SVNRevision.WORKING.
If revision is one of:
then the file contents are taken from the working copy file item (no
network connection is needed). Otherwise the file item's contents are
taken from the repository at a particular revision.
SvnOperation.run() throws SVNException in the following cases:
SVNErrorCode.CLIENT_IS_DIRECTORY
error code - if target refers to a directory
SVNErrorCode.UNVERSIONED_RESOURCE
error code - if target is not under version control
createTempFile()fails) necessary for file translating (used when target is URL)
| Modifier | Constructor | Description |
|---|---|---|
protected |
SvnCat(SvnOperationFactory factory) |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
ensureArgumentsAreValid() |
|
java.io.OutputStream |
getOutput() |
Gets the output stream of the operation.
|
boolean |
isChangesWorkingCopy() |
Gets whether the operation changes working copy
|
boolean |
isExpandKeywords() |
Gets whether or not all keywords presenting in the file and listed in the file's
SVNProperty.KEYWORDSproperty (if set) should be substituted. |
void |
setExpandKeywords(boolean expandKeywords) |
Sets whether or not all keywords presenting in the file and listed in the file's
SVNProperty.KEYWORDSproperty (if set) should be substituted. |
void |
setOutput(java.io.OutputStream output) |
Sets the output stream of the operation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddTarget, cancel, ensureEnoughTargets, ensureHomohenousTargets, getApplicableChangelists, getAuthenticationManager, getCanceller, getDepth, getEventHandler, getFirstTarget, getMaximumTargetsCount, getMinimumTargetsCount, getOperationalWorkingCopy, getOperationFactory, getOptions, getRepositoryPool, getRevision, getSqliteJournalMode, getTargets, hasFileTargets, hasLocalTargets, hasRemoteTargets, initDefaults, isCancelled, isSleepForTimestamp, isUseParentWcFormat, needsHomohenousTargets, run, setApplicalbeChangelists, setDepth, setRevision, setSingleTarget, setSleepForTimestamp, setSqliteJournalModeprotected SvnCat(SvnOperationFactory factory)
public boolean isExpandKeywords()
SVNProperty.KEYWORDSproperty (if set) should be substituted.true if keywords should expanded, otherwise falsepublic void setExpandKeywords(boolean expandKeywords)
SVNProperty.KEYWORDSproperty (if set) should be substituted.expandKeywords - true if keywords should expanded, otherwise falsepublic java.io.OutputStream getOutput()
public void setOutput(java.io.OutputStream output)
output - output streamprotected void ensureArgumentsAreValid()
throws SVNException
ensureArgumentsAreValid in class SvnOperation<SVNProperties>SVNExceptionpublic boolean isChangesWorkingCopy()
isChangesWorkingCopy in class SvnOperation<SVNProperties>true if the operation changes the working copy, otherwise false