From c0621bebddf68bd9f42128ffd59bccf5343afed0 Mon Sep 17 00:00:00 2001 From: mystarry-sky Date: Thu, 26 May 2022 12:57:08 +0800 Subject: [PATCH] =?UTF-8?q?Readme=20=E6=B7=BB=E5=8A=A0JDK=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E9=93=BE=E6=8E=A5=20=E5=A2=9E=E5=8A=A0=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E7=A4=BA=E4=BE=8B=EF=BC=8C=E4=BF=AE=E6=94=B9readme=20?= =?UTF-8?q?p2=E4=B8=8B=E8=BD=BD=E9=93=BE=E6=8E=A5=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=8C=E5=8F=96=E6=B6=88=E5=85=B3=E8=81=94build.properties?= =?UTF-8?q?=E4=B8=ADjavafx=20p2=E7=9B=B8=E5=85=B3=E6=8F=92=E4=BB=B6jar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 增加eclipse 运行 DataStudio 操作指导 --- README.en.md | 33 ++++++++++++++----- README.md | 33 +++++++++++++++---- .../build.properties | 5 +-- 3 files changed, 53 insertions(+), 18 deletions(-) diff --git a/README.en.md b/README.en.md index 5c2ff5e2..4dca8a09 100644 --- a/README.en.md +++ b/README.en.md @@ -61,20 +61,33 @@ Specific steps of Building Data Studio binary package through source code - ## Preconditions - 1. Download and install jdk11 and configure `Java_ Home` environment variable. JDK recommended version 11.0.2 + 1. Download and install jdk11 http://jdk.java.net/archive/ and configure `Java_ Home` environment variable. JDK recommended version 11.0.2 - 2. Download and install maven x. And configure `M2_ Home` environment variable. Maven recommends version 3.8.3 + 2. Download and install maven x. And configure `M2_ Home` environment variable. - 3. Adoption [https://gluonhq.com/products/javafx/](https://gitee.com/link?target=https%3A%2F%2Fgluonhq.com%2Fproducts%2Fjavafx%2F) Download SDK 17.0.2 to any local directory and unzip it to javafx-17.0.2 + Maven recommends version 3.8.3 https://archive.apache.org/dist/maven/maven-3/3.8.3/binaries/apache-maven-3.8.3-bin.zip - 4. Adoption [https://downloads.efxclipse.bestsolution.at/p2-repos/openjfx.p2-17.0.2.zip](https://gitee.com/link?target=https%3A%2F%2Fdownloads.efxclipse.bestsolution.at%2Fp2-repos%2Fopenjfx.p2-17.0.2.zip) Download openjfx p2-17.0.2. Zip and unzip to any local directory. + 3. Adoption [https://gluonhq.com/products/javafx/](https://gitee.com/link?target=https%3A%2F%2Fgluonhq.com%2Fproducts%2Fjavafx%2F) Download SDK 17.0.2 to any local directory and unzip it to javafx-17.0.2 + + 4. Adoption [https://downloads.efxclipse.bestsolution.at/p2-repos/openjfx.p2-17.0.2.zip](https://gitee.com/link?target=https%3A%2F%2Fdownloads.efxclipse.bestsolution.at%2Fp2-repos%2Fopenjfx.p2-17.0.2.zip) Download openjfx p2-17.0.2. Zip and unzip to any local directory. 5. Configure POM file properties configuration information javafx.home and url.openjfx information . - ``` + ```xml local_directory\javafx-sdk-17.0.2 file:\\\local_directory\openjfx.p2-17.0.2 ``` + + Example: + + Download javafx-sdk-17.0.2 and openjfx P2-17.0.2 unzip to disk D of the local directory,Configure . + + ```xml + D:\javafx-sdk-17.0.2 + file:\\\D:\openjfx.p2-17.0.2 + ``` + + - ## Source Compilation @@ -102,11 +115,15 @@ Specific steps of Building Data Studio binary package through source code ${Data_Studio_code}\code\datastudio\build ``` - - - +# Eclipse RCP development considerations + +After eclipse imports the project, open org Opengauss Mppdbide Mppdbide Product file, click launch an eclipse application to run the startup project. + +If the project fails to start, configure the current running environment and run it after the following operations. + +Click run-> run configurations - > plug ins - > Add required plug ins - > validate plug ins - > apply - > run in eclipse menu to start the project # Participating Contributions diff --git a/README.md b/README.md index 9c0c8265..e79bc4c7 100644 --- a/README.md +++ b/README.md @@ -61,13 +61,17 @@ - ## 前置条件 - 1. 下载安装JDK11,并配置`JAVA_HOME`环境变量。JDK推荐11.0.2版本 + 1. 下载安装JDK11 http://jdk.java.net/archive/ ,并配置`JAVA_HOME`环境变量。JDK推荐11.0.2版本 - 2. 下载安装apache maven3.x,并配置`M2_HOME`环境变量。Maven推荐3.8.3版本 + 2. 下载安装apache maven3.x,并配置`M2_HOME`环境变量。 + + Maven推荐3.8.3版本 https://archive.apache.org/dist/maven/maven-3/3.8.3/binaries/apache-maven-3.8.3-bin.zip 3. 通过https://gluonhq.com/products/javafx/ 下载 javafx SDK 17.0.2版本SDK到本地并解压至任意目录。 - 4. 通过https://downloads.efxclipse.bestsolution.at/p2-repos/openjfx.p2-17.0.2.zip下载 openjfx.p2-17.0.2.zip并解压到本地任意目录。 + 4. 通过https://downloads.efxclipse.bestsolution.at/p2-repos/openjfx.p2-17.0.2.zip + + 下载openjfx.p2-17.0.2.zip并解压到本地任意目录。 5. 配置pom文件properties配置信息 javafx.home 和 url.openjfx信息。 @@ -75,9 +79,18 @@ 本地路径\javafx-sdk-17.0.2 file:\\\本地路径\openjfx.p2-17.0.2 ``` - - - + + 示例: + + 将下载好的javafx-sdk-17.0.2和openjfx.p2-17.0.2解压到本地目录D盘,配置pom + + ```xml + D:\javafx-sdk-17.0.2 + file:\\\D:\openjfx.p2-17.0.2 + ``` + + + - ## 源码编译 1. 通过 git bash 命令行进入Data Studio源码src目录: @@ -107,6 +120,14 @@ ${Data_Studio_code}\code\datastudio\build ``` +# Eclipse-RCP开发注意事项 + +在eclipse导入工程后,打开org.opengauss.mppdbide.repository工程的mppdbide.product文件,点击Launch an Eclipse application 运行启动工程。 + +如果工程启动失败,则通过如下操作,配置当前运行环境后再运行。 + +点击eclipse菜单 run-> run configurations -> Plug-ins -> Add Required Plug-ins -> validate Plug-ins -> Apply -> Run 启动工程 + # 参与贡献 **参与贡献** diff --git a/code/datastudio/src/org.opengauss.mppdbide.view/build.properties b/code/datastudio/src/org.opengauss.mppdbide.view/build.properties index 2f52848b..ecda4b3d 100644 --- a/code/datastudio/src/org.opengauss.mppdbide.view/build.properties +++ b/code/datastudio/src/org.opengauss.mppdbide.view/build.properties @@ -8,8 +8,5 @@ bin.includes = META-INF/,\ icons/,\ build.properties,\ gson-2.8.6.jar,\ - guava-30.1.1-jre.jar,\ - javafx-graphics-17.0.2-win.jar,\ - javafx-controls-17.0.2-win.jar,\ - javafx-base-17.0.2-win.jar + guava-30.1.1-jre.jar -- Gitee