Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Cassandra Wiki" for 
change notification.

The "RunningCassandraInIDEA" page has been changed by RobertStupp:
https://wiki.apache.org/cassandra/RunningCassandraInIDEA?action=diff&rev1=27&rev2=28

Comment:
add generate-idea-files ant target

  IDEA is now open source!  The free community edition at 
http://www.jetbrains.org is all you need for Cassandra development.  (You don't 
need J2EE or Web tools.)
+ 
+ <<TableOfContents>>
+ 
+ = Setup Cassandra as a Project (C* 2.1 and newer) =
+ 
+ Since 2.1.5, there is a new ant target {{{generate-idea-files}}}
+ 
+ ''' Prerequisites: ''' JDK7 (Cassandra 2.0+), Apache Ant 
(http://ant.apache.org/) and Git (http://git-scm.com/)  are required to get 
Cassandra running in IDEA. 
+ 
+  1. Clone Cassandra from apache's Git repository. <<BR>><<BR>>
+  for trunk branch (JDK7 required)
+  {{{ 
+  git clone git://git.apache.org/cassandra.git
+  }}}
+  for cassandra-2.1 branch
+  {{{
+  git clone –b cassandra-2.1 git://git.apache.org/cassandra.git 
+  }}}
+  2. Once git has finished cloning the repository, generate the eclipse files 
using ant.
+  {{{
+  ant generate-idea-files
+  }}} 
+  3. Start IDEA
+  4. Just open the IDEA project from the checked out Cassandra directory using 
the menu item ''Open'' in IDEA's ''File'' menu
+ 
+ The project generated by the ant task {{{generate-idea-files}}} contains 
nearly everything you need to debug Cassandra and execute unit tests.
+ 
+  * Run/debug defaults for JUnit
+  * Run/debug configuration for Cassandra daemon
+  * License header for Java source files
+  * Cassandra code style
+  * Inspections
+ 
+ = Setup Cassandra as a Project (C* 1.2, 2.0, <= 2.1.4) =
+ 
+ ''' The following applies to Cassandra sources for versions 1.2.x, 2.0.x and 
up to 2.1.4 '''
  
  To quickly import Cassandra into IntelliJ and start coding simply:
  
@@ -10, +46 @@

  (The IntelliJ Eclipse plugin must be enabled.)
  
  If you want IDEA to handle more of the environment for you, keep reading.
- 
- <<TableOfContents>>
- 
- = Setup Cassandra as a Project =
  
  ''' Prerequisites: ''' JDK6 (Cassandra 1.2) or JDK7 (Cassandra 2.0+), Apache 
Ant (http://ant.apache.org/) and Git (http://git-scm.com/)  are required to get 
Cassandra running in IDEA. 
  
@@ -49, +81 @@

   {{attachment:5_Import Completed.png}}
   <<BR>><<BR>>
  
- = Building & Testing Cassandra via Ant =
+ == Building & Testing Cassandra via Ant ==
  
  To build Cassandra we need to import ant's build file, aka '''build.xml'''. 
  
@@ -69, +101 @@

  
   {{attachment:10_Successful Build.png}}
  
- = Create a RUN configuration =
+ == Create a RUN configuration ==
  
   1. Select '''Run''' > '''Edit Configurations...''' and click the '''+''' 
(Add New Configuration).<<BR>>
   2. Populate the config with the following:<<BR>>
@@ -91, +123 @@

   {{attachment:Run Configuration.png}}
   <<BR>><<BR>>  
  
- = Verify Cassandra is running via IDEA =
+ == Verify Cassandra is running via IDEA ==
  
   If everything is configured correctly, when you run Cassandra (via 
{{attachment:idea_run.png}} or '''Run > Run...''') logs should appear in the 
IDEA console.
  
@@ -108, +140 @@

   cqlsh> 
   }}}
  
- = Notes =
+ == Notes ==
  
- == Java 7 since Cassandra 2.0 ==
+ === Java 7 since Cassandra 2.0 ===
  
  Dont forget to update IntelliJ to use JDK7 or later for Cassandra versions 
greater than Cassandra 1.2
  
@@ -118, +150 @@

  
  {{https://c.statcounter.com/9397521/0/fe557aad/1/|stats}}
  
- == Link IDEA to .classpath ==
+ === Link IDEA to .classpath ===
  
  If you did not check '''Link created IntelliJ IDEA modules to Eclipse project 
files''' in the project import dialog, you can change that later and IDEA will 
automatically use changes if .classpath file is regenerated using
  {{{

Reply via email to