From 159fb876d8075a863072fd03d43969bf14f5b6ef Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Wed, 9 Oct 2019 17:24:06 +0100 Subject: [PATCH] JAL-3456 Some task improvements for use in Eclipse as IDE --- build.gradle | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 5f514e8..6a3c1ca 100644 --- a/build.gradle +++ b/build.gradle @@ -814,15 +814,25 @@ jalviewjsUnzipFiles.mustRunAfter jalviewjsTranspile jalviewjsTranspile.mustRunAfter jalviewjsCopyResources jalviewjsTranspile.mustRunAfter jalviewjsCopySiteResources -task jalviewjsBuildSite { +task jalviewjsPrepareSite { + group "JalviewJS" + description "Prepares the website folder" dependsOn jalviewjsSitePath dependsOn jalviewjsUnzipFiles dependsOn jalviewjsCopyResources dependsOn jalviewjsCopySiteResources +} + +task jalviewjsBuildSite { + group "JalviewJS" + description "Builds the whole website including transpiled code" + dependsOn jalviewjsPrepareSite dependsOn jalviewjsTranspile } task jalviewjsSiteTar(type: Tar) { + group "JalviewJS" + description "Creates a tar.gz file for the website" dependsOn jalviewjsBuildSite def outputFilename = "jalviewjs-site-${JALVIEW_VERSION}.tar.gz" try { @@ -841,6 +851,8 @@ task jalviewjsSiteTar(type: Tar) { def jalviewjsServer = null task jalviewjsServerStart { + group "JalviewJS" + description "Starts a webserver on localhost to test the website" dependsOn jalviewjsSitePath doLast { @@ -906,6 +918,8 @@ task jalviewjs { project.afterEvaluate { + tasks.findByName('eclipse').dependsOn tasks.findByName('jalviewjsCreateJ2sSettings') + if (useIde) { tasks.findByName('ideJalviewjsImport').dependsOn eclipseProject tasks.findByName('ideJalviewjsImport').dependsOn eclipseClasspath -- 1.7.10.2