From dev-return-11956-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Mon May 18 17:27:16 2009 Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 98455 invoked from network); 18 May 2009 17:27:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 May 2009 17:27:16 -0000 Received: (qmail 68994 invoked by uid 500); 18 May 2009 17:27:16 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 68957 invoked by uid 500); 18 May 2009 17:27:16 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 68947 invoked by uid 99); 18 May 2009 17:27:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 May 2009 17:27:16 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of michael.d.dick@gmail.com designates 209.85.218.219 as permitted sender) Received: from [209.85.218.219] (HELO mail-bw0-f219.google.com) (209.85.218.219) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 May 2009 17:27:08 +0000 Received: by bwz19 with SMTP id 19so3469442bwz.9 for ; Mon, 18 May 2009 10:26:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=NgCIlyV326nUaPnqfm26bHmTRO86R7QIZ3FInAW3du0=; b=w0qbHbb/dz7yJyJCKVIGoQOJzAdSzgleav+20euMzQNhglmstpFpBKGtuNLQIbw064 1E8YzhlFzz5o4fxSY/yVIObSKp9hQC2boKe4Z7N1gTFmmZOKOjTT5Nf2TDR2D0dmdq+m mrGeXfuK6ifIOmC6JR68xwzzuQjbu8CrDaBqg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=G/Jo9C/2nUS59v1B+ylFjofBvr477km4m8QBpp9u74vLOtlc4fHCFtRGu01GHt+1AU puHCrA56nVTkgcVrIkIyI0JB4wL/1g4IoA4IFLSnOmnwAD4xfoEwotbftN1lA11K3eWA N/MQlm7V+8YhcxuvKnF7Fa1jSu7kKBYTT1Ivw= MIME-Version: 1.0 Received: by 10.223.122.141 with SMTP id l13mr4440814far.99.1242667605782; Mon, 18 May 2009 10:26:45 -0700 (PDT) In-Reply-To: References: Date: Mon, 18 May 2009 12:26:45 -0500 Message-ID: <72c1350f0905181026y723d307auf6c242c2e02a8f1e@mail.gmail.com> Subject: Re: Building in Eclipse From: Michael Dick To: dev@openjpa.apache.org Content-Type: multipart/mixed; boundary=001636c598793770e9046a3319f9 X-Virus-Checked: Checked by ClamAV on apache.org --001636c598793770e9046a3319f9 Content-Type: multipart/alternative; boundary=001636c598793770e4046a3319f7 --001636c598793770e4046a3319f7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi Alan, I use the maven eclipse plugin to generate eclipse .project and .classpath files. I have to do a little massaging afterwards but it does 90% of the work for me. You'll still have to add the generated-sources stuff though. I usually add target/generated-sources/javacc to the build path and remove the directory with the duplicate SimpleNode. FWIW I've attached the .classpath file that I use with trunk. It relies on the M2_REPO classpath variable being defined and pointing to your local Maven repository so you might have some massaging to do too. Hope this helps, -mike On Mon, May 18, 2009 at 11:29 AM, Alan Raison wrote: > Hi > > Does anyone have any experience (preferably successful) of building > openjpa-kernel in Eclipse? > > I've found that checking out each sub-project from trunk usually works > fine when building against a released version (as then I can download > the pre-compiled openjpa-kernel from the maven repo) but this doesn't > work so well when working with trunk. > > Working from the command line is fine but a bit limited in Windows - > especially when trying to patch the source! > > My specific issue is that Eclipse complains of compile errors in the > (src/main/java/)org.apache.openjpa.kernel.jpql package as these files > depend on the jjtree sources. If I add target/generated-sources/javacc > to the build path I get a name clash with the SimpleNode class in both > the src/main/java and target/generated-sources/javacc folders. I also > tried adding the target/generated-sources/jjtree folder in place of the > target/generated-sources/javacc folder but this didn't work either. > > Sorry if I am being thick with this. I need my IDE!! ;) > > Alan > > --001636c598793770e4046a3319f7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Alan,

I use the maven eclipse plugin to generate eclipse .project= and .classpath files. I have to do a little massaging afterwards but it do= es 90% of the work for me.=A0 You'll still have to add the generated-so= urces stuff though.

I usually add target/generated-sources/javacc to the build path and rem= ove the directory with the duplicate SimpleNode. FWIW I've attached the= .classpath file that I use with trunk. It relies on the M2_REPO classpath = variable being defined and pointing to your local Maven repository so you m= ight have some massaging to do too.

Hope this helps,

-mike

On Mo= n, May 18, 2009 at 11:29 AM, Alan Raison <Alan.Raison@luminary.co.uk>= wrote:
Hi

Does anyone have any experience (preferably successful) of building
openjpa-kernel in Eclipse?

I've found that checking out each sub-project from trunk usually works<= br> fine when building against a released version (as then I can download
the pre-compiled openjpa-kernel from the maven repo) but this doesn't work so well when working with trunk.

Working from the command line is fine but a bit limited in Windows -
especially when trying to patch the source!

My specific issue is that Eclipse complains of compile errors in the
(src/main/java/)org.apache.openjpa.kernel.jpql package as these files
depend on the jjtree sources. =A0If I add target/generated-sources/javacc to the build path I get a name clash with the SimpleNode class in both
the src/main/java and target/generated-sources/javacc folders. =A0I also tried adding the target/generated-sources/jjtree folder in place of the
target/generated-sources/javacc folder but this didn't work either.

Sorry if I am being thick with this. =A0I need my IDE!! ;)

Alan


--001636c598793770e4046a3319f7-- --001636c598793770e9046a3319f9--