Package aQute.lib.consoleapp
Class AbstractConsoleApp
- java.lang.Object
-
- aQute.libg.reporter.ReporterAdapter
-
- aQute.lib.env.Env
-
- aQute.lib.consoleapp.AbstractConsoleApp
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static interfaceAbstractConsoleApp.MainOptionsMain options-
Nested classes/interfaces inherited from interface aQute.service.reporter.Report
Report.Location
-
Nested classes/interfaces inherited from interface aQute.service.reporter.Reporter
Reporter.SetLocation
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.lang.Stringencodingprotected java.io.PrintStreamerrprotected java.io.PrintStreamout(package private) Settingssettings(package private) int[]tabsprivate java.lang.Objecttarget(package private) intwidth
-
Constructor Summary
Constructors Constructor Description AbstractConsoleApp()AbstractConsoleApp(java.lang.Object target)Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void__main(AbstractConsoleApp.MainOptions opts)Initialize the repository and other global vars.voidrun(java.lang.String[] args)Main entry-
Methods inherited from class aQute.lib.env.Env
addAll, addAll, addProperties, addProperty, addTarget, clear, config, config, getBase, getDir, getFile, getFile, getHeader, getHeader, getMap, getParent, getProperties, getProperty, getProperty, isPrepared, isTrue, prepare, process, putAll, putAll, removeProperty, removeTarget, setBase, setProperties, setProperties, setProperty
-
Methods inherited from class aQute.libg.reporter.ReporterAdapter
addErrors, addWarnings, check, error, exception, getErrors, getInfo, getInfo, getLocation, getMessages, getOut, getWarnings, isExceptions, isOk, isPedantic, isPerfect, isTrace, progress, report, run, setExceptions, setPedantic, setTrace, trace, warning
-
-
-
-
Field Detail
-
settings
Settings settings
-
err
protected final java.io.PrintStream err
-
out
protected final java.io.PrintStream out
-
encoding
static java.lang.String encoding
-
width
int width
-
tabs
int[] tabs
-
target
private final java.lang.Object target
-
-
Constructor Detail
-
AbstractConsoleApp
public AbstractConsoleApp(java.lang.Object target) throws java.io.UnsupportedEncodingExceptionDefault constructor- Throws:
java.io.UnsupportedEncodingException
-
AbstractConsoleApp
public AbstractConsoleApp() throws java.io.UnsupportedEncodingException- Throws:
java.io.UnsupportedEncodingException
-
-
Method Detail
-
run
public void run(java.lang.String[] args) throws java.lang.ExceptionMain entry- Throws:
java.lang.Exception
-
__main
public void __main(AbstractConsoleApp.MainOptions opts) throws java.io.IOException
Initialize the repository and other global vars.- Parameters:
opts- the options- Throws:
java.io.IOException
-
-