From: Ben Soares Date: Wed, 28 Oct 2020 12:18:59 +0000 (+0000) Subject: JAL-3248 Added step to create the eclipse files before project import. Noted non... X-Git-Tag: Develop-2_11_2_0-d20201215~23 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=2d41cbfe3c25373256501a298b98c25f774aa72b;p=jalview.git JAL-3248 Added step to create the eclipse files before project import. Noted non-fatal NPEs during build with gradle 6.6+ Cherry pick from release, generated new building.html as it's a different process. Also added in a "**/*.md" into build.gradle (wasn't finding anything with "*.md") --- diff --git a/build.gradle b/build.gradle index f298bd7..c3e89e5 100644 --- a/build.gradle +++ b/build.gradle @@ -1084,6 +1084,7 @@ def convertMdToHtml (FileTree mdFiles, File cssFile) { def htmlFilePath = mdFile.getPath().replaceAll(/\..*?$/, ".html") def htmlFile = file(htmlFilePath) + println("Creating ${htmlFilePath}") htmlFile.text = htmlText } } @@ -1121,7 +1122,7 @@ task copyDocs(type: Copy) { task convertMdFiles { dependsOn copyDocs - def mdFiles = fileTree(dir: docBuildDir, include: "*.md") + def mdFiles = fileTree(dir: docBuildDir, include: "**/*.md") def cssFile = file("${jalviewDir}/${flexmark_css}") doLast { diff --git a/doc/building.html b/doc/building.html index 2ca2641..44ffd5e 100644 --- a/doc/building.html +++ b/doc/building.html @@ -727,7 +727,7 @@ java -jar getdown-launcher.jar . jalview

The method here is described in terms of using a command line. You can easily do this on linux or in a Terminal window in macOS. You can do it in Windows.

@@ -1121,7 +1121,7 @@ list of media types (i.e. platform specific installers) install4j shoul

We develop in Eclipse, and support settings to develop and save Jalview source code in our preferred style. We also support running the Jalview application, debugging and running tests with TestNG from within Eclipse.

-

To get Jalview set up as a project in Eclipse, we recommend using at least the 2019-12 +

To get Jalview set up as a project in Eclipse, we recommend using at least the 2020-03 version of Eclipse IDE for Java Developers which you can download from the Eclipse website: https://www.eclipse.org/downloads/. Since Eclipse 2020-03 you are encouraged to use the Eclipse Installer (see the Eclipse Downloads page). In the installer, when given a choice of packages for Eclipse you should choose the "Eclipse IDE for Enterprise Java Developers" package.

@@ -1142,7 +1142,7 @@ In the installer, when given a choice of packages for Eclipse you should choose

At time of writing, TestNG for Eclipse does not show up in the Eclipse Marketplace -as the latest released version does not install in Eclipse 2019-03. +as the latest released version does not install in Eclipse 2020-03. However, you can install a working release of TestNG for Eclipse by going to

Help->Install New Software...

and entering

@@ -1165,6 +1165,10 @@ as the default JRE and click on Apply and Close.

Importing Jalview as an Eclipse project

Importing an already downloaded git repo

If you have already downloaded Jalview using git clone then you can import this folder into Eclipse directly.

+

Before importing the cloned git repo you must create the Eclipse project files. You can do this by either running

+

gradle eclipse

+

or

+

Unzipping the file utils/eclipse/eclipse_startup_files.zip in the base repo directory (jalview)

It is important to import Jalview as a Gradle project (not as a Java project), so go to

File->Import...

diff --git a/doc/building.md b/doc/building.md index 06e796d..e8328d2 100644 --- a/doc/building.md +++ b/doc/building.md @@ -26,7 +26,7 @@ java -jar getdown-launcher.jar . jalview The method here is described in terms of using a command line. You can easily do this on linux or in a Terminal window in macOS. You can do it in Windows. * Java 11 compliant JDK -* gradle 5.2 or above +* gradle 5.2 or above *(NB gradle 6.6 and above currently produces NullPointerExceptions during the build. This is non-fatal and does not affect the build. Use gradle 6.5.1 to avoid this)* * git > The versions and installation methods here are just suggestions (which we have tested @@ -536,7 +536,7 @@ We develop in Eclipse, and support settings to develop and save Jalview source c in our preferred style. We also support running the Jalview application, debugging and running tests with TestNG from within Eclipse. -To get Jalview set up as a project in Eclipse, we recommend using at least the 2019-12 +To get Jalview set up as a project in Eclipse, we recommend using at least the 2020-03 version of Eclipse IDE for Java Developers which you can download from the Eclipse website: . Since Eclipse 2020-03 you are encouraged to use the Eclipse Installer (see the Eclipse Downloads page). In the installer, when given a choice of packages for Eclipse you should choose the "Eclipse IDE for Enterprise Java Developers" package. @@ -560,7 +560,7 @@ Search for and install: 1. TestNG for Eclipse (optional -- only needed if you want to run tests from Eclipse) > At time of writing, TestNG for Eclipse does not show up in the Eclipse Marketplace -as the latest released version does not install in Eclipse 2019-03. +as the latest released version does not install in Eclipse 2020-03. However, you can install a working release of TestNG for Eclipse by going to > > Help->Install New Software... @@ -600,6 +600,14 @@ You can now import Jalview. If you have already downloaded Jalview using `git clone` then you can import this folder into Eclipse directly. +__Before importing the cloned git repo you must create the Eclipse project files.__ You can do this by either running + +`gradle eclipse` + +or + +Unzipping the file `utils/eclipse/eclipse_startup_files.zip` in the base repo directory (`jalview`) + It is important to import Jalview as a Gradle project (not as a Java project), so go to