Griffon 1.2.0

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

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

@Command(scope = "griffon",
        name = "replace-artifact",
        description = "Replaces an artifact file using another template")
public class ReplaceArtifactCommand
extends AbstractGriffonCommand

Authors:
Andres Almiray
Since:
1.0.0


Field Summary
private String archetype

private String fileType

private String name

private String type

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

 

Field Detail

archetype

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


fileType

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


name

@Argument(index = 0,
            name = "name",
            description = "The fully qualified name of the artifact to be replaced.",
            required = false)
private String name


type

@Option(name = "--type",
            description = "Artifact type, i.e, controller, model, etc.",
            required = true)
private String type


 
Constructor Detail

ReplaceArtifactCommand

ReplaceArtifactCommand()


 

Groovy Documentation