Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 40 lines (33 sloc) 1.193 kB
3e17890 1.1 branch is now trunk
graeme authored
1 /*
2 * Copyright 2004-2005 the original author or authors.
3 *
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
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
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
19 *
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
31 ant.mkdir(dir:"${basedir}/grails-app/conf")
32
33 def type = "Filters"
34 promptForName(type: type)
35
36 def name = argsMap["params"][0]
37 createArtifact(name: name, suffix: type, type: type, path: "grails-app/conf")
38 createUnitTest(name: name, suffix: type)
39 }
Something went wrong with that request. Please try again.