Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 42 lines (35 sloc) 1.267 kb
3e17890a »
2009-03-13 1.1 branch is now trunk
1 /*
2 * Copyright 2004-2005 the original author or authors.
835947fb »
2010-06-22 cleanup
3 *
3e17890a »
2009-03-13 1.1 branch is now trunk
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
835947fb »
2010-06-22 cleanup
7 *
3e17890a »
2009-03-13 1.1 branch is now trunk
8 * http://www.apache.org/licenses/LICENSE-2.0
835947fb »
2010-06-22 cleanup
9 *
3e17890a »
2009-03-13 1.1 branch is now trunk
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 /**
18 * Gant script that creates a Grails filters class
835947fb »
2010-06-22 cleanup
19 *
3e17890a »
2009-03-13 1.1 branch is now trunk
20 * @author Jeff Brown
21 *
22 * @since 1.0.4
23 */
24
25 includeTargets << grailsScript("_GrailsInit")
26 includeTargets << grailsScript("_GrailsCreateArtifacts")
27
28 target ('default': "Creates a new filters class") {
29 depends(checkVersion, parseArguments)
30
835947fb »
2010-06-22 cleanup
31 ant.mkdir(dir:"${basedir}/grails-app/conf")
3e17890a »
2009-03-13 1.1 branch is now trunk
32
33 def type = "Filters"
34 promptForName(type: type)
35
4a699175 »
2011-05-27 whitespace, STS warnings, etc.
36 for (name in argsMap["params"]) {
15946393 »
2010-09-28 fix for GRAILS-6740 "Create mutiple domain classes from CreateDomainC…
37 name = purgeRedundantArtifactSuffix(name, type)
38 createArtifact(name: name, suffix: type, type: type, path: "grails-app/conf")
4a699175 »
2011-05-27 whitespace, STS warnings, etc.
39 createUnitTest(name: name, suffix: type)
15946393 »
2010-09-28 fix for GRAILS-6740 "Create mutiple domain classes from CreateDomainC…
40 }
3e17890a »
2009-03-13 1.1 branch is now trunk
41 }
Something went wrong with that request. Please try again.