Griffon 1.2.0

org.codehaus.griffon.cli.shell.command
[Java] Class CreateMvcCommand

java.lang.Object
  org.codehaus.griffon.cli.shell.AbstractGriffonCommand
      org.codehaus.griffon.cli.shell.command.CreateMvcCommand

@Command(scope = "griffon",
        name = "create-mvc",
        description = "Creates a new MVC Group",
        detailedDescription = "classpath:create-mvc.txt")
public class CreateMvcCommand
extends AbstractGriffonCommand

Authors:
Andres Almiray
Since:
0.9.5


Field Summary
private String archetype

private String controller

private String fileType

private String group

private String model

private String name

private String skipController

private String skipModel

private boolean skipPackagePrompt

private String skipView

private String view

private String withController

private String withModel

private String withView

 
Fields inherited from class AbstractGriffonCommand
env, nonInteractive
 
Constructor Summary
CreateMvcCommand()

 

Field Detail

archetype

@Option(name = "--archetype",
            description = "Archetype to be searched for templates.",
            required = false)
private String archetype


controller

@Option(name = "--controller",
            description = "Specifies the Controller template to be used.",
            required = false)
private String controller


fileType

@Option(name = "--file-type",
            description = "Source file type.",
            required = false)
private String fileType


group

@Option(name = "--group",
            description = "Specifies the common template to use on all MVC members.",
            required = false)
private String group


model

@Option(name = "--model",
            description = "Specifies the Model template to be used.",
            required = false)
private String model


name

@Argument(index = 0,
            name = "name",
            description = "The name of the group to be created.",
            required = false)
private String name


skipController

@Option(name = "--skip-controller",
            description = "Skips the creation of the controller MVC member.",
            required = false)
private String skipController


skipModel

@Option(name = "--skip-model",
            description = "Skips the creation of the model MVC member.",
            required = false)
private String skipModel


skipPackagePrompt

@Option(name = "--skip-package-prompt",
            description = "Skips the usage of the application's default package if the name of the class is not fully qualified.",
            required = false)
private boolean skipPackagePrompt


skipView

@Option(name = "--skip-view",
            description = "Skips the creation of the view MVC member.",
            required = false)
private String skipView


view

@Option(name = "--view",
            description = "Specifies the View template to be used.",
            required = false)
private String view


withController

@Option(name = "--with-controller",
            description = "Fully qualified className Controller to use.\nWARNING: the command will not create a file for this member.",
            required = false)
private String withController


withModel

@Option(name = "--with-model",
            description = "Fully qualified className Model to use.\nWARNING: the command will not create a file for this member.",
            required = false)
private String withModel


withView

@Option(name = "--with-view",
            description = "Fully qualified className View to use.\nWARNING: the command will not create a file for this member.",
            required = false)
private String withView


 
Constructor Detail

CreateMvcCommand

CreateMvcCommand()


 

Groovy Documentation