Java Doc for SVNUpdateClient.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.SVNUpdateClient

SVNUpdateClient
public class SVNUpdateClient extends SVNBasicClient (Code)
This class provides methods which allow to check out, update, switch and relocate a Working Copy as well as export an unversioned directory or file from a repository.

Here's a list of the SVNUpdateClient's methods matched against corresponing commands of the SVN command line client:
SVNKit Subversion
doCheckout()'svn checkout'
doUpdate()'svn update'
doSwitch()'svn switch'
doRelocate()'svn switch --relocate oldURL newURL'
doExport()'svn export'

version:
   1.1.1
author:
   TMate Software Ltd.
See Also:    Examples




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

If options is null, then this SVNUpdateClient 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  SVNUpdateClient(ISVNRepositoryPool repositoryPool, ISVNOptions options)
    

Method Summary
public  voiddoCanonicalizeURLs(File dst, boolean omitDefaultPort, boolean recursive)
     Canonicalizes all urls in the specified Working Copy.
public  longdoCheckout(SVNURL url, File dstPath, SVNRevision pegRevision, SVNRevision revision, boolean recursive)
     Checks out a Working Copy from a repository.

If the destination path (dstPath) is null then the last component of url is used for the local directory name.

As a revision SVNRevision's pre-defined constant fields can be used.

public  longdoExport(SVNURL url, File dstPath, SVNRevision pegRevision, SVNRevision revision, String eolStyle, boolean force, boolean recursive)
     Exports a clean directory or single file from a repository.

If eolStyle is not null then it should denote a specific End-Of-Line marker for the files to be exported.

public  longdoExport(File srcPath, File dstPath, SVNRevision pegRevision, SVNRevision revision, String eolStyle, boolean force, boolean recursive)
     Exports a clean directory or single file from eihter a source Working Copy or a repository.

How this method works:

public  voiddoRelocate(File dst, SVNURL oldURL, SVNURL newURL, boolean recursive)
     Substitutes the beginning part of a Working Copy's URL with a new one.
public  longdoSwitch(File file, SVNURL url, SVNRevision revision, boolean recursive)
     Updates the Working Copy item to mirror a new URL.
public  longdoSwitch(File file, SVNURL url, SVNRevision pegRevision, SVNRevision revision, boolean recursive)
     Updates the Working Copy item to mirror a new URL.
public  longdoUpdate(File file, SVNRevision revision, boolean recursive)
     Brings the Working Copy item up-to-date with repository changes at the specified revision.

As a revision SVNRevision's pre-defined constant fields can be used.

protected  SVNRevisiongetExternalRevision(File file, SVNURL newURL)
    


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

If options is null, then this SVNUpdateClient 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 SVNUpdateClient 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




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




Method Detail
doCanonicalizeURLs
public void doCanonicalizeURLs(File dst, boolean omitDefaultPort, boolean recursive) throws SVNException(Code)
Canonicalizes all urls in the specified Working Copy.
Parameters:
  dst - a WC path
Parameters:
  omitDefaultPort - if true then removes allport numbers from urls which equal to default ones, otherwisedoes not
Parameters:
  recursive - recurses an operation
throws:
  SVNException -



doCheckout
public long doCheckout(SVNURL url, File dstPath, SVNRevision pegRevision, SVNRevision revision, boolean recursive) throws SVNException(Code)
Checks out a Working Copy from a repository.

If the destination path (dstPath) is null then the last component of url is used for the local directory name.

As a revision SVNRevision's pre-defined constant fields can be used. For example, to check out a Working Copy at the latest revision of the repository use SVNRevision.HEAD HEAD .
Parameters:
  url - a repository location from where a Working Copy will be checked out
Parameters:
  dstPath - the local path where the Working Copy will be placed
Parameters:
  pegRevision - the revision at which url will be firstly seenin the repository to make sure it's the one that is needed
Parameters:
  revision - the desired revision of the Working Copy to be checked out
Parameters:
  recursive - if true and url isa directory then the entire tree will be checked out, otherwise if false - only items located immediatelyin the directory itself the revision number of the Working Copy
throws:
  SVNException - url refers to a file, not a directory; dstPathalready exists but it is a file, not a directory; dstPath alreadyexists and is a versioned directory but has a different URL (repository locationagainst which the directory is controlled)




doExport
public long doExport(SVNURL url, File dstPath, SVNRevision pegRevision, SVNRevision revision, String eolStyle, boolean force, boolean recursive) throws SVNException(Code)
Exports a clean directory or single file from a repository.

If eolStyle is not null then it should denote a specific End-Of-Line marker for the files to be exported. Significant values for eolStyle are:

  • "CRLF" (Carriage Return Line Feed) - this causes files to contain '\r\n' line ending sequences for EOL markers, regardless of the operating system in use (for instance, this EOL marker is used by software on the Windows platform).
  • "LF" (Line Feed) - this causes files to contain '\n' line ending sequences for EOL markers, regardless of the operating system in use (for instance, this EOL marker is used by software on the Unix platform).
  • "CR" (Carriage Return) - this causes files to contain '\r' line ending sequences for EOL markers, regardless of the operating system in use (for instance, this EOL marker was used by software on older Macintosh platforms).
  • "native" - this causes files to contain the EOL markers that are native to the operating system on which SVNKit is run.

Parameters:
  url - a repository location from where the unversioned directory/file willbe exported
