Class SvnPatchTarget
- java.lang.Object
-
- org.tmatesoft.svn.core.internal.wc2.patch.SvnTargetContent
-
- org.tmatesoft.svn.core.internal.wc2.patch.SvnPatchTarget
-
public class SvnPatchTarget extends SvnTargetContent
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.tmatesoft.svn.core.internal.wc2.patch.SvnTargetContent
SvnTargetContent.IRealLineCallback, SvnTargetContent.ISeekCallback, SvnTargetContent.ITellCallback, SvnTargetContent.IWriteCallback
-
-
Constructor Summary
Constructors Constructor Description SvnPatchTarget()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SvnPatchTarget
applyPatch(SvnPatch patch, java.io.File workingCopyDirectory, int stripCount, SVNWCContext context, boolean ignoreWhitespace, boolean removeTempFiles)
java.io.File
getAbsPath()
java.io.File
getCanonPathFromPatchfile()
int
getCurrentLine()
SVNNodeKind
getDbKind()
java.lang.String
getEolStr()
SVNNodeKind
getKindOnDisk()
java.io.File
getMoveTargetAbsPath()
java.io.File
getPatchedAbsPath()
SVNPatchFileStream
getPatchedStream()
java.util.Map<java.lang.String,SvnPropertiesPatchTarget>
getPropTargets()
java.io.File
getRejectAbsPath()
SVNPatchFileStream
getRejectStream()
java.io.File
getRelPath()
SVNPatchFileStream
getStream()
boolean
hasPropChanges()
boolean
hasTextChanges()
void
installPatchedPropTarget(boolean dryRun, SVNWCContext context)
void
installPatchedTarget(java.io.File workingCopyDirectory, boolean dryRun, SVNWCContext context)
boolean
isAdded()
boolean
isDeleted()
boolean
isExecutable()
boolean
isExisted()
boolean
isFiltered()
boolean
isLocallyDeleted()
boolean
isReplaced()
boolean
isSkipped()
boolean
isSpecial()
boolean
isSymlink()
void
sendPatchNotification(SVNWCContext context)
void
setAbsPath(java.io.File absPath)
void
setAdded(boolean added)
void
setCanonPathFromPatchfile(java.io.File canonPathFromPatchfile)
void
setCurrentLine(int currentLine)
void
setDbKind(SVNNodeKind dbKind)
void
setDeleted(boolean deleted)
void
setEolStr(java.lang.String eolStr)
void
setExecutable(boolean executable)
void
setExisted(boolean existed)
void
setHadPropRejects(boolean hadPropRejects)
void
setHadRejects(boolean hadRejects)
void
setHasLocalModifications(boolean hasLocalModifications)
void
setHasPropChanges(boolean hasPropChanges)
void
setHasTextChanges(boolean hasTextChanges)
void
setKindOnDisk(SVNNodeKind kindOnDisk)
void
setLocallyDeleted(boolean locallyDeleted)
void
setPatchedAbsPath(java.io.File patchedAbsPath)
void
setPatchedStream(SVNPatchFileStream patchedStream)
void
setRejectAbsPath(java.io.File rejectAbsPath)
void
setRejectStream(SVNPatchFileStream rejectStream)
void
setRelPath(java.io.File relPath)
void
setReplaced(boolean replaced)
void
setSkipped(boolean skipped)
void
setSpecial(boolean special)
void
setStream(SVNPatchFileStream stream)
void
setSymlink(boolean symlink)
void
writeOutRejectedHunks(boolean dryRun)
-
Methods inherited from class org.tmatesoft.svn.core.internal.wc2.patch.SvnTargetContent
addHunkInfo, getEolStyle, getHunkInfos, getKeywords, getLines, getReadBaton, getReadLineCallback, getSeekCallback, getTellCallback, getWriteBaton, getWriteCallback, isEof, matchExistingTarget, readLine, scanForMatch, seekToLine, setEof, setEolStyle, setKeywords, setLines, setReadBaton, setReadLineCallback, setSeekCallback, setTellCallback, setWriteBaton, setWriteCallback
-
-
-
-
Method Detail
-
isFiltered
public boolean isFiltered()
-
isSkipped
public boolean isSkipped()
-
hasTextChanges
public boolean hasTextChanges()
-
isAdded
public boolean isAdded()
-
getAbsPath
public java.io.File getAbsPath()
-
getMoveTargetAbsPath
public java.io.File getMoveTargetAbsPath()
-
isDeleted
public boolean isDeleted()
-
hasPropChanges
public boolean hasPropChanges()
-
setSpecial
public void setSpecial(boolean special)
-
getPropTargets
public java.util.Map<java.lang.String,SvnPropertiesPatchTarget> getPropTargets()
-
getEolStr
public java.lang.String getEolStr()
- Overrides:
getEolStr
in classSvnTargetContent
-
getRejectAbsPath
public java.io.File getRejectAbsPath()
-
setRejectAbsPath
public void setRejectAbsPath(java.io.File rejectAbsPath)
-
getStream
public SVNPatchFileStream getStream()
-
getPatchedStream
public SVNPatchFileStream getPatchedStream()
-
setPatchedStream
public void setPatchedStream(SVNPatchFileStream patchedStream)
-
getRejectStream
public SVNPatchFileStream getRejectStream()
-
setRejectStream
public void setRejectStream(SVNPatchFileStream rejectStream)
-
applyPatch
public static SvnPatchTarget applyPatch(SvnPatch patch, java.io.File workingCopyDirectory, int stripCount, SVNWCContext context, boolean ignoreWhitespace, boolean removeTempFiles) throws SVNException, java.io.IOException
- Throws:
SVNException
java.io.IOException
-
installPatchedTarget
public void installPatchedTarget(java.io.File workingCopyDirectory, boolean dryRun, SVNWCContext context) throws SVNException
- Throws:
SVNException
-
installPatchedPropTarget
public void installPatchedPropTarget(boolean dryRun, SVNWCContext context) throws SVNException
- Throws:
SVNException
-
writeOutRejectedHunks
public void writeOutRejectedHunks(boolean dryRun) throws SVNException
- Throws:
SVNException
-
sendPatchNotification
public void sendPatchNotification(SVNWCContext context) throws SVNException
- Throws:
SVNException
-
setHadRejects
public void setHadRejects(boolean hadRejects)
-
setHadPropRejects
public void setHadPropRejects(boolean hadPropRejects)
-
setSkipped
public void setSkipped(boolean skipped)
-
isSymlink
public boolean isSymlink()
-
setAdded
public void setAdded(boolean added)
-
setReplaced
public void setReplaced(boolean replaced)
-
isLocallyDeleted
public boolean isLocallyDeleted()
-
getKindOnDisk
public SVNNodeKind getKindOnDisk()
-
getDbKind
public SVNNodeKind getDbKind()
-
setDeleted
public void setDeleted(boolean deleted)
-
setDbKind
public void setDbKind(SVNNodeKind dbKind)
-
setKindOnDisk
public void setKindOnDisk(SVNNodeKind kindOnDisk)
-
setExisted
public void setExisted(boolean existed)
- Overrides:
setExisted
in classSvnTargetContent
-
setCurrentLine
public void setCurrentLine(int currentLine)
- Overrides:
setCurrentLine
in classSvnTargetContent
-
setHasLocalModifications
public void setHasLocalModifications(boolean hasLocalModifications)
-
setExecutable
public void setExecutable(boolean executable)
-
setAbsPath
public void setAbsPath(java.io.File absPath)
-
setRelPath
public void setRelPath(java.io.File relPath)
-
getCanonPathFromPatchfile
public java.io.File getCanonPathFromPatchfile()
-
setCanonPathFromPatchfile
public void setCanonPathFromPatchfile(java.io.File canonPathFromPatchfile)
-
getRelPath
public java.io.File getRelPath()
-
setLocallyDeleted
public void setLocallyDeleted(boolean locallyDeleted)
-
setSymlink
public void setSymlink(boolean symlink)
-
isExisted
public boolean isExisted()
- Overrides:
isExisted
in classSvnTargetContent
-
getCurrentLine
public int getCurrentLine()
- Overrides:
getCurrentLine
in classSvnTargetContent
-
setEolStr
public void setEolStr(java.lang.String eolStr)
- Overrides:
setEolStr
in classSvnTargetContent
-
isReplaced
public boolean isReplaced()
-
isSpecial
public boolean isSpecial()
-
isExecutable
public boolean isExecutable()
-
getPatchedAbsPath
public java.io.File getPatchedAbsPath()
-
setPatchedAbsPath
public void setPatchedAbsPath(java.io.File patchedAbsPath)
-
setHasPropChanges
public void setHasPropChanges(boolean hasPropChanges)
-
setHasTextChanges
public void setHasTextChanges(boolean hasTextChanges)
-
setStream
public void setStream(SVNPatchFileStream stream)
-
-