Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- eclipse { project { name = 'discovery-container-discovery-web' } }
- apply plugin: 'jaxb'
- apply plugin: 'war'
- task wcopy(type: Copy) {
- from (file(project(":src:modules:ws-common").projectDir.absolutePath+"/wsdl"))
- into "$projectDir/wsdl"
- include('*.xsd')
- }
- sourceSets {
- test {
- resources {
- srcDir 'j2ee'
- srcDir 'wsdl'
- }
- }
- jaxbGen{
- jaxb{
- srcDir 'wsdl'
- include 'idis-discovery.xsd'
- include '*.xjb'
- exclude '*.wsdl'
- }
- }
- }
- generateJaxbGenSchemaSource.dependsOn wcopy
- jar{
- archiveName='discovery-web.jar'
- enabled=true
- }
- dependencies {
- compile project(":src:modules:ws-common")
- providedCompile project(':src:common:common')
- providedCompile project(":src:common:container:messaging")
- providedCompile project(":src:common:container:orm:orm-cramer")
- providedCompile project(":src:common:container:orm:orm-idis")
- providedCompile project(":src:modules:discovery:schema")
- providedCompile project(":src:modules:discovery:container:common")
- providedCompile project(":src:modules:discovery:container:sonis")
- providedCompile project(":src:modules:discovery:container:spring")
- jaxb libraries.xjc_jaxb
- testCompile project(path: ':src:common:container:unittest', configuration: 'testApi')
- testCompile project(path: ':src:common:container:messaging', configuration: 'testApi')
- testCompile project(path: ':src:modules:discovery:container:spring', configuration: 'testApi')
- testCompile project(path: ':src:common:container:orm:orm-cramer', configuration: 'testApi')
- testCompile project(path: ':src:common:container:orm:orm-idis', configuration: 'testApi')
- testCompile libraries.commons_pool
- testCompile libraries.activemq_all
- testCompile libraries.activemq_pool
- testCompile 'org.apache.xbean:xbean-spring:3.11'
- testRuntime libraries.aspectjrt
- testRuntime libraries.aspectjweaver
- providedCompile thirdparty_libraries.oracle6
- providedCompile thirdparty_libraries.weblogic
- compile fileTree(dir: "$libsDir", include: '*.jar',exclude:'*tests.jar')
- }
- task jaxbJar(type:Jar) {
- archiveName = 'discovery-web-xmlgen.jar'
- from (project.sourceSets.jaxbGen.output){
- include('**/*.class')
- exclude ('**/idis/intf/common/**')
- }
- into('wsdl'){
- from ('wsdl'){
- include('*.xsd')
- include('*.wsdl')
- }
- }
- }
- test.doFirst() {
- sourceSets.test.runtimeClasspath = project.sourceSets.test.output+project(':src:modules:discovery:container:common').sourceSets.test.runtimeClasspath +
- project(':src:common:container:unittest').sourceSets.test.runtimeClasspath +
- sourceSets.test.runtimeClasspath
- sourceSets.test.runtimeClasspath.each { println it }
- }
- war{
- dependsOn jar
- archiveName='discovery-web.war'
- classpath = configurations.runtime-configurations.providedCompile
- webInf {
- into('classes') {
- from (sourceSets.main.output){
- exclude 'log4j.properties'
- exclude '**/*.class'
- exclude '*.xml'
- }
- }
- from 'j2ee/WEB-INF'
- includeEmptyDirs=false
- }
- }
- configurations { schemaGen }
- artifacts { schemaGen jaxbJar }
- compileJava.dependsOn jaxbJar
- assemble.dependsOn war
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement