Prerequisites
The Rhino REST API Framework requires a Linux system with OpenJDK 11.
The JAVA_HOME
shell environment variable should be set to the base directory of the OpenJDK installation.
Use Rhino 3.0.0.0 or later.
![]() |
The Rhino REST API Framework requires access to Metaswitch Artifactory servers. Please contact Metaswitch for a username and password. |
![]() |
Contact Metaswitch if you require a license file. |
Preparing to use Rhino REST API Framework
Installation and setup is simple:
1 |
Download the SDK package
Uncompress the archive ~/work$ unzip unified-rest-ra-sdk-1.0.0.0.zip ~/work$ cd unified-rest-ra-sdk ~/work/unified-rest-ra-sdk$ ls -l total 80 drwxr-xr-x@ 14 sdkuser staff 448 2 Nov 11:09 . drwxr-xr-x 4 sdkuser staff 128 2 Nov 11:07 .. -rw-r--r--@ 1 sdkuser staff 24 23 Oct 14:16 .build -rw-r--r--@ 1 sdkuser staff 73 23 Oct 14:16 .gitignore -rw-r--r--@ 1 sdkuser staff 21 23 Oct 14:16 .sdk.root -rw-r--r--@ 1 sdkuser staff 267 23 Oct 14:16 README.txt drwxr-xr-x@ 25 sdkuser staff 800 2 Nov 11:07 build -rw-r--r--@ 1 sdkuser staff 391 23 Oct 14:16 build.xml -rw-r--r--@ 1 sdkuser staff 293 23 Oct 14:16 deps.properties -rw-r--r-- 1 sdkuser staff 825 2 Nov 11:07 ivy.properties -rw-r--r-- 1 sdkuser staff 6421 2 Nov 11:09 release.properties drwxr-xr-x@ 7 sdkuser staff 224 23 Oct 14:16 rhino-sdk -rw-r--r--@ 1 sdkuser staff 2171 23 Oct 14:16 sdk.properties drwxr-xr-x@ 6 sdkuser staff 192 23 Oct 14:16 tools
|
||||
---|---|---|---|---|---|
2 |
Update sdk.properties There are a few properties in sdk.properties
Example values for an
ExampleCo Rhino REST API Framework projectbranch.name=exampleco-rest-ra/trunk sdk.ivy.org=exampleco sdk.ivy.publish.revision=1.0.0 sdk.component.version=1.0 sdk.component.vendor=ExampleCo |
||||
3 |
Run ant for the first time When you run
~/work/unified-rest-ra-sdk$ ant Buildfile: /Users/davidp/temp/unified-rest-ra-sdk/build.xml init-build-extensions: pre-init-ivy-common: init-ivy-common: Determining Ivy settings. Checking ivy-defaults.properties for ivy settings. artifactory.host=repo.opencloud.com (from ivy-defaults.properties) artifactory.url=https://${artifactory.host}/artifactory (from ivy-defaults.properties) ivy.cache.root=${sdk.root}/build/target/ivy-caches/online-resolvers.cache(from ivy-defaults.properties) ivy.checksums=sha1 (from ivy-defaults.properties) ivy.dir=${basedir} (from ivy-defaults.properties) ivy.libs=${target}/libs (from ivy-defaults.properties) ivy.local.root=${sdk.root}/repositories/sdk-local (from ivy-defaults.properties) ivy.offline.root=${sdk.root}/repositories/opencloud-offline-mirror(from ivy-defaults.properties) ivy.publication.root=${ivy.local.root} (from ivy-defaults.properties) ivy.resolve.refresh=false (from ivy-defaults.properties) ivy.sdk-resolvers.file=online-resolvers.xml (from ivy-defaults.properties) ivy.sdk-resolvers.path=${ivy.settings.dir}/${ivy.sdk-resolvers.file}(from ivy-defaults.properties) ivy.symlinks=false (from ivy-defaults.properties) Missing Artifactory credentials. An Artifactory username and password are required to access SDK dependencies. [oc:ivyautoconfigure] Please enter your Artifactory username: <metaswitch-supplied-username> Please enter your Artifactory password: Writing Ivy configuration to: /Users/davidp/temp/unified-rest-ra-sdk/ivy.properties ... The installation and setup is now complete.
|