Class Installable.CLI

java.lang.Object
eu.bandm.tools.util.files.Installable.CLI
Enclosing class:
Installable<T>

public static class Installable.CLI extends Object
A simple command line interface application for writing data files.

This class is an application that takes command line arguments of the following form:

Installable.CLI [-d class-dir] class1 ... classn

All given class names must be fully qualified. The classes are loaded via the application class loader, and Installable.storeAllStaticFields(java.io.File, boolean, java.lang.Class<?>) is performed on each in turn.

If the option -d is used, then it is followed by the root directory of a class hierarchy. Output files are placed in subdirectories according to the package name of the respective owner class, which must exist already.

If the option -d is not used, then all output files are placed in the current working directory.