Skip to content

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
3e17890 1.1 branch is now trunk
graeme authored
1 /*
2 * Copyright 2004-2005 the original author or authors.
835947f Burt Beckwith cleanup
burtbeckwith authored
3 *
3e17890 1.1 branch is now trunk
graeme authored
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
835947f Burt Beckwith cleanup
burtbeckwith authored
7 *
3e17890 1.1 branch is now trunk
graeme authored
8 * http://www.apache.org/licenses/LICENSE-2.0
835947f Burt Beckwith cleanup
burtbeckwith authored
9 *
3e17890 1.1 branch is now trunk
graeme authored
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
835947f Burt Beckwith cleanup
burtbeckwith authored
19 *
3e17890 1.1 branch is now trunk
graeme authored
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
835947f Burt Beckwith cleanup
burtbeckwith authored
31 ant.mkdir(dir:"${basedir}/grails-app/conf")
3e17890 1.1 branch is now trunk
graeme authored
32
33 def type = "Filters"
34 promptForName(type: type)
35
4a69917 Burt Beckwith whitespace, STS warnings, etc.
burtbeckwith authored
36 for (name in argsMap["params"]) {
1594639 graemerocher fix for GRAILS-6740 "Create mutiple domain classes from CreateDomainClas...
graemerocher authored
37 name = purgeRedundantArtifactSuffix(name, type)
38 createArtifact(name: name, suffix: type, type: type, path: "grails-app/conf")
4a69917 Burt Beckwith whitespace, STS warnings, etc.
burtbeckwith authored
39 createUnitTest(name: name, suffix: type)
1594639 graemerocher fix for GRAILS-6740 "Create mutiple domain classes from CreateDomainClas...
graemerocher authored
40 }
3e17890 1.1 branch is now trunk
graeme authored
41 }
Something went wrong with that request. Please try again.