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


org.tmatesoft.svn.core.wc.ISVNOptions

All known Subclasses:   org.tmatesoft.svn.core.internal.wc.DefaultSVNOptions,
ISVNOptions
public interface ISVNOptions extends ISVNTunnelProvider(Code)
The ISVNOptions interface should be implemented to manage global run-time configuration options.

Like the Subversion client library SVNKit uses configuration options during runtime. ISVNOptions is intended for managing those options which are similar to ones you can meet in the config file located in the default Subversion configuration area - on Windows platforms it's usually located in the 'Documents and Settings\UserName\Subversion' (or simply '%APPDATA%\Subversion') directory, on Unix-like platforms - in '~/.subversion'. ISVNOptions is not intended for managing those options that can be met in the servers file (located in the same directory as config) - options for network layers are managed by interfaces and classes of the org.tmatesoft.svn.core.auth package.

Every SVN*Client's public constructor receives an ISVNOptions as a driver of the run-time configuration options. SVNClientManager also has got several newInstance() methods that receive an options driver. Thus it's simpe to implement a specific options driver to ISVNOptions and use it instead of a default one. However if you are not interested in customizing the run-time configuration area you can use a default driver which uses config info from the default SVN configuration area (see above).

Use SVNWCUtil to get a default options driver, like this:

 import org.tmatesoft.svn.core.wc.ISVNOptions;
 import org.tmatesoft.svn.core.wc.SVNClientManager;
 ...
 //here the only one boolean parameter - readonly - enables
 //or disables writing to the config file: if true (like in this snippet) -
 //SVNKit can only read options from the config file but not write
 ISVNOptions options = SVNWCUtil.createDefaultOptions(true);
 SVNClientManager clientManager = SVNClientManager.newInstance(options, "name", "password");
 ...

If you would like to have the default configuration area in a place different from the SVN default one, you should provide a preferred path to the config directory like this:

 import org.tmatesoft.svn.core.wc.ISVNOptions;
 import org.tmatesoft.svn.core.wc.SVNClientManager;
 ...
 File defaultConfigDir = new File("way/to/your/config/dir"); 
 ISVNOptions options = SVNWCUtil.createDefaultOptions(defaultConfigDir, true);
 SVNClientManager clientManager = SVNClientManager.newInstance(options, "name", "password");
 ...

