compileClasspath = files(sourceSets.main.java.outputDir)
compileClasspath += fileTree(dir: "$jalviewDir/$libDir", include: ["*.jar"])
- //compileClasspath += fileTree(dir: "$jalviewDir/$j11libDir", include: ["*.jar"])
+ if (JAVA_VERSION.equals("1.8")) {
+ print("ADDING J11LIBS TO CLASSPATH")
+ compileClasspath += fileTree(dir: "$jalviewDir/$j11libDir", include: ["*.jar"])
+ }
runtimeClasspath = compileClasspath
}
'--add-modules', j11modules
]
}
+ print ("Setting target compatibility to "+targetCompatibility+"\n")
}
}
}
props.each{ prop, val ->
if (prop.startsWith("getdown_txt_") && val != null) {
- // file values rationalised
- if (val.indexOf('/') > -1) {
- def r = null
- if (val.indexOf('/') == 0) {
- // absolute path
- r = file(val)
- } else if (val.indexOf('/') > 0) {
- // relative path (relative to jalviewDir)
- r = file( jalviewDir + '/' + val )
+ if (prop.startsWith("getdown_txt_multi_")) {
+ def key = prop.substring(18)
+ val.split(",").each{ v ->
+ def line = key + " = " + v + "\n"
+ getdownTextString += line
}
- if (r.exists()) {
- val = getdown_resource_dir + '/' + r.getName()
- getdownWebsiteResourceFilenames += val
- getdownResourceFilenames += r.getPath()
+ } else {
+ // file values rationalised
+ if (val.indexOf('/') > -1) {
+ def r = null
+ if (val.indexOf('/') == 0) {
+ // absolute path
+ r = file(val)
+ } else if (val.indexOf('/') > 0) {
+ // relative path (relative to jalviewDir)
+ r = file( jalviewDir + '/' + val )
+ }
+ if (r.exists()) {
+ val = getdown_resource_dir + '/' + r.getName()
+ getdownWebsiteResourceFilenames += val
+ getdownResourceFilenames += r.getPath()
+ }
}
+ def line = prop.substring(12) + " = " + val + "\n"
+ getdownTextString += line
}
- def line = prop.substring(12) + " = " + val + "\n"
- getdownTextString += line
}
}