Java Doc for SVNCopyClient.java in  » Source-Control » tmatesoft-SVN » org » tmatesoft » svn » core » wc » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Source Control » tmatesoft SVN » org.tmatesoft.svn.core.wc 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.tmatesoft.svn.core.wc.SVNBasicClient
      org.tmatesoft.svn.core.wc.SVNCopyClient

SVNCopyClient
public class SVNCopyClient extends SVNBasicClient (Code)
The SVNCopyClient provides methods to perform any kinds of copying and moving that SVN supports - operating on both Working Copies (WC) and URLs.

Copy operations allow a user to copy versioned files and directories with all their previous history in several ways.

Supported copy operations are:

  • Working Copy to Working Copy (WC-to-WC) copying - this operation copies the source Working Copy item to the destination one and schedules the source copy for addition with history.
  • Working Copy to URL (WC-to-URL) copying - this operation commits to the repository (exactly to that repository location that is specified by URL) a copy of the Working Copy item.
  • URL to Working Copy (URL-to-WC) copying - this operation will copy the source item from the repository to the Working Copy item and schedule the source copy for addition with history.
  • URL to URL (URL-to-URL) copying - this is a fully repository-side operation, it commits a copy of the source item to a specified repository location (within the same repository, of course).

Besides just copying SVNCopyClient also is able to move a versioned item - that is first making a copy of the source item and then scheduling the source item for deletion when operating on a Working Copy, or right committing the deletion of the source item when operating immediately on the repository.

Supported move operations are:

  • Working Copy to Working Copy (WC-to-WC) moving - this operation copies the source Working Copy item to the destination one and schedules the source item for deletion.
  • URL to URL (URL-to-URL) moving - this is a fully repository-side operation, it commits a copy of the source item to a specified repository location and deletes the source item.

Overloaded doCopy() methods of SVNCopyClient are similar to 'svn copy' and 'svn move' commands of the SVN command line client.
version:
   1.1.1
author:
   TMate Software Ltd.
See Also:    Examples




Constructor Summary
public  SVNCopyClient(ISVNAuthenticationManager authManager, ISVNOptions options)
     Constructs and initializes an SVNCopyClient object with the specified run-time configuration and authentication drivers.

If options is null, then this SVNCopyClient will be using a default run-time configuration driver which takes client-side settings from the default SVN's run-time configuration area but is not able to change those settings (read more on ISVNOptions and SVNWCUtil ).

public  SVNCopyClient(ISVNRepositoryPool repositoryPool, ISVNOptions options)
    

Method Summary
public  SVNCommitInfodoCopy(SVNURL srcURL, SVNRevision srcRevision, SVNURL dstURL, boolean isMove, String commitMessage)
     Copies/moves a source URL to a destination one immediately committing changes to a repository.
public  SVNCommitInfodoCopy(SVNURL srcURL, SVNRevision srcRevision, SVNURL dstURL, boolean isMove, boolean failWhenDstExists, String commitMessage)
     Copies/moves a source URL to a destination one immediately committing changes to a repository.
public  SVNCommitInfodoCopy(File srcPath, SVNRevision srcRevision, SVNURL dstURL, String commitMessage)
     Copies a source Working Copy path (or its repository location URL) to a destination URL immediately committing changes to a repository.

Equivalent to doCopy(srcPath, srcRevision, dstURL, false, commitMessage).

public  SVNCommitInfodoCopy(File srcPath, SVNRevision srcRevision, SVNURL dstURL, boolean failWhenDstExists, String commitMessage)
     Copies a source Working Copy path (or its repository location URL) to a destination URL immediately committing changes to a repository.

If srcRevision is not SVNRevision.WORKING then the repository location URL of srcPath is copied to dstURL.

public  longdoCopy(SVNURL srcURL, SVNRevision srcRevision, File dstPath)
     Copies a source URL to a destination Working Copy path.
public  voiddoCopy(File srcPath, SVNRevision srcRevision, File dstPath, boolean force, boolean isMove)
     Copies/moves a source Working Copy path to a destination Working Copy path.

