Skip to content
Newer
Older
100755 48 lines (41 sloc) 1.35 KB
7995c9f @graemerocher ignoring test temporarily, as due to infrastructure issues it is not …
graemerocher authored Jun 19, 2012
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 import org.codehaus.groovy.grails.compiler.GrailsProjectPackager
18
19 /**
20 * Gant script that handles the packaging of Grails plug-ins.
21 *
22 * @author Graeme Rocher
23 *
24 * @since 0.4
25 */
26
27 projectPackager = new GrailsProjectPackager(projectCompiler, configFile, false)
28 projectPackager.servletVersion = servletVersion
29
30 packageFiles = { String from ->
31 projectPackager.packageConfigFiles(from)
32 }
33
34 target(packagePlugins : "Packages any Grails plugins that are installed for this project") {
35 depends(classpath, resolveDependencies)
36 projectPackager.packagePlugins()
37 }
38
39 packagePluginsForWar = { targetDir ->
40 try {
41 projectPackager.packagePluginsForWar(targetDir)
42 }
43 catch(e) {
44 grailsConsole.error e.message, e
45 exit 1
46 }
47 }
Something went wrong with that request. Please try again.