task jalviewjsSetTempEclipseWorkspace {
tempEclipseWorkspace = file(jalviewjs_eclipse_workspace)
- if (!tempEclipseWorkspace.exists()) {
+ if (!tempEclipseWorkspace.exists() && jalviewjs_eclipse_workspace.startsWith(File.separator)) {
tempEclipseWorkspace = File.createTempDir()
print("ECLIPSE WORKSPACE: "+tempEclipseWorkspace.getPath())
- //tempEclipseWorkspace.deleteOnExit()
+ tempEclipseWorkspace.deleteOnExit()
}
}
dependsOn jalviewjsTranspile
}
+task jalviewjsSiteTar(type: Tar) {
+ dependsOn jalviewjsBuildSite
+ def outputFilename = "site.tar.gz"
+ try {
+ archiveFileName = outputFilename
+ } catch (Exception e) {
+ archiveName = outputFilename
+ }
+
+ compression Compression.GZIP
+
+ from jalviewjs_site_dir
+ into jalviewjs_site_dir
+
+ inputs.dir(jalviewjs_site_dir)
+}
+
task jalviewjs {
dependsOn jalviewjsCreateJ2sSettings
dependsOn jalviewjsBuildSite
}
+
jalviewDir = .
-JAVA_VERSION = 1.8
-#JAVA_VERSION = 11
+#JAVA_VERSION = 1.8
+JAVA_VERSION = 11
JALVIEW_VERSION = DEVELOPMENT
INSTALLATION = Source
dev = false
-jalviewjs_eclipse_root = /Users/bsoares/buildtools/eclipse/eclipse-jee-2019-06/Eclipse.app
-#jalviewjs_eclipse_root = /home/bsoares/buildtools/eclipse/eclipse-jee-2019-06
+#jalviewjs_eclipse_root = /Users/bsoares/buildtools/eclipse/eclipse-jee-2019-06/Eclipse.app
+jalviewjs_eclipse_root = /home/bsoares/buildtools/eclipse/eclipse-jee-2019-06
jalviewjs_utils_dir = utils/jalviewjs
jalviewjs_eclipse_plugins_dir = eclipse/plugins
jalviewjs_j2s_subdir = swingjs/j2s
jalviewjs_j2s_settings_file = dot_j2s
jalviewjs_j2s_settings = .j2s
-jalviewjs_eclipse_workspace = /tmp/eclipse-workspace
+jalviewjs_eclipse_workspace = ../tmp/eclipse-workspace
jalviewjs_eclipseBuildArg = build
#jalviewjs_eclipseBuildArg = cleanBuild