com.cedarsoft.codegen
Class GeneratorCliSupport

java.lang.Object
  extended by com.cedarsoft.codegen.GeneratorCliSupport

public class GeneratorCliSupport
extends Object


Field Summary
static String HELP_OPTION
           
static String OPTION_DESTINATION
           
static String OPTION_RESOURCES_DESTINATION
           
static String OPTION_TEST_DESTINATION
           
static String OPTION_TEST_RESOURCES_DESTINATION
           
 
Constructor Summary
GeneratorCliSupport(AbstractGenerator generator, String commandName)
           
GeneratorCliSupport(AbstractGenerator generator, String commandName, PrintWriter logOut)
           
 
Method Summary
protected  org.apache.commons.cli.Options buildOptions()
           
protected  void printError(org.apache.commons.cli.Options options, String errorMessage)
           
protected  void printHelp(org.apache.commons.cli.Options options)
           
 void run(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HELP_OPTION

@NonNls
public static final String HELP_OPTION
See Also:
Constant Field Values

OPTION_DESTINATION

@NonNls
public static final String OPTION_DESTINATION
See Also:
Constant Field Values

OPTION_RESOURCES_DESTINATION

@NonNls
public static final String OPTION_RESOURCES_DESTINATION
See Also:
Constant Field Values

OPTION_TEST_DESTINATION

@NonNls
public static final String OPTION_TEST_DESTINATION
See Also:
Constant Field Values

OPTION_TEST_RESOURCES_DESTINATION

@NonNls
public static final String OPTION_TEST_RESOURCES_DESTINATION
See Also:
Constant Field Values
Constructor Detail

GeneratorCliSupport

public GeneratorCliSupport(@NotNull
                           AbstractGenerator generator,
                           @NotNull@NonNls
                           String commandName)

GeneratorCliSupport

public GeneratorCliSupport(@NotNull
                           AbstractGenerator generator,
                           @NotNull@NonNls
                           String commandName,
                           @NotNull@NonNls
                           PrintWriter logOut)
Method Detail

printError

protected void printError(@NotNull
                          org.apache.commons.cli.Options options,
                          @NotNull@NonNls
                          String errorMessage)

printHelp

protected void printHelp(@NotNull
                         org.apache.commons.cli.Options options)

buildOptions

@NotNull
protected org.apache.commons.cli.Options buildOptions()

run

public void run(@NotNull@NonNls
                String[] args)
         throws Exception
Throws:
Exception


Copyright © 2010 cedarsoft GmbH. All Rights Reserved.