diff options
Diffstat (limited to 'moaSig/moa-sig/build.gradle')
-rw-r--r-- | moaSig/moa-sig/build.gradle | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/moaSig/moa-sig/build.gradle b/moaSig/moa-sig/build.gradle index 2c33a5e..c366cf0 100644 --- a/moaSig/moa-sig/build.gradle +++ b/moaSig/moa-sig/build.gradle @@ -14,8 +14,51 @@ dependencies { compile 'commons-discovery:commons-discovery:0.5' compile 'org.slf4j:slf4j-log4j12:1.7.12' + compile 'org.apache.cxf:cxf-rt-frontend-jaxws:3.1.4' + compile 'org.apache.cxf:cxf-rt-transports-http:3.1.4' + compile 'org.aspectj:aspectjrt:1.8.7' + compile 'org.aspectj:aspectjweaver:1.8.7' + compile 'at.gv.egiz.pdfas:pdf-as-lib:4.0.7' compile 'at.gv.egiz.pdfas:pdf-as-pdfbox:4.0.7' compile 'at.gv.egiz.pdfas:sigs-pades:4.0.7' } +sourceSets { + main { + java { + srcDirs = ['src/main/java', 'src/generated/java'] + } + } +} + +configurations { + jaxb +} + +dependencies { + jaxb group: 'com.sun.xml.bind', name: 'jaxb-xjc', version: '2.2.4-1' +} + +task jaxb () { + // output directory + def jaxbTargetDir = file( "${projectDir}/src/generated/java" ) + //jaxbTargetDirMoaSig = file( jaxbTargetDir.path ) + + // perform actions + doLast { + jaxbTargetDir.mkdirs() + + ant.taskdef(name: 'xjc', classname: 'com.sun.tools.xjc.XJCTask', classpath: configurations.jaxb.asPath) + //ant.jaxbTargetDirMoaSig = jaxbTargetDir + + // MOA Sig + ant.xjc( + destdir: jaxbTargetDir.path, + package: 'at.gv.egiz.moasig', + schema: 'src/main/resources/resources/schemas/MOA-SIG-3.0.0.xsd' + ) + } +} + +//compileJava.dependsOn jaxb |