In this case in the specified directory SVNKit will create necessary configuration files (in particular config and servers) which are absolutely identical to those default ones (without any user's edits) located in the SVN config area.

Read also this Subversion book chapter on runtime configuration area.
version:
   1.1.1
author:
   TMate Software Ltd.
See Also:   SVNWCUtil
See Also:    Examples





Method Summary
public  voidaddIgnorePattern(String pattern)
     Adds a new particular ignore pattern to global ignore patterns.
public  MapapplyAutoProperties(File file, Map target)
     Collects and puts into a java.util.Map all autoproperties specified for the file name pattern matched by the target file name.
public  voiddeleteAutoProperty(String pattern)
     Removes a particular autoproperty by specifying a file name pattern.
public  voiddeleteIgnorePattern(String pattern)
     Removes a particular global ignore pattern.
public  MapgetAutoProperties()
     Returns autoproperties as a java.util.Map where each key is a file name pattern and the corresponding value is a string in the form of "propName=propValue".
public  String[]getIgnorePatterns()
     Returns all the global ignore patterns.

The global ignore patterns describe the names of files and directories that SVNKit should ignore during status, add and import operations.

public  DateFormatgetKeywordDateFormat()
    
public  ISVNMergerFactorygetMergerFactory()
     Returns a factory object which is responsible for creating merger drivers.
public  StringgetPropertyValue(String propertyName)
     Returns the value of a property from the [svnkit] section of the config file.
public  booleanisAuthStorageEnabled()
     Determines if the authentication storage is enabled.
public  booleanisIgnored(String name)
     Determines if a file is ignored according to the global ignore patterns.

The global ignore patterns describe the names of files and directories that SVNKit should ignore during status, add and import operations.

public  booleanisIgnored(File file)
     Determines if a file is ignored according to the global ignore patterns.

The global ignore patterns describe the names of files and directories that SVNKit should ignore during status, add and import operations.

public  booleanisUseAutoProperties()
     Determines if the autoproperties option is enabled.
public  booleanisUseCommitTimes()
     Determines if the commit-times option is enabled.
public  voidsetAuthStorageEnabled(boolean storeAuth)
     Enables or disables the authentication storage.

The auth storage is used for disk-caching of all authentication information: usernames, passwords, server certificates, and any other types of cacheable credentials.

public  voidsetAutoProperties(Map autoProperties)
     Sets autoproperties that will be automatically put on all files that will be added or imported.
public  voidsetAutoProperty(String pattern, String properties)
     Sets an autoproperty - binds a file name pattern with a string in the form of "propName=propValue".
public  voidsetIgnorePatterns(String[] patterns)
     Sets global ignore patterns.

The global ignore patterns describe the names of files and directories that SVNKit should ignore during status, add and import operations.

public  voidsetMergerFactory(ISVNMergerFactory merger)
     Sets a factory object which is responsible for creating merger drivers.
public  voidsetPropertyValue(String propertyName, String propertyValue)
     Sets the value of a property from the [svnkit] section of the config file.
public  voidsetUseAutoProperties(boolean useAutoProperties)
     Enables or disables the autoproperties option.

Autoproperties are the properties that are automatically set on files when they are added or imported.

public  voidsetUseCommitTimes(boolean useCommitTimes)
     Enables or disables the commit-times option.



Method Detail
addIgnorePattern
public void addIgnorePattern(String pattern)(Code)
Adds a new particular ignore pattern to global ignore patterns.
Parameters:
  pattern - an ignore pattern to be added
See Also:   ISVNOptions.deleteIgnorePattern(String)



applyAutoProperties
public Map applyAutoProperties(File file, Map target)(Code)
Collects and puts into a java.util.Map all autoproperties specified for the file name pattern matched by the target file name.

If fileName matches any known file name pattern then all properties set for that pattern will be collected and placed into target.

For one file name pattern there can be several autoproperties set, delimited by ";".
Parameters:
  file - a target file
Parameters:
  target - a java.util.Map that will receiveautoproperties target itself




deleteAutoProperty
public void deleteAutoProperty(String pattern)(Code)
Removes a particular autoproperty by specifying a file name pattern.
Parameters:
  pattern - a file name pattern
See Also:   ISVNOptions.setAutoProperty(String,String)
See Also:   



deleteIgnorePattern
public void deleteIgnorePattern(String pattern)(Code)
Removes a particular global ignore pattern.
Parameters:
  pattern - a patterna to be removed
See Also:   ISVNOptions.addIgnorePattern(String)



getAutoProperties
public Map getAutoProperties()(Code)
Returns autoproperties as a java.util.Map where each key is a file name pattern and the corresponding value is a string in the form of "propName=propValue". a java.util.Map containing autoproperties
See Also:   ISVNOptions.setAutoProperties(Map)



getIgnorePatterns
public String[] getIgnorePatterns()(Code)
Returns all the global ignore patterns.

The global ignore patterns describe the names of files and directories that SVNKit should ignore during status, add and import operations. Similar to the 'global-ignores' option that can be found in the SVN's config file under the [miscellany] section. an array of patterns (that usually contain wildcards)that specify file and directory names to be ignored untilthey are versioned
See Also:   ISVNOptions.setIgnorePatterns(String[])




getKeywordDateFormat
public DateFormat getKeywordDateFormat()(Code)



getMergerFactory
public ISVNMergerFactory getMergerFactory()(Code)
Returns a factory object which is responsible for creating merger drivers. a factory that produces merger driversfor merge operations
See Also:   ISVNOptions.setMergerFactory(ISVNMergerFactory)
See Also:   



getPropertyValue
public String getPropertyValue(String propertyName)(Code)
Returns the value of a property from the [svnkit] section of the config file. Currently not used.
Parameters:
  propertyName - a SVNKit specific config property name the value of the property



isAuthStorageEnabled
public boolean isAuthStorageEnabled()(Code)
Determines if the authentication storage is enabled.

The auth storage is used for disk-caching of all authentication information: usernames, passwords, server certificates, and any other types of cacheable credentials.

This option corresponds to the 'store-auth-creds' option that can be found in the SVN's config file under the [auth] section. true if auth storageis enabled, otherwise false
See Also:   ISVNOptions.setAuthStorageEnabled(boolean)




isIgnored
public boolean isIgnored(String name)(Code)
Determines if a file is ignored according to the global ignore patterns.

The global ignore patterns describe the names of files and directories that SVNKit should ignore during status, add and import operations. Similar to the 'global-ignores' option that can be found in the SVN's config file under the [miscellany] section.
Parameters:
  name - a file name true if the fileis ignored, otherwise false




isIgnored
public boolean isIgnored(File file)(Code)
Determines if a file is ignored according to the global ignore patterns.

The global ignore patterns describe the names of files and directories that SVNKit should ignore during status, add and import operations. Similar to the 'global-ignores' option that can be found in the SVN's config file under the [miscellany] section.
Parameters:
  file - a file true if the fileis ignored, otherwise false




isUseAutoProperties
public boolean isUseAutoProperties()(Code)
Determines if the autoproperties option is enabled.

Autoproperties are the properties that are automatically set on files when they are added or imported.

This option corresponds to the 'enable-auto-props' option that can be found in the SVN's config file under the [miscellany] section. true if autopropertiesare enabled, otherwise false
See Also:   ISVNOptions.setUseAutoProperties(boolean)
See Also:   




isUseCommitTimes
public boolean isUseCommitTimes()(Code)
Determines if the commit-times option is enabled.

The commit-times option makes checkout/update/switch/revert operations put last-committed timestamps on every file they touch.

This option corresponds to the 'use-commit-times' option that can be found in the SVN's config file under the [miscellany] section. true if commit-timesare enabled, otherwise false
See Also:   ISVNOptions.setUseCommitTimes(boolean)
See Also:   




setAuthStorageEnabled
public void setAuthStorageEnabled(boolean storeAuth)(Code)
Enables or disables the authentication storage.

The auth storage is used for disk-caching of all authentication information: usernames, passwords, server certificates, and any other types of cacheable credentials.

This option corresponds to the 'store-auth-creds' option that can be found in the SVN's config file under the [auth] section.
Parameters:
  storeAuth - true to enable the auth storage, falseto disable
See Also:   ISVNOptions.isAuthStorageEnabled()




setAutoProperties
public void setAutoProperties(Map autoProperties)(Code)
Sets autoproperties that will be automatically put on all files that will be added or imported.

There can be several properties specified for one file pattern - they should be delimited by ";".
Parameters:
  autoProperties - a java.util.Map which keys are filename patterns and their values are strings in the form of "propName=propValue"
See Also:   ISVNOptions.getAutoProperties()




setAutoProperty
public void setAutoProperty(String pattern, String properties)(Code)
Sets an autoproperty - binds a file name pattern with a string in the form of "propName=propValue".
Parameters:
  pattern - a file name pattern (usually containing wildcards)
Parameters:
  properties - a property for pattern
See Also:   ISVNOptions.deleteAutoProperty(String)



setIgnorePatterns
public void setIgnorePatterns(String[] patterns)(Code)
Sets global ignore patterns.

The global ignore patterns describe the names of files and directories that SVNKit should ignore during status, add and import operations. Similar to the 'global-ignores' option that can be found in the SVN's config file under the [miscellany] section.

For example, to set all .exe files to be ignored include "*.exe" pattern into patterns.

If patterns is null or empty then all the patterns will be removed.
Parameters:
  patterns - an array of patterns (that usually contain wildcards)that specify file and directory names to be ignored untilthey are versioned
See Also:   ISVNOptions.getIgnorePatterns()




setMergerFactory
public void setMergerFactory(ISVNMergerFactory merger)(Code)
Sets a factory object which is responsible for creating merger drivers.
Parameters:
  merger - a factory that produces merger driversfor merge operations
See Also:   ISVNOptions.getMergerFactory()



setPropertyValue
public void setPropertyValue(String propertyName, String propertyValue)(Code)
Sets the value of a property from the [svnkit] section of the config file. Currently not used.
Parameters:
  propertyName - a SVNKit specific config property name
Parameters:
  propertyValue - a new value for the property; if null the property is removed



setUseAutoProperties
public void setUseAutoProperties(boolean useAutoProperties)(Code)
Enables or disables the autoproperties option.

Autoproperties are the properties that are automatically set on files when they are added or imported.

This option corresponds to the 'enable-auto-props' option that can be found in the SVN's config file under the [miscellany] section.
Parameters:
  useAutoProperties - true to enable autoproperties, falseto disable
See Also:   ISVNOptions.isUseAutoProperties()




setUseCommitTimes
public void setUseCommitTimes(boolean useCommitTimes)(Code)
Enables or disables the commit-times option.

The commit-times option makes checkout/update/switch/revert operations put last-committed timestamps on every file they touch.

This option corresponds to the 'use-commit-times' option that can be found in the SVN's config file under the [miscellany] section.
Parameters:
  useCommitTimes - true to enable commit-times, falseto disable
See Also:   ISVNOptions.isUseCommitTimes()
See Also:   




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