If srcRevision is not SVNRevision.WORKING and isMove = false, then the repository location URL of srcPath is copied to dstPath.

public  ISVNCommitHandlergetCommitHandler()
     Returns the specified commit handler (if set) being in use or a default one (DefaultSVNCommitHandler) if no special implementations of ISVNCommitHandler were previousely provided.
public  ISVNCommitParametersgetCommitParameters()
     Returns commit parameters.
static  voidpostCopyCleanup(SVNAdminArea dir)
    
public  voidsetCommitHandler(ISVNCommitHandler handler)
     Sets an implementation of ISVNCommitHandler to the commit handler that will be used during commit operations to handle commit log messages.
public  voidsetCommitParameters(ISVNCommitParameters parameters)
     Sets commit parameters to use.

When no parameters are set DefaultSVNCommitParameters default ones are used.



Constructor Detail
SVNCopyClient
public SVNCopyClient(ISVNAuthenticationManager authManager, ISVNOptions options)(Code)
Constructs and initializes an SVNCopyClient object with the specified run-time configuration and authentication drivers.

If options is null, then this SVNCopyClient will be using a default run-time configuration driver which takes client-side settings from the default SVN's run-time configuration area but is not able to change those settings (read more on ISVNOptions and SVNWCUtil ).

If authManager is null, then this SVNCopyClient will be using a default authentication and network layers driver (see SVNWCUtil.createDefaultAuthenticationManager ) which uses server-side settings and auth storage from the default SVN's run-time configuration area (or system properties if that area is not found).
Parameters:
  authManager - an authentication and network layers driver
Parameters:
  options - a run-time configuration options driver




SVNCopyClient
public SVNCopyClient(ISVNRepositoryPool repositoryPool, ISVNOptions options)(Code)




Method Detail
doCopy
public SVNCommitInfo doCopy(SVNURL srcURL, SVNRevision srcRevision, SVNURL dstURL, boolean isMove, String commitMessage) throws SVNException(Code)
Copies/moves a source URL to a destination one immediately committing changes to a repository. Equivalent to doCopy(srcURL, srcRevision, dstURL, isMove, false, commitMessage).
Parameters:
  srcURL - a source repository location URL
Parameters:
  srcRevision - a revision of srcURL
Parameters:
  dstURL - a target URL where srcURL is to becopied/moved
Parameters:
  isMove - true to move the sourceto the target (only URL-to-URL), false to copy
Parameters:
  commitMessage - a commit log message information on the committed revision
throws:
  SVNException -
See Also:   SVNCopyClient.doCopy(SVNURL,SVNRevision,SVNURL,boolean,boolean,String)
See Also:   



doCopy
public SVNCommitInfo doCopy(SVNURL srcURL, SVNRevision srcRevision, SVNURL dstURL, boolean isMove, boolean failWhenDstExists, String commitMessage) throws SVNException(Code)
Copies/moves a source URL to a destination one immediately committing changes to a repository.

If dstURL and srcURL are the same, failWhenDstExists is false and srcURL is a directory then this directory will be copied into itself.

If dstURL is a directory, dstURL and srcURL are not the same, failWhenDstExists is false, dstURL has not the last path element entry of srcURL then that entry will be copied into dstURL.
Parameters:
  srcURL - a source repository location URL
Parameters:
  srcRevision - a revision of srcURL
Parameters:
  dstURL - a target URL where srcURL is to becopied/moved
Parameters:
  isMove - true to move the sourceto the target (only URL-to-URL), false to copy
Parameters:
  failWhenDstExists - true to force a failure if the destination exists
Parameters:
  commitMessage - a commit log message information on the committed revision
throws:
  SVNException - if one of the following is true:

  • srcURL and dstURL are not in thesame repository
  • srcURL was not found in srcRevision
  • dstURL and srcURL are the same and failWhenDstExists is true
  • dstURL already exists and failWhenDstExists is true
  • dstURL already exists, failWhenDstExists is false, but dstURL already contains the top path element name of srcURL
  • isMove = true and dstURL = srcURL



