...
Note |
---|
Note that Plastic has not been ported yet past Java 8 |
Building From Code
Pulling The Code
For read-only access, you can do this
...
Code Block |
---|
git clone ssh://{username}@git.opendaylight.org:29418/plastic.git |
...
Building
Once you have the prerequisites and have cloned the repo, you can issue a build at the
top level of your local copy of the repo
...
You should see log output that shows a successful translation from "abcd" to "ABCD".
Running the tests
Most of the testing is done using unit tests that are written using Spock (a highly recommended
alternative to JUnit). These tests are run as part of every single build and a failure of
a unit test breaks the build.
Using a Plastic distribution
Plastic is available several places including Maven Central and you can insert the dependency in your POM like the below example.
...
Code Block |
---|
<dependency>
<groupId>org.opendaylight.plastic</groupId>
<artifactId>odl-plastic</artifactId>
<version>2.1.7</version>
</dependency> |
Once you have the depedency, create an arbitrarily named folder, lets call it my-plastic, with the following required structure. Note that the directories can be empty but they are required.
Code Block |
---|
my-plastic/
lib/
morphers/
schemas/
classifiers/ |
Out-of-the-box tutorial examples
There is a set of tutorials in the target/runner directory. You can find them as *.RST files. You
can install rst2pdf and convert them to PDF if you'd like.
...