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 interface
AbstractConsoleApp.MainOptions
Main 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.String
encoding
protected java.io.PrintStream
err
protected java.io.PrintStream
out
(package private) Settings
settings
(package private) int[]
tabs
private java.lang.Object
target
(package private) int
width
-
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.void
run(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.UnsupportedEncodingException
Default 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.Exception
Main 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
-
-