Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 8e29470aa6
Fetching contributors…

Cannot retrieve contributors at this time

file 62 lines (56 sloc) 1.92 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
task createSharedFilesJar(type: Jar, description: 'Package up the files that are shared by both applications and plugins.') {
    version = null
    appendix = "shared-files"
    ext.appFileJar = true
    from("src/war/WEB-INF") {
        into "web-app/WEB-INF"
        include "applicationContext.xml", "sitemesh.xml", "tld/*.tld"
    }
    from("src/grails/grails-app/conf") {
        into "grails-app/conf"
        include "DataSource.groovy", "UrlMappings.groovy"
    }
}

task createSharedApplicationFilesJar(type: Jar, description: 'Package up the files that are exclusive to applications.') {
    version = null
    appendix = "app-files"
    ext.appFileJar = true
    from("src/war") {
        into "web-app"
        exclude "WEB-INF/**"
    }
    from("src/grails/grails-app") {
        into "grails-app"
        exclude "taglib/**", "utils/**", "conf/DataSource.groovy", "conf/UrlMappings.groovy"
    }
}

task createSharedPluginFilesJar(type: Jar, description: 'Package up the files that are exclusive to plugins.') {
    version = null
    appendix = "plugin-files"
    ext.appFileJar = true
    from("src/grails/templates/plugins")
    from("src/grails") {
        include "grails-app/views/error.gsp"
    }
    from("src/grails/plugin")
}

task createIntegrationFilesJar(type: Jar, description: 'Files to integrate Grails with IDEs and build systems.') {
    version = null
    appendix = "integration-files"
    ext.appFileJar = true
    from("src/grails/templates/ide-support", "src/grails/ant")
}

ext.allJarFileTasks = tasks.matching { it.hasProperty("appFileJar") }
task resourceJarFiles(dependsOn: allJarFileTasks)

jar {
    from allJarFileTasks
    from("src/war") {
        into "src/war"
        include "WEB-INF/**"
        exclude 'WEB-INF/tld/grails.tld', 'WEB-INF/tld/spring.tld'
    }
    from("src/grails/templates") {
        into "src/grails/templates"
    }
}

jar.appendix = 'resources'
Something went wrong with that request. Please try again.