doCopy
public SVNCommitInfo doCopy(File srcPath, SVNRevision srcRevision, SVNURL dstURL, String commitMessage) throws SVNException(Code)
Copies a source Working Copy path (or its repository location URL) to a destination URL immediately committing changes to a repository.

Equivalent to doCopy(srcPath, srcRevision, dstURL, false, commitMessage).
Parameters:
  srcPath - a source Working Copy path
Parameters:
  srcRevision - a revision of srcPath
Parameters:
  dstURL - a target URL where srcPath is to becopied
Parameters:
  commitMessage - a commit log message information on the committed revision
throws:
  SVNException - if one of the following is true:

  • srcPath is not under version control
  • srcPath has no URL
  • the repository location of srcPath was not found in srcRevision
  • dstURL already exists

See Also:   SVNCopyClient.doCopy(File,SVNRevision,SVNURL,boolean,String)



doCopy
public SVNCommitInfo doCopy(File srcPath, SVNRevision srcRevision, SVNURL dstURL, boolean failWhenDstExists, String commitMessage) throws SVNException(Code)
Copies a source Working Copy path (or its repository location URL) to a destination URL immediately committing changes to a repository.

If srcRevision is not SVNRevision.WORKING then the repository location URL of srcPath is copied to dstURL. Otherwise srcPath itself.

failWhenDstExists behaves like in SVNCopyClient.doCopy(SVNURL,SVNRevision,SVNURL,boolean,boolean,String) .
Parameters:
  srcPath - a source Working Copy path
Parameters:
  srcRevision - a revision of srcPath
Parameters:
  dstURL - a target URL where srcPath is to becopied
Parameters:
  failWhenDstExists - true to force a failure if the destination exists
Parameters:
  commitMessage - a commit log message information on the committed revision
throws:
  SVNException - if one of the following is true:

  • srcPath is not under version control
  • srcPath has no URL
  • the repository location of srcPath was not found in srcRevision
  • dstURL already exists and failWhenDstExists is true



doCopy
public long doCopy(SVNURL srcURL, SVNRevision srcRevision, File dstPath) throws SVNException(Code)
Copies a source URL to a destination Working Copy path.

dstPath will be automatically scheduled for addition with history.
Parameters:
  srcURL - a source URL
Parameters:
  srcRevision - a revision of srcURL
Parameters:
  dstPath - a destination WC path the revision number of a source
throws:
  SVNException - if one of the following is true:

  • srcURL was not found in srcRevision
  • dstPath already exists
  • dstPath appears in srcURL
  • dstPath and srcURL are fromdifferent repositories
  • dstPath is under version control but missing



doCopy
public void doCopy(File srcPath, SVNRevision srcRevision, File dstPath, boolean force, boolean isMove) throws SVNException(Code)
Copies/moves a source Working Copy path to a destination Working Copy path.

If srcRevision is not SVNRevision.WORKING and isMove = false, then the repository location URL of srcPath is copied to dstPath. Otherwise srcPath itself.

dstPath will be automatically scheduled for addition with history.
Parameters:
  srcPath - a source WC path
Parameters:
  srcRevision - a revision of srcPath
Parameters:
  dstPath - a destination WC path
Parameters:
  force - true to force the operationto run
Parameters:
  isMove - true to move the sourceto the target (only WC-to-WC), false to copy
throws:
  SVNException - if one of the following is true:

  • dstPath already exists and is in the waycontaining an item with the same name as the source
  • srcPath is not under version control
  • srcPath does not exist
  • srcPath has no URL
  • dstPath is a child of srcPath
  • dstPath is scheduled for deletion
  • isMove = true and dstURL = srcURL



getCommitHandler
public ISVNCommitHandler getCommitHandler()(Code)
Returns the specified commit handler (if set) being in use or a default one (DefaultSVNCommitHandler) if no special implementations of ISVNCommitHandler were previousely provided. the commit handler being in use or a default one
See Also:   SVNCopyClient.setCommitHandler(ISVNCommitHandler)
See Also:   DefaultSVNCommitHandler
See Also:   



