}
-task jalviewjs {
- group "JalviewJS"
- description "Build the site"
- dependsOn jalviewjsBuildSite
-}
-
-
task jalviewjsCopyStderrLaunchFile(type: Copy) {
from file(jalviewjs_stderr_launch)
into jalviewjsSiteDir
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()
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
}