forked from JabRef/jabref
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxjc.gradle
27 lines (22 loc) · 919 Bytes
/
xjc.gradle
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
configurations {
xjc
}
dependencies {
xjc 'com.sun.xml.bind:jaxb-xjc:2.2.4-1'
}
task xjc {
inputs.dir "src/main/resources/xjc/medline/"
inputs.dir "src/main/resources/xjc/bibtexml/"
outputs.dir "src/main/gen/net/sf/jabref/logic/importer/fileformat/medline"
outputs.dir "src/main/gen/net/sf/jabref/logic/importer/fileformat/bibtexml"
ant.taskdef(name: 'xjc', classname: 'com.sun.tools.xjc.XJCTask', classpath: configurations.xjc.asPath)
doLast {
ant.xjc(destdir: 'src/main/gen/', package: 'net.sf.jabref.logic.importer.fileformat.medline') {
schema(dir: 'src/main/resources/xjc/medline', includes: 'medline.xsd')
}
ant.xjc(destdir: 'src/main/gen/', package: 'net.sf.jabref.logic.importer.fileformat.bibtexml') {
schema(dir: 'src/main/resources/xjc/bibtexml', includes: 'bibtexml.xsd')
}
}
}
tasks.compileJava.dependsOn xjc