testClassesDir = useClover ? cloverTestClassesDir : "${jalviewDir}/${test_output_dir}"
channelSuffix = ""
- backgroundImageText = false
+ backgroundImageText = BACKGROUNDIMAGETEXT
getdownChannelDir = string("${getdown_website_dir}/${propertiesChannelName}")
getdownAppBaseDir = string("${jalviewDir}/${getdownChannelDir}/${JAVA_VERSION}")
getdownArchiveDir = string("${jalviewDir}/${getdown_archive_dir}")
testng_excluded_groups = "Not-bamboo"
}
install4jExtraScheme = "jalviewb"
+ backgroundImageText = true
break
case [ "RELEASE", "JALVIEWJS-RELEASE" ]:
getdownDir = string("${getdownChannelName}/${JAVA_VERSION}")
getdownAppBase = file(getdownAppBaseDir).toURI().toString()
if (!file("${ARCHIVEDIR}/${package_dir}").exists()) {
- throw new GradleException("Must provide an ARCHIVEDIR value to produce an archive distribution")
+ throw new GradleException("Must provide an ARCHIVEDIR value to produce an archive distribution [did not find '${ARCHIVEDIR}/${package_dir}']")
} else {
package_dir = string("${ARCHIVEDIR}/${package_dir}")
buildProperties = string("${ARCHIVEDIR}/${classes_dir}/${build_properties_file}")
install4jSuffix = "Develop"
install4jExtraScheme = "jalviewd"
install4jInstallerName = "${jalview_name} Develop Installer"
+ backgroundImageText = true
break
case "TEST-RELEASE":
install4jSuffix = "Test"
install4jExtraScheme = "jalviewt"
install4jInstallerName = "${jalview_name} Test Installer"
+ backgroundImageText = true
break
case ~/^SCRATCH(|-[-\w]*)$/:
install4jSuffix = "Test-Local"
install4jExtraScheme = "jalviewt"
install4jInstallerName = "${jalview_name} Test Installer"
+ backgroundImageText = true
break
case [ "LOCAL", "JALVIEWJS" ]:
modules_compileClasspath = fileTree(dir: "${jalviewDir}/${j11modDir}", include: ["*.jar"])
modules_runtimeClasspath = modules_compileClasspath
*/
-
gitHash = "SOURCE"
gitBranch = "Source"
try {
}
return sections
}
-
-
task copyHelp(type: Copy) {
def inputDir = helpSourceDir
def outputDir = "${helpBuildDir}/${help_dir}"
outputs.file(releasesHtmlFile)
outputs.file(whatsnewHtmlFile)
}
-
-
task copyResources(type: Copy) {
group = "build"
description = "Copy (and make text substitutions in) the resources dir to the build area"
excludeGroups testng_excluded_groups
preserveOrder true
useDefaultListeners=true
+ // Uncomment to show stdout and stderr for tests in gradle build output
+ // testLogging.showStandardStreams = true
}
maxHeapSize = "1024m"
dependsOn getdownArchiveBuild
dependsOn getdownArchiveDigest
}
-
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
macosArchive.attributes().remove('executeSetupApp')
macosArchive.attributes().remove('setupAppId')
}
-
// turn off checksum creation for LOCAL channel
def e = install4jConfigXml.application[0]
e.'@createChecksums' = string(install4jCheckSums)
dependsOn installerFiles
}
-
spotless {
java {
eclipse().configFile(eclipse_codestyle_file)
task helppages {
group "help"
description "Copies all help pages to build dir. Runs ant task 'pubhtmlhelp'."
-
dependsOn copyHelp
dependsOn pubhtmlhelp