Parameters:
  dstPath - the local path where the repository items will be exported to
Parameters:
  pegRevision - the revision at which url will be firstly seenin the repository to make sure it's the one that is needed
Parameters:
  revision - the desired revision of the directory/file to be exported
Parameters:
  eolStyle - a string that denotes a specific End-Of-Line charecter;
Parameters:
  force - true to fore the operation evenif there are local files with the same names as those in the repository(local ones will be replaced)
Parameters:
  recursive - if true and url isa directory then the entire tree will be exported, otherwise if false - only items located immediatelyin the directory itself the revision number of the exported directory/file
throws:
  SVNException -



doExport
public long doExport(File srcPath, File dstPath, SVNRevision pegRevision, SVNRevision revision, String eolStyle, boolean force, boolean recursive) throws SVNException(Code)
Exports a clean directory or single file from eihter a source Working Copy or a repository.

How this method works:

If eolStyle is not null then it should denote a specific End-Of-Line marker for the files to be exported. Significant values for eolStyle are:

  • "CRLF" (Carriage Return Line Feed) - this causes files to contain '\r\n' line ending sequences for EOL markers, regardless of the operating system in use (for instance, this EOL marker is used by software on the Windows platform).
  • "LF" (Line Feed) - this causes files to contain '\n' line ending sequences for EOL markers, regardless of the operating system in use (for instance, this EOL marker is used by software on the Unix platform).
  • "CR" (Carriage Return) - this causes files to contain '\r' line ending sequences for EOL markers, regardless of the operating system in use (for instance, this EOL marker was used by software on older Macintosh platforms).
  • "native" - this causes files to contain the EOL markers that are native to the operating system on which SVNKit is run.

Parameters:
  srcPath - a repository location from where the unversioned directory/file willbe exported
Parameters:
  dstPath - the local path where the repository items will be exported to
Parameters:
  pegRevision - the revision at which url will be firstly seenin the repository to make sure it's the one that is needed
Parameters:
  revision - the desired revision of the directory/file to be exported
Parameters:
  eolStyle - a string that denotes a specific End-Of-Line charecter;
Parameters:
  force - true to fore the operation evenif there are local files with the same names as those in the repository(local ones will be replaced)
Parameters:
  recursive - if true and url isa directory then the entire tree will be exported, otherwise if false - only items located immediatelyin the directory itself the revision number of the exported directory/file
throws:
  SVNException -



doRelocate
public void doRelocate(File dst, SVNURL oldURL, SVNURL newURL, boolean recursive) throws SVNException(Code)
Substitutes the beginning part of a Working Copy's URL with a new one.

When a repository root location or a URL schema is changed the old URL of the Working Copy which starts with oldURL should be substituted for a new URL beginning - newURL.
Parameters:
  dst - a Working Copy item's path
Parameters:
  oldURL - the old beginning part of the repository's URL that shouldbe overwritten
Parameters:
  newURL - a new beginning part for the repository location thatwill overwrite oldURL
Parameters:
  recursive - if true and dst isa directory then the entire tree will be relocated, otherwise if false - only dst itself
throws:
  SVNException -




doSwitch
public long doSwitch(File file, SVNURL url, SVNRevision revision, boolean recursive) throws SVNException(Code)
Updates the Working Copy item to mirror a new URL.

As a revision SVNRevision's pre-defined constant fields can be used. For example, to update the Working Copy to the latest revision of the repository use SVNRevision.HEAD HEAD .

Calling this method is equivalent to doSwitch(file, url, SVNRevision.UNDEFINED, revision, recursive).
Parameters:
  file - the Working copy item to be switched
Parameters:
  url - the repository location as a target against which the item will be switched
Parameters:
  revision - the desired revision of the repository target
Parameters:
  recursive - if true and file isa directory then the entire tree will be updated, otherwise if false - only items located immediatelyin the directory itself the revision number to which file was updated to
throws:
  SVNException -




doSwitch
public long doSwitch(File file, SVNURL url, SVNRevision pegRevision, SVNRevision revision, boolean recursive) throws SVNException(Code)
Updates the Working Copy item to mirror a new URL.

As a revision SVNRevision's pre-defined constant fields can be used. For example, to update the Working Copy to the latest revision of the repository use SVNRevision.HEAD HEAD .
Parameters:
  file - the Working copy item to be switched
Parameters:
  url - the repository location as a target against which the item will be switched
Parameters:
  pegRevision - a revision in which file is first looked upin the repository
Parameters:
  revision - the desired revision of the repository target
Parameters:
  recursive - if true and file isa directory then the entire tree will be updated, otherwise if false - only items located immediatelyin the directory itself the revision number to which file was updated to
throws:
  SVNException -




doUpdate
public long doUpdate(File file, SVNRevision revision, boolean recursive) throws SVNException(Code)
Brings the Working Copy item up-to-date with repository changes at the specified revision.

As a revision SVNRevision's pre-defined constant fields can be used. For example, to update the Working Copy to the latest revision of the repository use SVNRevision.HEAD HEAD .
Parameters:
  file - the Working copy item to be updated
Parameters:
  revision - the desired revision against which the item will be updated
Parameters:
  recursive - if true and file isa directory then the entire tree will be updated, otherwise if false - only items located immediatelyin the directory itself the revision number to which file was updated to
throws:
  SVNException -




getExternalRevision
protected SVNRevision getExternalRevision(File file, SVNURL newURL)(Code)



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.