def jalviewjsBuildDir
def jalviewjsSiteDir
+def jalviewjsTransferSiteDir
task jalviewjsSitePath {
if (jalviewjs_site_dir.startsWith("/")) {
jalviewjsSiteDir = jalviewjs_site_dir
jalviewjsBuildDir = "${relativeBuildDir}/jalviewjs"
jalviewjsSiteDir = jalviewjsBuildDir + "/" + jalviewjs_site_dir
}
+ jalviewjsTransferSiteDir = jalviewjsBuildDir + "/tmp/site"
}
if (prop.startsWith("j2s.") && val != null) {
if (prop == siteDirProperty) {
if (!(val.startsWith("/") || val.startsWith("file://") )) {
- val = jalviewjsSiteDir+"/"+val
+ val = jalviewjsTransferSiteDir+"/"+val
}
setSiteDir = true
}
property(prop,val)
}
if (!setSiteDir) {
- property(siteDirProperty,"${jalviewjsSiteDir}")
+ property(siteDirProperty,jalviewjsTransferSiteDir)
}
}
outputs.file(outputFile)
inputs.dir(sourceDir)
outputs.dir(eclipse_bin_dir+"/main")
- outputs.files(
- fileTree(
- dir: jalviewjsSiteDir+"/"+jalviewjs_j2s_subdir,
- includes: [ "**/*.js" ],
- excludes: [
- //jalviewjsSiteDir+"/"+jalviewjs_j2s_subdir+"/intervalstore/**",
- //jalviewjsSiteDir+"/"+jalviewjs_j2s_subdir+"/org/json/**",
- "intervalstore/**",
- "org/json/**",
- ]
- ).files
- )
- outputs.file(jalviewjsSiteDir+jalviewjs_server_resource)
-
-}
-
-jalviewjsUnzipFiles.mustRunAfter jalviewjsTranspile
-jalviewjsTranspile.mustRunAfter jalviewjsCopyResources
-jalviewjsTranspile.mustRunAfter jalviewjsCopySiteResources
+ outputs.dir(jalviewjsTransferSiteDir)
+
+}
+
+task jalviewjsCopyTransferSite(type: Copy) {
+ dependsOn jalviewjsTranspile
+ from jalviewjsTransferSiteDir
+ into jalviewjsSiteDir
+}
+
+jalviewjsUnzipFiles.mustRunAfter jalviewjsCopyTransferSite
+jalviewjsCopyResources.mustRunAfter jalviewjsCopyTransferSite
+jalviewjsCopySiteResources.mustRunAfter jalviewjsCopyTransferSite
task jalviewjsPrepareSite {
group "JalviewJS"
task jalviewjsBuildSite {
group "JalviewJS"
description "Builds the whole website including transpiled code"
+ dependsOn jalviewjsCopyTransferSite
dependsOn jalviewjsPrepareSite
- dependsOn jalviewjsTranspile
}
task jalviewjsSiteTar(type: Tar) {
}
task jalviewjs {
+ group "JalviewJS"
+ description "Build the site"
dependsOn jalviewjsBuildSite
}
eclipse_project_name = jalview
eclipse_bin_dir = bin
-jalviewjs_eclipse_root = ~/buildtools/eclipse/eclipse-jee-2019-06
+jalviewjs_eclipse_root = ~/buildtools/eclipse/eclipse-jee-2019-09
jalviewjs_utils_dir = utils/jalviewjs
jalviewjs_eclipse_dropins_dir = eclipse/dropins
jalviewjs_server_resource = /jalview_bin_Jalview.html
j2s.compiler.status = enable
-#j2s.site.directory = null
-#j2s.log.methods.declared = null
-#j2s.log.methods.called = null
+#j2s.site.directory = null ## site defined from buildDir+'/jalviewjs/'+jalviewjs_site_dir
+#j2s.log.methods.declared = j2s_methods_declared.log
+#j2s.log.methods.called = j2s_methods_called.log
#a semicolon-separated list of package-level file paths to be excluded
j2s.excluded.paths = test;testng;util
+j2s.include.tests = true
#j2s.testing = null
#j2s.compiler.nonqualified.packages = null
#j2s.compiler.nonqualified.classes = null