Return-Path: X-Original-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4A07AE514 for ; Wed, 6 Mar 2013 01:48:27 +0000 (UTC) Received: (qmail 49226 invoked by uid 500); 6 Mar 2013 01:48:26 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 49166 invoked by uid 500); 6 Mar 2013 01:48:26 -0000 Mailing-List: contact cloudstack-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-dev@incubator.apache.org Received: (qmail 49157 invoked by uid 99); 6 Mar 2013 01:48:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Mar 2013 01:48:26 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of Alex.Huang@citrix.com designates 66.165.176.89 as permitted sender) Received: from [66.165.176.89] (HELO SMTP.CITRIX.COM) (66.165.176.89) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Mar 2013 01:48:22 +0000 X-IronPort-AV: E=Sophos;i="4.84,791,1355097600"; d="scan'208";a="11380302" Received: from sjcpmailmx02.citrite.net ([10.216.14.75]) by FTLPIPO01.CITRIX.COM with ESMTP/TLS/RC4-MD5; 06 Mar 2013 01:48:01 +0000 Received: from SJCPMAILBOX01.citrite.net ([10.216.4.72]) by SJCPMAILMX02.citrite.net ([10.216.14.75]) with mapi; Tue, 5 Mar 2013 17:48:00 -0800 From: Alex Huang To: "cloudstack-dev@incubator.apache.org" Date: Tue, 5 Mar 2013 17:48:05 -0800 Subject: RE: Setting up a better eclipse environment.... Thread-Topic: Setting up a better eclipse environment.... Thread-Index: Ac4aAmXiaeX5rdY6TluKN8fMCgNAUwAA+jjAAAAut1AAAV2TYA== Message-ID: References: <93099572B72EB341B81A644E134F240B013145AD3234@SJCPMAILBOX01.citrite.net> In-Reply-To: <93099572B72EB341B81A644E134F240B013145AD3234@SJCPMAILBOX01.citrite.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org I tried that but it seems to be overloaded. Like to choose my own plugins = and keep it to a minimum. Maybe just psychological but at least I think it= 's faster. --Alex > -----Original Message----- > From: Frank Zhang [mailto:Frank.Zhang@citrix.com] > Sent: Tuesday, March 5, 2013 5:09 PM > To: cloudstack-dev@incubator.apache.org > Subject: RE: Setting up a better eclipse environment.... >=20 > Another tip: >=20 > Using Spring Tool Suite that is a forked eclipse with Spring features sav= es you > much time in installing plugins like m2e(maven plugin) >=20 > http://www.springsource.org/sts >=20 > > -----Original Message----- > > From: Alex Huang [mailto:Alex.Huang@citrix.com] > > Sent: Tuesday, March 05, 2013 5:07 PM > > To: cloudstack-dev@incubator.apache.org > > Subject: RE: Setting up a better eclipse environment.... > > > > Another tip I have is to create one source repo and workspace for one > > major branch. We've been changing our environment a lot and it really > > messes with the whole git checkout and then have eclipse > > reconfigure automatically. It has the added benefit of working on > > multiple branches at the same time simply by opening multiple eclipses. > > > > Just don't create workspaces in the directory you store your source. > > This used to be okay for me back in the ant days but since the switch > > to maven, eclipse has had really weird problems with that. Once I > > stored the workspace outside of the source directory, everything works > beautifully. > > > > --Alex > > > > > -----Original Message----- > > > From: Alex Huang [mailto:Alex.Huang@citrix.com] > > > Sent: Tuesday, March 5, 2013 4:55 PM > > > To: cloudstack-dev@incubator.apache.org > > > Subject: Setting up a better eclipse environment.... > > > > > > Hi All, > > > > > > I've heard this from a couple of developers on eclipse and cloudstack= . > > > Thought I share this tip. > > > > > > When you open hit Shift-Ctrl-R on eclipse, it opens up the Open > > > Resource dialogue. A lot of people do this as a quick way to get to > > > a file. With CloudStack, many people see a bunch of .class files > > > and three or four different .java files of the same name. > > > > > > Here's how to get rid of all of that. > > > > > > > > > 1. Quit Eclipse > > > > > > 2. Make sure your workspace is not stored in the cloudstack dir= ectory. > > > (This may be only my problem because I used to like to do that.) If > > > your workspace is stored in the directory, you want to delete all > > > eclipse metadata and create the workspace somewhere else. > > > > > > 3. Remove the eclipse generated bin directory from all of the > directories. > > > The reason is because CloudStack projects used to use bin as the > > > directory for all the eclipse generated .class files but now with > > > maven based projects, eclipse uses target/classes to store them. So > > > now eclipse sees the .class files in the bin directories as > > > resources that you own. That's why there's .class files in the Open > Resource directory. > > > > > > 4. Remove all of the .project files. This is again because we = used to > > > checkin .project files and some of your .project files were not > > > created from maven pom.xml. If you did this before, then you can > > > skip > > steps 5-8. > > > > > > 5. Start Eclipse. > > > > > > 6. If you deleted your workspace in step 2, then you should cre= ate a > > new > > > workspace. > > > > > > 7. Remove all of the projects. > > > > > > 8. Import all maven projects again. > > > > > > 9. Hit Shift-Ctrl-R to open resource dialogue > > > > > > 10. Click on the down arrow in the upper right of the dialogue box > > > > > > 11. Click on the Edit Active Working Set from the drop down menu > > > > > > 12. Create a working set called cloudstack > > > > > > 13. Add all of the projects to it and then remove the parent projec= ts. > The > > > reason you want to remove them is because they're parent projects > > > and when you open resource, the open resource dialogue gets the > > > .java file from both the actual project and the parent projects so > > > the same .java file appears more than once. > > > > > > o Cloudstack-framework > > > > > > o Cloud-engine > > > > > > o Cloudstack > > > > > > o Cloudstack-plugins > > > > > > o Cloud-services > > > > > > 14. Click on finish > > > > > > 15. Click on the top right drop down button again > > > > > > 16. Make sure "Show derived resources" is not checked > > > > > > Another easier way to do this may be to push all your commits and > > > changes and then delete the source directory and reclone the repo. > > > Then follow just steps 6-16. > > > > > > After doing that, when you hit Ctrl-Shift-R, make sure the > > > CloudStack working set is selected. Now only the java file you want = will > show up. > > > There's no .class files and no multiple copies of the same java files= . > > > > > > --Alex