Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 38 lines (32 sloc) 1.176 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 tag library
19 *
20 * @author Graeme Rocher
21 *
22 * @since 0.4
23 */
24
25 includeTargets << grailsScript("_GrailsInit")
26 includeTargets << grailsScript("_GrailsCreateArtifacts")
27
28 target ('default': "Creates a new tag library") {
29 depends(checkVersion, parseArguments)
30
31 def type = "TagLib"
32 promptForName(type: type)
33
34 def name = argsMap["params"][0]
35 createArtifact(name: name, suffix: type, type: type, path: "grails-app/taglib")
36 createUnitTest(name: name, suffix: type, superClass: "TagLibUnitTestCase")
37 }
Something went wrong with that request. Please try again.