Skip to content

Commit 2c53a9f

Browse files
authored
Create README.md
1 parent f18a120 commit 2c53a9f

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

README.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,13 @@ Features:
3838
}
3939
```
4040
Or download release jars from https://github.com/scm4j/scm4j-vcs-svn/releases
41-
- Create Workspace Home instance providing path to any folder as Workspace Home folder path. This folder will contain repositories folders (if different vcs or repositories are used)
41+
- Code snippet
4242
```java
4343
public static final String WORKSPACE_DIR = System.getProperty("java.io.tmpdir") + "svn-workspaces";
44-
...
4544
IVCSWorkspace workspace = new VCSWorkspace(WORKSPACE_DIR);
46-
...
47-
```
48-
- Obtain Repository Workspace from Workspace Home providing a certain Repository's url. The obtained Repository Workspace will represent a folder within Workspace Home dir which will contain all Working Copies relating to the provided VCS Repository
49-
```java
5045
String repoUrl = "https://github.com/MyUser/MyRepo";
5146
IVCSRepositoryWorkspace repoWorkspace = workspace.getVCSRepositoryWorkspace(repoUrl);
52-
```
53-
- Create `SVNVCS` instance providing Repository Workspace, username and password for Repository
54-
```java
55-
IVCS vcs = new SVNVCS(repoWorkspace, username, pass);
47+
IVCS vcs = new SVNVCS(repoWorkspace, "username", "pass");
5648
```
5749
- Use methods of `IVCS` interface. See [scm4j-vcs-api](https://github.com/scm4j/scm4j-vcs-api) for details
5850
- Use `vcs.setProxy()` and `vcs.setCredentials()` if necessary

0 commit comments

Comments
 (0)