From: soares Date: Wed, 23 Oct 2019 20:14:31 +0000 (+0100) Subject: JAL-3210 some tidying X-Git-Tag: Release_2_11_4_0~45^2~18^2~101 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=7e5576b3b2e8bfca9e87555a728d9fda0f639ca0;p=jalview.git JAL-3210 some tidying --- diff --git a/build.gradle b/build.gradle index 3adbf24..c7d2311 100644 --- a/build.gradle +++ b/build.gradle @@ -167,7 +167,6 @@ ext { gitHash = "" gitBranch = "" - jalviewjsServer = "" } def JAVA_INTEGER_VERSION @@ -1430,11 +1429,13 @@ task jalviewjsCopySiteResources (type: Copy) { inputs.files inputFiles } -task cleanJalviewjs { +task jalviewjsTotalClean { + group "JalviewJS" + description "Delete everything to do with JalviewJS build" //delete jalviewjsBuildDir - //delete jalviewDir+"/"+eclipse_bin_dir - //delete file(eclipseWorkspace.getAbsolutePath()+"/.metadata") - //delete jalviewDir+"/"+jalviewjs_j2s_settings + delete jalviewDir+"/"+eclipse_bin_dir + delete file(eclipseWorkspace.getAbsolutePath()+"/.metadata") + delete jalviewDir+"/"+jalviewjs_j2s_settings } task jalviewjsProjectImport(type: Exec) { @@ -1535,9 +1536,9 @@ task jalviewjsBuildSite { dependsOn jalviewjsPrepareSite } -task cleanJalviewjsSite { - delete jalviewjsTransferSiteDir - delete jalviewjsSiteDir +task jalviewjsSiteClean { + //delete jalviewjsTransferSiteDir + //delete jalviewjsSiteDir } task jalviewjsSiteTar(type: Tar) { @@ -1574,7 +1575,7 @@ task jalviewjsServer { while(port < start+1000 && !running) { try { def doc_root = new File(jalviewDirAbsolutePath +"/"+ jalviewjsSiteDir) - jalviewjsServer = factory.start(doc_root, port) + def jalviewjsServer = factory.start(doc_root, port) running = true url = jalviewjsServer.getResourceUrl(jalviewjs_server_resource) println("SERVER STARTED with document root ${doc_root}.") @@ -1621,10 +1622,10 @@ task jalviewjsIDEBuildSite { dependsOn jalviewjsPrepareSite } -task cleanJalviewjsIDESite { +task jalviewjsIDESiteClean { group "JalviewJS in Eclipse" description "Deletes the Eclipse transpiled site" - dependsOn cleanJalviewjsSite + dependsOn jalviewjsSiteClean } task jalviewjsIDEServer {