} else {
println("HEADLESS BUILD")
}
+
+ J2S_ENABLED = (project.hasProperty('j2s.compiler.status') && project['j2s.compiler.status'] != null && project['j2s.compiler.status'] == "enable")
+ if (J2S_ENABLED) {
+ println("J2S ENABLED")
+ }
+
/* *-/
System.properties.sort { it.key }.each {
key, val -> println("SYSTEM PROPERTY ${key}='${val}'")
break
}
+buildProperties = string("${resourceDir}/${build_properties_file}")
getdownAppDir = string("${getdownWebsiteDir}/${getdown_app_dir}")
//getdownJ11libDir = "${getdownWebsiteDir}/${getdown_j11lib_dir}"
if (IN_ECLIPSE) {
// Don't want these to be activated if in headless build
synchronizationTasks "eclipseSynchronizationTask"
- autoBuildTasks "eclipseAutoBuildTask"
+ //autoBuildTasks "eclipseAutoBuildTask"
}
}
task createBuildProperties(type: WriteProperties) {
+ group = "build"
+ description = "Create the ${buildProperties} file"
dependsOn setGitVals
inputs.dir(sourceDir)
inputs.dir(resourceDir)
}
+clean {
+ doFirst {
+ delete buildProperties
+ }
+}
+
+
task cleanBuildingHTML(type: Delete) {
doFirst {
delete buildingHTML
task syncResources(type: Sync) {
+ dependsOn createBuildProperties
from resourceDir
include "**/*.*"
into "${classesDir}"
}
}
+
jar {
dependsOn linkCheck
dependsOn buildIndices
doFirst {
def j2sPlugin = string("${jalviewDir}/${jalviewjs_j2s_plugin}")
def j2sPluginFile = file(j2sPlugin)
- def eclipseHome = System.properties["eclipse.home.location"]
def copyPlugin = jalviewjs_eclipseIDE_auto_copy_j2s_plugin == "true"
+ def eclipseHome = System.properties["eclipse.home.location"]
def doCopy = false
if (eclipseHome == null || ! IN_ECLIPSE) {
throw new StopExecutionException("Cannot find running Eclipse home from System.properties['eclipse.home.location']. Skipping J2S Plugin Check.")
// buildship runs this at import or gradle refresh
task eclipseSynchronizationTask {
//dependsOn eclipseSetup
- dependsOn jalviewjsIDE_j2sFile
- dependsOn jalviewjsIDE_checkJ2sPlugin
+ dependsOn createBuildProperties
+ if (J2S_ENABLED) {
+ dependsOn jalviewjsIDE_j2sFile
+ dependsOn jalviewjsIDE_checkJ2sPlugin
+ dependsOn jalviewjsIDE_PrepareSite
+ }
}
// buildship runs this at build time or project refresh
task eclipseAutoBuildTask {
//dependsOn jalviewjsIDE_checkJ2sPlugin
- dependsOn jalviewjsIDE_PrepareSite
+ //dependsOn jalviewjsIDE_PrepareSite
}