All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ework.profiles.profile.2022.2.5.source-code.create-feature.groovy Maven / Gradle / Ivy

description( "Creates a new profile feature" ) {
  usage "grace create-feature [Feature Name NAME]"
  argument name:'Feature Name', description:"The name of the feature", required:true
}

if(args) {
    def fn = args[0].trim()
    def dir = file("features/${fn}").canonicalPath
    render( '''
# customize configuration here
# my:
#   setting: true
#''', file("features/${fn}/skeleton/app/conf/application.yml"))

    render( '''
description: Description of the feature
# customize versions here
# dependencies:
#   compile:
#     - "org.grails.plugins:myplugin:1.0"
#''', file("features/${fn}/feature.yml") )

    console.addStatus "Feature created at ${projectPath(dir)}"
}
else {
    error "No command name specified"
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy