atelier.jarbuilder

This is an extension for atelier.fablib for managing Java projects.

Using the JarBuilder class

Usage examples are the fabfile.py files of eidreader and davlink.

The inv jars command is used to build and sign all jar files of a project.

inv jars

Build the .jar file.

inv classes

Compile the .java files to .class files.

Setting up the Java keystore

There must be a key identified by alias in your keystore.

See what’s in my keystore:

$ keytool -list
$ keytool -list -v -alias meykey

Generate a new key:

$ keytool -genkey -alias mykey

Self-sign the new key:

$ keytool -selfcert -alias mykey -validity 360

This sets mykey to expire in 360 days. 6 months later I’ll get a warning The signer certificate will expire within six months. when I run fab jars to sign a jar file.

(This module’s source code is available here.)

Classes

JarBuilder(jarfile, sourcedir, tsa)

Holds the information needed for building a Java Archive (.jar) file.

class atelier.jarbuilder.JarBuilder(jarfile, sourcedir, tsa)

Bases: object

Holds the information needed for building a Java Archive (.jar) file.