From: soares Date: Tue, 15 Oct 2019 13:18:50 +0000 (+0100) Subject: JAL-3210 Added README_GRADLE_JALVIEWJS-2019-10-15.md X-Git-Tag: Release_2_11_4_0~45^2~18^2~115 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=09fe3073a5f054936287c095e019907f178ff414;p=jalview.git JAL-3210 Added README_GRADLE_JALVIEWJS-2019-10-15.md --- diff --git a/README_GRADLE_JALVIEWJS-2019-10-15.md b/README_GRADLE_JALVIEWJS-2019-10-15.md new file mode 100644 index 0000000..610ce9b --- /dev/null +++ b/README_GRADLE_JALVIEWJS-2019-10-15.md @@ -0,0 +1,38 @@ +Last updated: 2019-10-09 + +# TRANSPILING USING ECLIPSE AS AN EXTERNAL CLI TOOL: + +Download and install a clean eclipse-jee-2019-06 (or eclipse-jee-2019-09) + +In gradle.properties edit `jalviewjs_eclipse_root` to point to the root dir. +If you're on a mac, DO NOT include the `Eclipse.app` folder in the path (use the path up to this point, but not the .app folder itself). +You can use a '~' as the first character which will get replaced with `System.getProperty("user.home")`. + +Note that the gradle tasks (`jalviewjsEclipseCopyDropins`) will take care of copying `net.sf.j2s.core.jar` and the `com.seeq.eclipse.importprojects.jar` into the `dropins` and `plugins` dir (on either unix or mac -- not tested on windows yet). + +Note that the logs from the transpile go into `build/jalviewjs/` as `j2s-transpile.out` and `j2s-transpile.err` + +gradle tasks possibly of interest to you: + + + +``` +gradle jalviewjs # (should build the build/jalviewjs/site dir) + +gradle jalviewjsSiteTar # will produce build/distribution/site.tar.gz + +gradle jalviewjsTranspile # should run a new eclipse compile+transpile + +gradle jalviewjsServerStart # will run a localhost http server to allow you to test the site in a browser. Just use the URL given in the output. To stop the server you have to do gradle --stop or you can just leave it running until the gradle daemon dies. +``` + +If it's working okay, you just need to to + +``` +gradle jalviewjs +gradle jalviewjsServer +``` + +and go to the localhost URL in the output of the jalviewjsServer task in your web browser (on a mac, just right clicking on the URL in terminal window gives an "Open URL" option which is nice and easy). + +