Utilities and other tools

The ORE SDK comes with some extra tools:

Skel

Skel is a simple Java application that provides some of the boiler plate code you need to writing a simple ManifestOplet. It takes some arguments on the command line and then generates a directory tree with skeleton files that you can then edit.

Skel takes four arguments:

PACKAGE
The fully qualified package name of oplet and its service;
OPLET
The simple name of the oplet class;
SERVICE
The simple name of the service interface;
JARFILE
The name of the oplet jar file.

For example:

% skel.sh util.echo EchoOplet Echo echo.jar

will create a directory util with a subdirectory echo, and then create the following template files:

Echo.java
An empty interface for the exported service. You should edit this to have the correct method declarations.
EchoImpl.java
An empty class that can be used to implement the service. It contains two methods with package access: start and stop which are used by the oplet to start and stop the service, respectively.
EchoOplet.jave
A simple oplet implementation that implements ManifestOplet.
EchoOplet.mf
The extra headers that this oplet adds to the JAR file manifest. You can add more headers, for dependencies that this oplet has on other services, for example. You should edit this file and complete the OpletInfo headers.
Makefile
A simple Makefile that pulls all the pieces together and builds the oplet JAR file. You will need to edit this file to set the correct value for the JARS variable. This typically parallels the services that are declared in the Oplet-Dependencies header in the manifest.

Top ORE SDK V0.3.0, Mon Feb 14 14:00:19 PST 2000
Rob Duncan