Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
"fun" with code blocks and pre
  • Loading branch information
dave2wave committed Jun 14, 2021
1 parent bf7efad commit 702eb996daa616c258c2a3c04223fa2d866a107b
Showing 2 changed files with 6 additions and 11 deletions.
@@ -137,12 +137,16 @@ The simplest way to view the sample code is to use eclipse

1. Add the maven repository to your eclipse workspace classpath with the following command. You only need to perform this step once.

```
mvn eclipse:configure-workspace -Declipse.workspace=<path-to-your-eclipse-workspace>
```

1. Create an Eclipse project from the code, and import it into your eclipse.
Type the following command :-

```
mvn eclipse:eclipse
```

1. Import the project into eclipse:-

@@ -195,14 +199,14 @@ Note that:-
1. This repository does not require credentials, but the code snippet sets a user id and password to show how this is done
1. The code uses the `ATOMPUB` binding for connection.

```java
```java
SessionFactory sessionFactory = SessionFactoryImpl.newInstance();
Map<String, String> parameter = new HashMap<String, String>();
parameter.put(SessionParameter.USER, "admin");
parameter.put(SessionParameter.PASSWORD, "admin");
parameter.put(SessionParameter.ATOMPUB_URL, "http://repo.opencmis.org/inmemory/atom/");
parameter.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());
```
```

#### Connecting to a repository by id

@@ -226,15 +226,6 @@ pre {
margin-bottom: 5px;
margin-right: 5px;
text-align: left;
}

code {
padding: 0px;
margin-top: 5px;
margin-left: 15px;
margin-bottom: 5px;
margin-right: 5px;
text-align: left;
display: block;
}

0 comments on commit 702eb99

Please sign in to comment.