com.springsource.bundlor.commandline
Class Runner

java.lang.Object
  extended by com.springsource.bundlor.commandline.Runner

public class Runner
extends java.lang.Object

Utility class to enable the running of Bundlor from the command line.

Concurrent Semantics
Not thread-safe.

Author:
Rob Harrop, Andy Wilkinson, Christian Dupuis

Field Summary
private static java.util.Map<java.lang.String,org.apache.commons.cli.Options> commandOptions
           
private static java.lang.String TOOL_NAME
           
 
Constructor Summary
Runner()
           
 
Method Summary
private static void buildCommandOptions()
           
private static void buildManifestOptions()
           
private static void buildTransformOptions()
           
private static void displayUsage()
           
private static void displayUsage(org.apache.commons.cli.ParseException pe)
           
private static com.springsource.util.parser.manifest.ManifestContents loadManifest(java.lang.String path)
           
static void main(java.lang.String[] args)
           
private static void runManifest(java.lang.String[] args, org.apache.commons.cli.Options options)
           
private static void runTransform(java.lang.String[] args, org.apache.commons.cli.Options options)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

commandOptions

private static java.util.Map<java.lang.String,org.apache.commons.cli.Options> commandOptions

TOOL_NAME

private static final java.lang.String TOOL_NAME
See Also:
Constant Field Values
Constructor Detail

Runner

public Runner()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

buildCommandOptions

private static void buildCommandOptions()

buildManifestOptions

private static void buildManifestOptions()

buildTransformOptions

private static void buildTransformOptions()

runManifest

private static void runManifest(java.lang.String[] args,
                                org.apache.commons.cli.Options options)
                         throws java.io.IOException
Throws:
java.io.IOException

runTransform

private static void runTransform(java.lang.String[] args,
                                 org.apache.commons.cli.Options options)
                          throws java.io.FileNotFoundException,
                                 java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException

loadManifest

private static com.springsource.util.parser.manifest.ManifestContents loadManifest(java.lang.String path)
                                                                            throws java.io.IOException
Throws:
java.io.IOException

displayUsage

private static void displayUsage()

displayUsage

private static void displayUsage(org.apache.commons.cli.ParseException pe)