Package eu.bandm.tools.util.files
Class Installable.CLI
java.lang.Object
eu.bandm.tools.util.files.Installable.CLI
- Enclosing class:
Installable<T>
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.
-
Method Summary
-
Method Details
-
main
Runs the application.See the class documentation for the behavior.
- Parameters:
args
- the command line arguments- Throws:
IOException
- if some object file cannot be writtenClassNotFoundException
- if some class cannot be loaded- See Also:
-