getCommitParameters
public ISVNCommitParameters getCommitParameters()(Code)
Returns commit parameters.

If no user parameters were previously specified, once creates and returns DefaultSVNCommitParameters default ones. commit parameters
See Also:   SVNCopyClient.setCommitParameters(ISVNCommitParameters)




postCopyCleanup
static void postCopyCleanup(SVNAdminArea dir) throws SVNException(Code)



setCommitHandler
public void setCommitHandler(ISVNCommitHandler handler)(Code)
Sets an implementation of ISVNCommitHandler to the commit handler that will be used during commit operations to handle commit log messages. The handler will receive a clien's log message and items (represented as SVNCommitItem objects) that will be committed. Depending on implementor's aims the initial log message can be modified (or something else) and returned back.

If using SVNCopyClient without specifying any commit handler then a default one will be used - DefaultSVNCommitHandler .
Parameters:
  handler - an implementor's handler that will be used to handle commit log messages
See Also:   SVNCopyClient.getCommitHandler()
See Also:   SVNCommitItem




setCommitParameters
public void setCommitParameters(ISVNCommitParameters parameters)(Code)
Sets commit parameters to use.

When no parameters are set DefaultSVNCommitParameters default ones are used.
Parameters:
  parameters - commit parameters
See Also:   SVNCopyClient.getCommitParameters()




Methods inherited from org.tmatesoft.svn.core.wc.SVNBasicClient
public void checkCancelled() throws SVNCancelException(Code)(Java Doc)
protected SVNRepository createRepository(SVNURL url, boolean mayReuse) throws SVNException(Code)(Java Doc)
protected SVNRepository createRepository(SVNURL url, File path, SVNRevision pegRevision, SVNRevision revision) throws SVNException(Code)(Java Doc)
protected SVNRepository createRepository(SVNURL url, File path, SVNRevision pegRevision, SVNRevision revision, long[] pegRev) throws SVNException(Code)(Java Doc)
protected SVNWCAccess createWCAccess()(Code)(Java Doc)
protected SVNWCAccess createWCAccess(String pathPrefix)(Code)(Java Doc)
protected void dispatchEvent(SVNEvent event) throws SVNException(Code)(Java Doc)
protected void dispatchEvent(SVNEvent event, double progress) throws SVNException(Code)(Java Doc)
public ISVNDebugLog getDebugLog()(Code)(Java Doc)
protected ISVNEventHandler getEventDispatcher()(Code)(Java Doc)
protected SVNRepositoryLocation[] getLocations(SVNURL url, File path, SVNRepository repository, SVNRevision revision, SVNRevision start, SVNRevision end) throws SVNException(Code)(Java Doc)
public ISVNOptions getOptions()(Code)(Java Doc)
protected ISVNRepositoryPool getRepositoryPool()(Code)(Java Doc)
protected long getRevisionNumber(SVNRevision revision, SVNRepository repository, File path) throws SVNException(Code)(Java Doc)
protected SVNURL getURL(File path) throws SVNException(Code)(Java Doc)
public void handleEvent(SVNEvent event, double progress) throws SVNException(Code)(Java Doc)
public boolean isIgnoreExternals()(Code)(Java Doc)
public boolean isLeaveConflictsUnresolved()(Code)(Java Doc)
public void setDebugLog(ISVNDebugLog log)(Code)(Java Doc)
public void setEventHandler(ISVNEventHandler dispatcher)(Code)(Java Doc)
public void setEventPathPrefix(String prefix)(Code)(Java Doc)
public void setIgnoreExternals(boolean ignore)(Code)(Java Doc)
public void setLeaveConflictsUnresolved(boolean leave)(Code)(Java Doc)
public void setOptions(ISVNOptions options)(Code)(Java Doc)
protected void sleepForTimeStamp()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.