Griffon 1.2.0

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

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

@Command(scope = "griffon",
        name = "install-archetype",
        description = "Installs an archetype for the given URL or name and version")
public class InstallArchetypeCommand
extends AbstractGriffonCommand

Authors:
Andres Almiray
Since:
0.9.5


Field Summary
private String forceUpgrade

private String name

private String repository

private String version

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

 

Field Detail

forceUpgrade

@Option(name = "--force-upgrade",
            description = "Forces upgrade if the archetype to be installed has a bigger major version than the currently installed (if there's one archetype installed that matches the same name).",
            required = false)
private String forceUpgrade


name

@Argument(index = 0,
            name = "name",
            description = "The name of the archetype to install. You may specify an URL, a zip file or a regular name.",
            required = true)
private String name


repository

@Option(name = "--repository",
            description = "Name of an specific repository where the search will be performed.",
            required = false)
private String repository


version

@Argument(index = 1,
            name = "version",
            description = "The version of the archetype to install. May only be specified if an archetype name is supplied.",
            required = false)
private String version


 
Constructor Detail

InstallArchetypeCommand

InstallArchetypeCommand()


 

Groovy Documentation