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
-
-
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
-
-
-
-
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
-
-