atelier.jarbuilder¶
(This module’s source code is available here.)
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 fab jars command is used to build and sign all jar files of a project.
- fab jars¶
Build the .jar file.
- fab 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.
Functions
| local(command[, capture, shell]) | Run a command on the local system. |
Classes
| JarBuilder(jarfile, sourcedir, tsa) | Used by my Java projects davlink and eidreader. |
| Path |
- class atelier.jarbuilder.JarBuilder(jarfile, sourcedir, tsa)¶
Used by my Java projects davlink and eidreader.