aboutsummaryrefslogtreecommitdiff
path: root/moaSig/moa-asic/build.gradle
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2016-06-20 12:45:07 +0200
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2016-06-20 12:45:07 +0200
commit53ae98cdfa510650c1e015efd0d11a96ad4dc87a (patch)
tree8e7ab77a9208b541416d14bbdb15e7211ff40c5b /moaSig/moa-asic/build.gradle
parentacf1b849ab835bc6797adfb91f8ab4fa88f0aff5 (diff)
downloadmoa-sig-53ae98cdfa510650c1e015efd0d11a96ad4dc87a.tar.gz
moa-sig-53ae98cdfa510650c1e015efd0d11a96ad4dc87a.tar.bz2
moa-sig-53ae98cdfa510650c1e015efd0d11a96ad4dc87a.zip
ASiC Library added
Diffstat (limited to 'moaSig/moa-asic/build.gradle')
-rw-r--r--moaSig/moa-asic/build.gradle56
1 files changed, 56 insertions, 0 deletions
diff --git a/moaSig/moa-asic/build.gradle b/moaSig/moa-asic/build.gradle
new file mode 100644
index 0000000..d615c1f
--- /dev/null
+++ b/moaSig/moa-asic/build.gradle
@@ -0,0 +1,56 @@
+apply plugin: 'java-library-distribution'
+
+distributions {
+ main{
+ baseName = 'MOA-ASIC'
+ }
+}
+
+configurations {
+ jaxb
+}
+
+dependencies {
+
+ jaxb group: 'com.sun.xml.bind', name: 'jaxb-xjc', version: '2.2.4-1'
+
+ compile project(':common')
+ compile project(':moa-sig-lib')
+ compile 'org.slf4j:slf4j-log4j12:1.7.12'
+}
+
+sourceSets {
+ main {
+ java {
+ srcDirs = ['src/main/java', 'src/generated/java']
+ }
+ }
+}
+
+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.asic',
+ schema: 'src/main/resources/schemas/asic.xsd'
+ )
+ }
+}
+
+task releases(type: Copy) {
+ from jar.outputs
+ from distZip.outputs
+ from distTar.outputs
+ into rootDir.toString() + "/releases/" + version
+}