From ed2d32612a39188d7ed561cf1a7036cdb147e3f6 Mon Sep 17 00:00:00 2001 From: Mick Semb Wever Date: Fri, 12 Apr 2019 21:39:46 +1000 Subject: [PATCH] Apache NetBeans "Run", "Debug", "Profile" IDE actions patch by Mick Semb Wever ; reviewed by Dinesh Joshi for CASSANDRA-15083 --- build.xml | 19 ++++++----- doc/source/development/ide.rst | 15 ++++++++- ide/nbproject/ide-actions.xml | 60 ++++++++++++++++++++++++++++++++++ ide/nbproject/nbjdk.xml | 12 ------- ide/nbproject/project.xml | 42 ++++++++++++++++-------- 5 files changed, 113 insertions(+), 35 deletions(-) create mode 100644 ide/nbproject/ide-actions.xml delete mode 100644 ide/nbproject/nbjdk.xml diff --git a/build.xml b/build.xml index 6d79aca4fe..3a8dd6ced3 100644 --- a/build.xml +++ b/build.xml @@ -297,7 +297,7 @@ - + @@ -1045,10 +1045,7 @@ - - + @@ -1060,17 +1057,17 @@ - + - + - + @@ -1106,6 +1103,12 @@ + + + + diff --git a/doc/source/development/ide.rst b/doc/source/development/ide.rst index b6da753643..97c73ae618 100644 --- a/doc/source/development/ide.rst +++ b/doc/source/development/ide.rst @@ -42,6 +42,8 @@ This may take a significant amount of time depending on whether artifacts have t You can setup multiple working trees for different Cassandra versions from the same repository using `git-worktree `_. +| + Setting up Cassandra in IntelliJ IDEA ===================================== @@ -72,6 +74,8 @@ The project generated by the ant task ``generate-idea-files`` contains nearly ev * Cassandra code style * Inspections +| + Opening Cassandra in Apache NetBeans ======================================= @@ -84,8 +88,17 @@ Please clone and build Cassandra as described above and execute the following st 1. Start Apache NetBeans -2. Open the NetBeans project from the ``ide\` folder in the checked out (and built) Cassandra directory using the menu item "Open Project…" in NetBeans's File menu +2. Open the NetBeans project from the `ide/` folder of the checked out Cassandra directory using the menu item "Open Project…" in NetBeans' File menu +The project opened supports building, running, debugging, and profiling Cassandra from within the IDE. These actions delegate to the ant `build.xml` script. + + * Build/Run/Debug Project is available via the Run/Debug menus, or the project context menu. + * Profile Project is available via the Profile menu. In the opened Profiler tab, click the green "Profile" button. + * Cassandra's code style is honored in `ide/nbproject/project.properties` + +The `JAVA8_HOME` system variable must be set in the environment that NetBeans starts in for the Run/Debug/Profile ant targets to execute. + +| Setting up Cassandra in Eclipse =============================== diff --git a/ide/nbproject/ide-actions.xml b/ide/nbproject/ide-actions.xml new file mode 100644 index 0000000000..7a02dcc21c --- /dev/null +++ b/ide/nbproject/ide-actions.xml @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ide/nbproject/nbjdk.xml b/ide/nbproject/nbjdk.xml deleted file mode 100644 index 87439c592c..0000000000 --- a/ide/nbproject/nbjdk.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/ide/nbproject/project.xml b/ide/nbproject/project.xml index d00f9421f8..9ca091049f 100644 --- a/ide/nbproject/project.xml +++ b/ide/nbproject/project.xml @@ -84,54 +84,66 @@ - + build - + clean - + clean build + + + run + + + + debug + + + + profile + folder ${project.dir}/build/classes/main - + build folder ${project.dir}/build/classes/fqltool - - build + + fqltool-build folder ${project.dir}/build/classes/stress - - build + + stress-build folder ${project.dir}/build/test/classes - - build + + build-test folder ${project.dir}/build/test/fqltool-classes - - build + + fqltool-build-test folder ${project.dir}/build/test/stress-classes - - build + + stress-build-test @@ -187,6 +199,8 @@ + +