Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Build Virgo Kernel 3.0.0.M04 in IDE
Build Virgo Kernel 3.0.0.M04 in IDE [message #672291] Fri, 20 May 2011 14:41 Go to next message
Ming Qin is currently offline Ming QinFriend
Messages: 22
Registered: July 2009
Junior Member
Hi Everyone:
I built Virgo Kernel 3.0.0.M04 from command line console. Did anyone know how to set up an IDE ( Eclipsed, SpringTool Suit, Netbeans, Intellij , etc) to build Virgo Kernel from Source Codes?
Re: Build Virgo Kernel 3.0.0.M04 in IDE [message #673362 is a reply to message #672291] Mon, 23 May 2011 11:11 Go to previous messageGo to next message
Chris Frost is currently offline Chris FrostFriend
Messages: 230
Registered: January 2010
Location: Southampton, England
Senior Member

Hi,

We use STS/Eclipse IDE with the dm Server tools. I'd just go and download the latest STS, it's free. Simply build it on the command line and then import all the projects in to Eclipse. Each bundle has Eclipse project info checked in with them. All you need to do in Eclipse is create a variable to point to the ivy cache that the build creates and then all the projects should resolve with a little project refreshing/cleaning etc...

Chris.


------------------------------------------------
Chris Frost, Twitter @cgfrost
Springsource, a divison of VMware.
Re: Build Virgo Kernel 3.0.0.M04 in IDE [message #674692 is a reply to message #673362] Fri, 27 May 2011 22:39 Go to previous messageGo to next message
Ming Qin is currently offline Ming QinFriend
Messages: 22
Registered: July 2009
Junior Member
Hi Christopher:
I followed up your suggestions on steps of importing Virgo Kernel 3.0.0.M05 into Eclipse Helios 3.6.2 Java Edition. Here is a link from Spring team about how to set up a similar Eclipse IDE environment -http://webcache.googleusercontent.com/search?q=cache:RqasFZ1m9QUJ:blog.springsource.com/2009/03/03/building-spring-3/+Eclipse+create+a+variable+to+point+to+the+ivy+cache&cd=4&hl=en&ct=clnk&gl=us&client=firefox-a&source=www.google.com

Here is my settings:
1. After building the Virgo Kernel by running "ant -Dci.build=true clean clean-integration test", I configured two classpath variables-KERNEL_IVY_CACHE and IVY_CACHE, both of them were linked to same folder see below link
http://members.cox.net/jbuilder/k1.JPG
2: Creating missed folders as Eclipse IDE problems panel complained about, after importing all projects Here is the link
http://members.cox.net/jbuilder/k2.JPG
3. Finally, Eclipse IDE seemed resolving all build path issues as this http://members.cox.net/jbuilder/k3.JPG

Suggestions on virgo kernel source codes folder structures:

In order to eliminate the manual creations on those missed folders which were complained by Eclipse IDE, could your guys add those folder in there? I did a testing by re-run "ant -Dci.build=true clean clean-integration test" after adding those folder, the build goes fine.
Just my observation on how to make virgo kernel to be Eclipse IDE friendly.

Re: Build Virgo Kernel 3.0.0.M04 in IDE [message #677057 is a reply to message #674692] Tue, 07 June 2011 12:23 Go to previous messageGo to next message
Chris Frost is currently offline Chris FrostFriend
Messages: 230
Registered: January 2010
Location: Southampton, England
Senior Member

Hi,

Sorry for the slow response, we've had a few people out the office.

You only need the KERNEL_IVY_CACHE var, the other one isn't needed. The missing folders are from projects that produce test applications and aren't part of the Kernel source code proper. You should only need to import projects starting with org.eclipse.virgo in their name. Don't worry about there being a few warnings, the code is in good shape but there are a few things we simply can't remove due to technicalities of the Java language. The missing folders is a fair comment, I have raised a bug to get them fixed. (https://bugs.eclipse.org/bugs/show_bug.cgi?id=348545)

Thanks,
Chris.


------------------------------------------------
Chris Frost, Twitter @cgfrost
Springsource, a divison of VMware.

[Updated on: Tue, 07 June 2011 12:24]

Report message to a moderator

Re: Build Virgo Kernel 3.0.0.M04 in IDE [message #682110 is a reply to message #677057] Fri, 10 June 2011 12:38 Go to previous messageGo to next message
Chris Frost is currently offline Chris FrostFriend
Messages: 230
Registered: January 2010
Location: Southampton, England
Senior Member

Said bug is now fixed. The Eclipse projects now all come in with no missing folders etc..

Thanks for pointing it out.
Chris.


------------------------------------------------
Chris Frost, Twitter @cgfrost
Springsource, a divison of VMware.
Re: Build Virgo Kernel 3.0.0.M04 in IDE [message #682398 is a reply to message #682110] Sat, 11 June 2011 01:34 Go to previous messageGo to next message
Ming Qin is currently offline Ming QinFriend
Messages: 22
Registered: July 2009
Junior Member
Chris:
This thread got almost 5000 views. Hope the number is accurate since it might indicate lots of developers are learning virgo from source codes.

[Updated on: Sat, 11 June 2011 01:36]

Report message to a moderator

Re: Build Virgo Kernel 3.0.0.M04 in IDE [message #808109 is a reply to message #682398] Mon, 27 February 2012 12:17 Go to previous message
Glyn Normington is currently offline Glyn NormingtonFriend
Messages: 1222
Registered: July 2009
Senior Member
I've added some instructions to the Virgo wiki for posterity. Please let me know if I missed anything (or add it yourself).

[Updated on: Mon, 27 February 2012 12:18]

Report message to a moderator

Previous Topic:Unable to build the Greenpages sample
Next Topic:What's the difference between Virgo Tomcat and Virgo Jetty
Goto Forum:
  


Current Time: Sat Apr 20 04:16:54 GMT 2024

Powered by FUDForum. Page generated in 0.03960 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top