aQute.lib.consoleapp
Class AbstractConsoleApp

java.lang.Object
  extended by aQute.libg.reporter.ReporterAdapter
      extended by aQute.lib.env.Env
          extended by aQute.lib.consoleapp.AbstractConsoleApp
All Implemented Interfaces:
Domain, Replacer, Report, Reporter, Runnable

public abstract class AbstractConsoleApp
extends Env


Nested Class Summary
protected static interface AbstractConsoleApp.MainOptions
          Main options
 
Nested classes/interfaces inherited from interface aQute.service.reporter.Reporter
Reporter.SetLocation
 
Nested classes/interfaces inherited from interface aQute.service.reporter.Report
Report.Location
 
Field Summary
protected  PrintStream err
           
protected  PrintStream out
           
 
Constructor Summary
AbstractConsoleApp()
           
AbstractConsoleApp(Object target)
          Default constructor
 
Method Summary
 void __main(AbstractConsoleApp.MainOptions opts)
          Initialize the repository and other global vars.
 void run(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

err

protected final PrintStream err

out

protected final PrintStream out
Constructor Detail

AbstractConsoleApp

public AbstractConsoleApp(Object target)
                   throws UnsupportedEncodingException
Default constructor

Throws:
UnsupportedEncodingException

AbstractConsoleApp

public AbstractConsoleApp()
                   throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException
Method Detail

run

public void run(String[] args)
         throws Exception
Main entry

Throws:
Exception

__main

public void __main(AbstractConsoleApp.MainOptions opts)
            throws IOException
Initialize the repository and other global vars.

Parameters:
opts - the options
Throws:
InterruptedException
IOException


Copyright © 2014 aQute SARL. All rights reserved.