def compile_source_compatibility
def compile_target_compatibility
-
ext {
getdownWebsiteDir = "${jalviewDir}/${getdown_website_dir}/${JAVA_VERSION}"
getdownDir = ""
dependsOn jalviewjsEclipsePaths
dependsOn jalviewjsEclipseSetup
+ doFirst {
+ // do not run a headless import when we claim to be in Eclipse
+ if (ECLIPSE_IDE_DEVELOPER.equals("true")) {
+ throw new StopExecutionException("Not running headless import whilst ECLIPSE_IDE_DEVELOPER is '"+ECLIPSE_IDE_DEVELOPER+"'")
+ }
+ }
+
//def projdir = eclipseWorkspace.getPath()+"/.metadata/.plugins/org.eclipse.core.resources/.projects/jalview/org.eclipse.jdt.core"
def projdir = eclipseWorkspace.getPath()+"/.metadata/.plugins/org.eclipse.core.resources/.projects/jalview"
executable(eclipseBinary)
dependsOn jalviewjsProjectImport
dependsOn jalviewjsEclipsePaths
+ doFirst {
+ // do not run a headless transpile when we claim to be in Eclipse
+ if (ECLIPSE_IDE_DEVELOPER.equals("true")) {
+ throw new StopExecutionException("Not running headless transpile whilst ECLIPSE_IDE_DEVELOPER is '"+ECLIPSE_IDE_DEVELOPER+"'")
+ }
+ }
+
executable(eclipseBinary)
args(["-nosplash", "--launcher.suppressErrors", "-application", "org.eclipse.jdt.apt.core.aptBuild", "-data", eclipseWorkspace, "-${jalviewjs_eclipse_build_arg}", eclipse_project_name ])
if (eclipseDebug) {
doLast {
if (stdout.toString().contains("Error processing ")) {
// j2s did not complete transpile
+ //throw new TaskExecutionException("Error during transpilation:\n${stderr}\nSee eclipse transpile log file '${jalviewDir}/${jalviewjsBuildDir}/${jalviewjs_j2s_transpile_stdout}'")
throw new GradleException("Error during transpilation:\n${stderr}\nSee eclipse transpile log file '${jalviewDir}/${jalviewjsBuildDir}/${jalviewjs_j2s_transpile_stdout}'")
}
}