Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to fetch GEF and build using command line?
How to fetch GEF and build using command line? [message #210419] Mon, 27 February 2006 21:17 Go to next message
Matt Ryan is currently offline Matt RyanFriend
Messages: 11
Registered: July 2009
Junior Member
Hello,

I am working on creating an RPM for GEF for SUSE Linux. I'm having
trouble figuring out a) which module(s) need to be checked out prior to
starting a build, and b) which script(s) I invoke in order to build the
checked out source code. I need to be able to do this from the command
line, not from within Eclipse.

Can someone point me to a resource, or help me out with this? Thanks
Re: How to fetch GEF and build using command line? [message #210512 is a reply to message #210419] Tue, 28 February 2006 22:23 Go to previous messageGo to next message
Steven R. Shaw is currently offline Steven R. ShawFriend
Messages: 128
Registered: July 2009
Senior Member
Why can't you use the builds on the download page in your target? What do
you mean by "RPM" ?

-Steve

"Matt Ryan" <mryan@novell.com> wrote in message
news:d36699a9b8c8eb8a6a620d3089c591d8$1@www.eclipse.org...
> Hello,
>
> I am working on creating an RPM for GEF for SUSE Linux. I'm having
> trouble figuring out a) which module(s) need to be checked out prior to
> starting a build, and b) which script(s) I invoke in order to build the
> checked out source code. I need to be able to do this from the command
> line, not from within Eclipse.
>
> Can someone point me to a resource, or help me out with this? Thanks
>
>
Re: How to fetch GEF and build using command line? [message #210583 is a reply to message #210512] Wed, 01 March 2006 21:55 Go to previous messageGo to next message
Matt Ryan is currently offline Matt RyanFriend
Messages: 11
Registered: July 2009
Junior Member
We (Novell) already distribute Eclipse itself in RPM packages on SUSE
Linux. We want to provide additional RPM packages for Eclipse plugins
in our distribution as well. I've already done some work on this for
CDT and EMF, and hope to add GEF to the mix.

In order to create the RPM I need to start with a full pristine source
distribution. If there is a place where I can download a full pristine
source distribution, that's even better.
However, what I have found with Eclipse thusfar is a web page with links
to download builds (read: binary distributions), and CVS access to get
the source. Furthermore, in the Eclipse RPMs I've done in the past, in
order to get the source you actually just check out a certain module or
set of modules and then run a script which fetches the rest. But
neither the module names, nor the scripts to run, nor the actions those
scripts perform, have been consistent from one plugin to the next - at
least, not yet, anyway. I'm not saying that none of them are
consistent, but I am saying that I haven't seen the consistency yet.

So, if there is a place to download a full pristine source distribution,
that would be great. I don't see it from the downloads page though, so
maybe someone could point it out.
Otherwise, I need to be able to fetch it from CVS, in which case, I'd
need a pointer as to which module(s) I need to check out, and the best
way to get started doing a local build.

Thanks for your help


Steven Shaw wrote:
> Why can't you use the builds on the download page in your target? What do
> you mean by "RPM" ?
>
> -Steve
>
> "Matt Ryan" <mryan@novell.com> wrote in message
> news:d36699a9b8c8eb8a6a620d3089c591d8$1@www.eclipse.org...
>>Hello,
>>
>>I am working on creating an RPM for GEF for SUSE Linux. I'm having
>>trouble figuring out a) which module(s) need to be checked out prior to
>>starting a build, and b) which script(s) I invoke in order to build the
>>checked out source code. I need to be able to do this from the command
>>line, not from within Eclipse.
>>
>>Can someone point me to a resource, or help me out with this? Thanks
>>
>>
>
>
Re: How to fetch GEF and build using command line? [message #210590 is a reply to message #210512] Thu, 02 March 2006 00:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alex_blewitt.yahoo.com

RPM is RedHat Package Manager. It's an intsall format for Linux systems that was pioneered by RedHat and now adpoted by some other distributions for distributing binary code that can just be downloaded and installed (somewhat similar to one of the Windows installer programs like ZeroG installer).

dpkg files (pioneered by Debian) and the helper apt-get and many other apt tools are another way of distributing binaries, which other distributions use.

IBM tends to go with the RPM format, presumably because RedHat has significant branding in the enterprise marketspace.

Note there's nothing specific about either of these to Linux; but that's where they started. I am using apt-get on my Mac box courtesy of the Fink project, which uses dpkg files to distribute Mac-compiled binaries of popular open source projects.

In any case, one of the few TLAs that has nothing to do with Eclipse :-)

Alex.
Re: How to fetch GEF and build using command line? [message #210609 is a reply to message #210583] Thu, 02 March 2006 00:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alex_blewitt.yahoo.com

The starting point for downloading the builds is the component definition(s) which are often found in a 'releng' type folder. This contains the pointer to the map files in CVS, which in turn contain pointers to all the other feature(s) that are needed by a particular plugin.

The question is where are these for GEF :-)

Certainly, for the Eclipse build the map files are stored in http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.releng/ maps/ although the 'bootstrap' files that download these actually come from http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.releng. eclipsebuilder/ -- but then, if you've done this already, you probably know this :-)

You'll notice that all of these are looking at the Eclipse project (there's a drop-down box just above the first set of entries reported). There are other ones -- for BIRT, for TPTP etc. -- and there's the one for Tools too. GEF hangs out in this one.

I'm guessing that the maps are in http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.gef.rel eng/?cvsroot=Tools_Project although the bootstrap files are probably elsewhere. I'm betting in http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.releng. gefbuilder/?cvsroot=Tools_Project

Whatdyaknow, there's even an HTML describing how to build GEF:

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.releng. gefbuilder/readme.html?rev=1.2&cvsroot=Tools_Project& ;content-type=text/vnd.viewcvs-markup

Disclaimer; I've not actually done a build of GEF. I've probably spent more time going through the automated builds than I'd like though, so this is all based on past experience. But if it's anything like the others, all you need to is run the build.xml in headless mode and it takes care of the rest.

(By the way, you don't actually need the basebuilder plugin to do the work; an Eclipse install will do the same. It's relatively easy to kick it off otherwise; I put together an 'eant' script that called the headless builds. You can find out more about it on http://www.rcpapps.org/EclipseCon2006/ or catch up with me at EclipseCon if you want to know more.)

Hope it works for you,

Alex.
Re: How to fetch GEF and build using command line? [message #210640 is a reply to message #210419] Thu, 02 March 2006 16:09 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

If you want the GEF source loaded in an Eclipse Workspace, you can just
download the GEF SDK, and tell the PDE to import those plug-in as src
projects. The PDE will rebuild the GEF projects as they appear in CVS, with
the exception of compiler settings, etc.

Doesn't RedHat already provide the same RPM you are trying to create? Maybe
not...

Last choice is to use our build scripts, which are as similar as possible to
the platform build. We use the releng basebuilder.

"Matt Ryan" <mryan@novell.com> wrote in message
news:d36699a9b8c8eb8a6a620d3089c591d8$1@www.eclipse.org...
> Hello,
>
> I am working on creating an RPM for GEF for SUSE Linux. I'm having
> trouble figuring out a) which module(s) need to be checked out prior to
> starting a build, and b) which script(s) I invoke in order to build the
> checked out source code. I need to be able to do this from the command
> line, not from within Eclipse.
>
> Can someone point me to a resource, or help me out with this? Thanks
>
>
Previous Topic:How could I invoke the undoable command?
Next Topic:problem in using the retargatable action
Goto Forum:
  


Current Time: Sat Jul 13 17:18:51 GMT 2024

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

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

Back to the top