ework.profiles.web.2023.0.0-RC2.source-code.create-interceptor.yml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of web Show documentation
Show all versions of web Show documentation
A Grace profile for Web applications
description:
- Creates an interceptor
- usage: 'create-interceptor [interceptor name]'
- completer: org.grails.cli.interactive.completers.DomainClassCompleter
- argument: "Interceptor name"
description: "The name of the interceptor"
- flag: force
description: Whether to override existing files
steps:
- command: render
template: templates/artifacts/Interceptor.groovy
convention: Interceptor
destination: app/controllers/@artifact.package.path@/@[email protected]
- command: render
template: templates/testing/Interceptor.groovy
convention: Interceptor
destination: src/test/groovy/@artifact.package.path@/@[email protected]