X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=build.gradle;fp=build.gradle;h=f2aced518dc46275e2e4e45a012adab718b80393;hb=dda0407943edf42c3ad816d9ec9a30ba1ba2b921;hp=e0c80e3548e5423608f5abb3cbf2e53da995df8e;hpb=3fac1f93347ade5faa14c3f1c3fb2fd3d9b9e5bb;p=jalview.git diff --git a/build.gradle b/build.gradle index e0c80e3..f2aced5 100644 --- a/build.gradle +++ b/build.gradle @@ -4203,13 +4203,6 @@ task eclipseAutoBuildTask { } -task jalviewjs { - group "JalviewJS" - description "Build the site" - dependsOn jalviewjsBuildSite -} - - task jalviewjsCopyStderrLaunchFile(type: Copy) { from file(jalviewjs_stderr_launch) into jalviewjsSiteDir @@ -4248,7 +4241,7 @@ task jalviewjsLaunchTest(type: Exec) { doFirst { def exec = file(chromiumBinary) if (!exec.exists()) { - throw new GradleException("Could not find chromium binary '${chromiumBinary}'. Cannot run task ${name}.") + throw new StopExecutionException("Could not find chromium binary '${chromiumBinary}'. Cannot run task ${name}.") } stdout = new ByteArrayOutputStream() @@ -4292,5 +4285,13 @@ task jalviewjsLaunchTest(type: Exec) { if (!found) { throw new GradleException("Could not find evidence of Desktop launch in JalviewJS.") } - } + } +} + + +task jalviewjs { + group "JalviewJS" + description "Build the JalviewJS site and run the launch test" + dependsOn jalviewjsBuildSite + dependsOn jalviewjsLaunchTest }