JAL-3210 tidying j2s and swingjs
authorBen Soares <bsoares@dundee.ac.uk>
Tue, 29 Oct 2019 19:50:07 +0000 (19:50 +0000)
committerBen Soares <bsoares@dundee.ac.uk>
Tue, 29 Oct 2019 19:50:07 +0000 (19:50 +0000)
build.gradle
gradle.properties
utils/jalviewjs/SwingJS-site.zip_4.12 [deleted file]
utils/jalviewjs/SwingJS-site.zip_4.13 [deleted file]
utils/jalviewjs/eclipse/cleanEclipseOptions [new file with mode: 0644]
utils/jalviewjs/eclipse/dropins/com.seeq.eclipse.importprojects.jar [moved from utils/jalviewjs/eclipse/dropins_4.12/com.seeq.eclipse.importprojects-1.4.0.jar with 100% similarity]
utils/jalviewjs/eclipse/dropins_4.12/net.sf.j2s.core-3.2.4-FOR_4.12.jar [deleted file]
utils/jalviewjs/eclipse/dropins_4.13/com.seeq.eclipse.importprojects-1.4.0.jar [deleted file]
utils/jalviewjs/eclipse/dropins_4.13/net.sf.j2s.core-3.2.4.08.jar [deleted file]
utils/jalviewjs/eclipse/unused_dropins/net.sf.j2s.core-3.2.4-FOR_4.12.jar [deleted file]
utils/jalviewjs/eclipse/unused_dropins/net.sf.j2s.core-3.2.4-FOR_4.13.jar [deleted file]

index bf27433..c9b1332 100644 (file)
@@ -1363,8 +1363,16 @@ task jalviewjsEclipsePaths {
   }
 }
 
-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
 
@@ -1382,14 +1390,43 @@ task jalviewjsEclipseCopyDropins {
     }
   }
 }
+*/
 
 // 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
 
@@ -1472,9 +1509,7 @@ task jalviewjsCopySiteResources (type: Copy) {
 }
 
 task jalviewjsProjectImport(type: Exec) {
-  dependsOn eclipseProject
-  dependsOn eclipseClasspath
-  dependsOn eclipseJdt
+  dependsOn eclipseSetup
   dependsOn jalviewjsEclipsePaths
   dependsOn jalviewjsEclipseSetup
 
index 7b5771f..6633946 100644 (file)
@@ -146,9 +146,9 @@ bamboo_getdown_channel_suffix = /latest/artifact/shared/getdown-channel
 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
diff --git a/utils/jalviewjs/SwingJS-site.zip_4.12 b/utils/jalviewjs/SwingJS-site.zip_4.12
deleted file mode 100644 (file)
index 6f2893d..0000000
Binary files a/utils/jalviewjs/SwingJS-site.zip_4.12 and /dev/null differ
diff --git a/utils/jalviewjs/SwingJS-site.zip_4.13 b/utils/jalviewjs/SwingJS-site.zip_4.13
deleted file mode 100644 (file)
index c0ebd8f..0000000
Binary files a/utils/jalviewjs/SwingJS-site.zip_4.13 and /dev/null differ
diff --git a/utils/jalviewjs/eclipse/cleanEclipseOptions b/utils/jalviewjs/eclipse/cleanEclipseOptions
new file mode 100644 (file)
index 0000000..1f226eb
--- /dev/null
@@ -0,0 +1,3 @@
+org.eclipse.equinox.p2.core/debug=true
+org.eclipse.equinox.p2.core/reconciler=true
+
diff --git a/utils/jalviewjs/eclipse/dropins_4.12/net.sf.j2s.core-3.2.4-FOR_4.12.jar b/utils/jalviewjs/eclipse/dropins_4.12/net.sf.j2s.core-3.2.4-FOR_4.12.jar
deleted file mode 100644 (file)
index e8288a9..0000000
Binary files a/utils/jalviewjs/eclipse/dropins_4.12/net.sf.j2s.core-3.2.4-FOR_4.12.jar and /dev/null differ
diff --git a/utils/jalviewjs/eclipse/dropins_4.13/com.seeq.eclipse.importprojects-1.4.0.jar b/utils/jalviewjs/eclipse/dropins_4.13/com.seeq.eclipse.importprojects-1.4.0.jar
deleted file mode 100644 (file)
index 69d7603..0000000
Binary files a/utils/jalviewjs/eclipse/dropins_4.13/com.seeq.eclipse.importprojects-1.4.0.jar and /dev/null differ
diff --git a/utils/jalviewjs/eclipse/dropins_4.13/net.sf.j2s.core-3.2.4.08.jar b/utils/jalviewjs/eclipse/dropins_4.13/net.sf.j2s.core-3.2.4.08.jar
deleted file mode 100644 (file)
index 3570945..0000000
Binary files a/utils/jalviewjs/eclipse/dropins_4.13/net.sf.j2s.core-3.2.4.08.jar and /dev/null differ
diff --git a/utils/jalviewjs/eclipse/unused_dropins/net.sf.j2s.core-3.2.4-FOR_4.12.jar b/utils/jalviewjs/eclipse/unused_dropins/net.sf.j2s.core-3.2.4-FOR_4.12.jar
deleted file mode 100644 (file)
index e8288a9..0000000
Binary files a/utils/jalviewjs/eclipse/unused_dropins/net.sf.j2s.core-3.2.4-FOR_4.12.jar and /dev/null differ
diff --git a/utils/jalviewjs/eclipse/unused_dropins/net.sf.j2s.core-3.2.4-FOR_4.13.jar b/utils/jalviewjs/eclipse/unused_dropins/net.sf.j2s.core-3.2.4-FOR_4.13.jar
deleted file mode 100644 (file)
index a3dff95..0000000
Binary files a/utils/jalviewjs/eclipse/unused_dropins/net.sf.j2s.core-3.2.4-FOR_4.13.jar and /dev/null differ