Return-Path: Delivered-To: apmail-lucene-java-commits-archive@www.apache.org Received: (qmail 30474 invoked from network); 24 Sep 2010 16:44:06 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Sep 2010 16:44:06 -0000 Received: (qmail 68708 invoked by uid 500); 24 Sep 2010 16:44:06 -0000 Delivered-To: apmail-lucene-java-commits-archive@lucene.apache.org Received: (qmail 68671 invoked by uid 500); 24 Sep 2010 16:44:05 -0000 Mailing-List: contact java-commits-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-commits@lucene.apache.org Received: (qmail 68664 invoked by uid 99); 24 Sep 2010 16:44:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Sep 2010 16:44:05 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.131] (HELO eos.apache.org) (140.211.11.131) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Sep 2010 16:44:03 +0000 Received: from eosnew.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id E3676A7B for ; Fri, 24 Sep 2010 16:43:33 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Apache Wiki To: Apache Wiki Date: Fri, 24 Sep 2010 16:43:33 -0000 Message-ID: <20100924164333.72404.69045@eosnew.apache.org> Subject: =?utf-8?q?=5BLucene-java_Wiki=5D_Update_of_=22HowtoConfigureIntelliJ=22_b?= =?utf-8?q?y_IamJabour?= X-Virus-Checked: Checked by ClamAV on apache.org Dear Wiki user, You have subscribed to a wiki page or wiki category on "Lucene-java Wiki" f= or change notification. The "HowtoConfigureIntelliJ" page has been changed by IamJabour. http://wiki.apache.org/lucene-java/HowtoConfigureIntelliJ -------------------------------------------------- New page: =3D Configure IntelliJ =3D (Original [[http://wiki.apache.org/solr/HowToContribute#Development_Environ= ment_Tips|HowTOContribute]] ) =3D=3D IntelliJ (9.0.3) =3D=3D There used to be a long, complex song-and-dance for doing this, but Steven = Rowe did a really cool patch, see: LUCENE-2611. Essentially, all you have t= o do is download the patch, run "ant idea", bring up IntelliJ and set the p= roject-level java SDK. See the comments at the JIRA. I haven't tried to run= SOLR after this setup, but since the previous version of these instruction= s didn't try either, it's no loss. This patch has not been committed yet, and there's no guarantee it will be.= Even if it's not, though, applying this patch is so much easier than doing= things by hand that it's worth the effort. =3D=3D=3D Step by Step =3D=3D=3D 1 - Get Lucene patch from https://issues.apache.org/jira/secure/attachment/= 12453977/LUCENE-2611-branch-3x.patch {{{ $ wget --no-check-certificate https://issues.apache.org/jira/secure/attachm= ent/12453977/LUCENE-2611-branch-3x.patch }}} 2 - Apply this patch in branch. = {{{ $ cd branch_3x; patch -p0 < ../LUCENE-2611-branch-3x.patch }}} 3 - Run ant idea. {{{ $ ant idea = }}} 4 - take a look for instructions, it's necessarily configure IntelliJ JDK. {{{ * File\Project Settings, and in the right-hand pane, "Project SDK" dropdown= is set to "" }}} =3D=3D=3D Adding Code Style =3D=3D=3D Installing code style To install the Lucene/SOLR codestyle files, get the IntelliJ codestyle file= from this site and put it in the magic place so IntelliJ can find it. On m= y Mac that is in ~/Library/Preferences/IntelliJ90/codestyles and restart In= telliJ. On a Windows7 box, this magic directory was in /Users//.I= ntellijIdea90/config/codestyles. Now click on the "Settings" icon (the little in the toolbar) and click "cod= estyle". You should see the new code style configuration in the select box.= NOTE: the name in the select box is the name from the ta= g in the xml file. It is NOT the name you put on the file, which can be a b= it confusing.. IntelliJ also allows you to create patches very easily... * [[attachment:Intellij-Lucene-Codestyle.xml|IntelliJ IDEA codestyle.xml fi= le for Lucene's coding conventions]] it's ready to start.