Compiling with Ant
Example Ant script files (build-tutorial.xml and build-tutorial.properties in the directory you unzipped the tutorial to) are provided to allow you to compile the resolver and content handler. Make sure that you have Apache Ant installed and set up on your machine first. For more information on installing and running Ant software, read the Apache Ant Manual.
The following structure within the Kowari installation directory is assumed:
/tutorial build-tutorial.xml build-tutorial.properties /conf /handler parserfactory.conf /handler /java compile-handler.list **Handler package directory structure** /rdfs mp3.rdfs /resolver /java compile-resolver.list **Resolver package directory structure** /lib **Supporting jars for the resolver and content handler**
Change the following properties:
server-version property in the build-tutorial.properties file to be the version of the server you are using. For example, 1.1.0- server.base.dir property to the directory you installed TKS in
All other properties should not require changing.
Both of the modules used in this tutorial are in the Kowari distribution and can be built using the main build file.
From the main directory of your Kowari installation, run:
build.bat content-mp3-jar (for systems running a Linux® or UNIX® operating system use ./build.sh content-mp3-jar )This produces the file content-mp3-base-<Kowari version>.jar (where <Kowari version> is the version of your Kowari installation) in the bin directory.
build.bat resolver-http-jar (for systems running a Linux® or UNIX® operating system use ./build.sh resolver-http-jar )This produces a file called resolver-http-base-<Kowari version>.jar in the bin directory.
|