Package nl.colorize.multimedialib.tool
Class CommandLineTool
- java.lang.Object
-
- nl.colorize.multimedialib.tool.CommandLineTool
-
- Direct Known Subclasses:
AppleIconTool,ColorConversionTool,CopyrightUpdateTool,CordovaWrapper,DemoLauncher,ImageTileTool,SpriteSheetPacker,TeaVMTranspiler
public abstract class CommandLineTool extends java.lang.ObjectSkeleton implementation for tools that provide a command line interface, where the command line arguments are parsed using Args4j. Subclasses should provide amainmethod that callsstart(String[]). This method will parse the command line arguments, and when valid start the tool by callingrun().
-
-
Constructor Summary
Constructors Constructor Description CommandLineTool()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidrun()Runs this tool.voidstart(java.lang.String[] args)
-
-
-
Method Detail
-
start
public final void start(java.lang.String[] args)
-
run
public abstract void run()
Runs this tool. This method is called bystart(String[]). When this method is called it can be assumed that arguments have already been mapped to fields.
-
-