public class SVNCopySource
extends java.lang.Object
Constructor and Description |
---|
SVNCopySource(SVNRevision pegRevision,
SVNRevision revision,
java.io.File path)
Creates a new
SVNCopySource object. |
SVNCopySource(SVNRevision pegRevision,
SVNRevision revision,
SVNURL url)
Creates a new
SVNCopySource object. |
Modifier and Type | Method and Description |
---|---|
java.io.File |
getFile()
Returns the working copy path.
|
java.lang.String |
getName()
Returns the name of this copy source.
|
SVNRevision |
getPegRevision()
Returns the peg revision of the source.
|
SVNRevision |
getRevision()
Returns the revision of the source.
|
SVNURL |
getURL()
Returns the repository url of the source.
|
boolean |
isCopyContents()
Tells whether the contents of this copy source should be copied rather than the copy source itself.
|
boolean |
isURL()
Tells if this copy source is url.
|
void |
setCopyContents(boolean copyContents)
Sets whether to expand this copy source to its contents or not.
|
public SVNCopySource(SVNRevision pegRevision, SVNRevision revision, java.io.File path)
SVNCopySource
object.pegRevision
- peg revision where path
is validrevision
- revision of path
path
- working copy pathpublic SVNCopySource(SVNRevision pegRevision, SVNRevision revision, SVNURL url)
SVNCopySource
object.pegRevision
- peg revision where url
is validrevision
- revision of url
url
- repository urlpublic java.io.File getFile()
public SVNRevision getPegRevision()
public SVNRevision getRevision()
public SVNURL getURL()
public boolean isURL()
getURL()
returns non-null;
otherwise false (returns non-null
)public java.lang.String getName()
public void setCopyContents(boolean copyContents)
copyContents
- true to expand; otherwise
falseisCopyContents()
public boolean isCopyContents()
specifies
to copy contents of a file he will get an SVNException
. So, if this copy source represents a
directory and if this method returns true, children of this copy source
directory will be copied to the target instead of the copy source.Copyright © 2004-2012 TMate Software Ltd. All Rights Reserved.