}
}
-task jalviewjsEclipseCopyDropins {
+task eclipseSetup {
+ dependsOn eclipseProject
+ dependsOn eclipseClasspath
+ dependsOn eclipseJdt
+}
+
+/* using the Copy task below
+task OLDjalviewjsEclipseCopyDropins {
dependsOn jalviewjsEclipsePaths
+ dependsOn jalviewjsCleanEclipse
def inputFiles = fileTree(dir: utilsDropinsDir, include: "*.jar")
def outputDir = eclipseDropinsDir
}
}
}
+*/
// this version (type: Copy) will delete anything in the eclipse dropins folder that isn't in fromDropinsDir
-task NEWjalviewjsEclipseCopyDropins(type: Copy) {
+task jalviewjsEclipseCopyDropins(type: Copy) {
dependsOn jalviewjsEclipsePaths
+
from utilsDropinsDir
into eclipseDropinsDir
}
+// this eclipse -clean doesn't actually work
+task jalviewjsCleanEclipse(type: Exec) {
+ dependsOn eclipseSetup
+ dependsOn jalviewjsEclipsePaths
+ dependsOn jalviewjsEclipseCopyDropins
+
+ executable(eclipseBinary)
+ args(["-nosplash", "--launcher.suppressErrors", "-data", eclipseWorkspace.getPath(), "-clean", "-console", "-consoleLog"])
+ if (eclipseDebug) {
+ args += "-debug"
+ }
+ args += "-l"
+
+ def inputString = """exit
+y
+"""
+ def inputByteStream = new ByteArrayInputStream(inputString.getBytes())
+ standardInput = inputByteStream
+
+ doFirst {
+ println("CLEAN ECLIPSE_DEBUG=${eclipseDebug}")
+ }
+}
+/* not really working yet
+jalviewjsEclipseCopyDropins.finalizedBy jalviewjsCleanEclipse
+*/
+
task jalviewjsUnzipFiles {
dependsOn jalviewjsSitePath
}
task jalviewjsProjectImport(type: Exec) {
- dependsOn eclipseProject
- dependsOn eclipseClasspath
- dependsOn eclipseJdt
+ dependsOn eclipseSetup
dependsOn jalviewjsEclipsePaths
dependsOn jalviewjsEclipseSetup
eclipse_extra_jdt_prefs_file = .settings/org.eclipse.jdt.core.jalview.prefs
eclipse_project_name = jalview
eclipse_bin_dir = bin
-eclipse_debug = true
+eclipse_debug = false
-jalviewjs_eclipse_root = ~/buildtools/eclipse/jee-2019-06
+jalviewjs_eclipse_root = ~/buildtools/eclipse/jee-2019-09
jalviewjs_utils_dir = utils/jalviewjs
jalviewjs_eclipse_dropins_dir = eclipse/dropins