Tomcat JSS 7.2 Development

From Dogtag
Jump to: navigation, search

Prerequisites

$ dnf install ant apache-commons-lang java-devel jss

Getting Source Code

To clone upstream Tomcat JSS source repository:

$ git clone git@github.com:dogtagpki/tomcatjss.git

The above command will create a new 'tomcatjss' folder.

Building TomcatJSS

To do a normal build of Tomcat JSS (instead of generating RPM package):

$ ant

The above command will generate tomcatjss.jar.

To build and install Tomcat JSS:

$ ant install

The above command will generate tomcatjss.jar and install it in /usr/share/java/tomcatjss-<version>.jar, then it will create link at /usr/share/java/tomcatjss.jar to the versioned file.

Build Properties

By default the build.xml defines the build properties for Fedora. To customize the build properties for other platforms create a separate property file and specify the new property values.

For example, for RHEL there's only one property to change:

rhel=1

Then the build can be done as follows:

$ ant -propertyfile <property file> [TARGETS...]

References