Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Target Management » Remote builds after sync
Remote builds after sync [message #5322] Tue, 13 February 2007 07:20 Go to next message
Eclipse UserFriend
Originally posted by: jonas.l.jonsson.ericsson.com

We're developing an application that should run on multiple platforms, but
most of us are sitting on M$ clients when editing. Some people use Solaris
(Sparc) and some use Linux. The target platforms are Linux and Tru64 on
different hw platforms.

Currently we're transferring the source-code from the repository/view to a
build-server each time we build. We're using rSync for this, and it takes
quite a lot of time since it has to scan the whole source-tree (in a
ClearCase view, slooow) each time before a build.

The build-root on the remote machine is NOT mounted on to the M$ machines,
but access is possible via ssh without passwords.

Is there any way to automate the mirroring of the code, so that once all
the code is transferred at startup, only the updated files (on the client)
gets updated on the build-server?

If not, can someone suggest a good starting-point for creating a plugin
capable of doing this?

Cheers,
Jonas Jonsson
Re: Remote builds after sync [message #5377 is a reply to message #5322] Tue, 13 February 2007 18:54 Go to previous message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 1007
Registered: July 2009
Senior Member
Hi Jonas,

> Is there any way to automate the mirroring of the code, so that
> once all the code is transferred at startup, only the updated
> files (on the client) gets updated on the build-server?

I'd think that rsync is exactly what you'd want to use for this.
If you use a ClearCase snapshot view instead of a dynamic view,
it should be really fast.

As an alternative, you might want to consider editing files
directly on the remote side. But then you don't have clearcase
version control.

Or are you thinking about a solution where you edit locally, under
ClearCase, and have a hook with the editor such that any "save"
operation would not only save locally but also transfer to the remote?
I haven't played with such hooks so far, so you'd want to consider
eclipse.platform for the hook. Once you've got the hook the actual
transfer could be done through RSE. Look at our EclipseCon Tutorial
slides for some sample code how to transfer files:

http://www.eclipsecon.org/2007/index.php?page=sub/&id=36 51


Cheers,
--
Martin Oberhuber
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm
Re: Remote builds after sync [message #566240 is a reply to message #5322] Tue, 13 February 2007 18:54 Go to previous message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 1007
Registered: July 2009
Senior Member
Hi Jonas,

> Is there any way to automate the mirroring of the code, so that
> once all the code is transferred at startup, only the updated
> files (on the client) gets updated on the build-server?

I'd think that rsync is exactly what you'd want to use for this.
If you use a ClearCase snapshot view instead of a dynamic view,
it should be really fast.

As an alternative, you might want to consider editing files
directly on the remote side. But then you don't have clearcase
version control.

Or are you thinking about a solution where you edit locally, under
ClearCase, and have a hook with the editor such that any "save"
operation would not only save locally but also transfer to the remote?
I haven't played with such hooks so far, so you'd want to consider
eclipse.platform for the hook. Once you've got the hook the actual
transfer could be done through RSE. Look at our EclipseCon Tutorial
slides for some sample code how to transfer files:

http://www.eclipsecon.org/2007/index.php?page=sub/&id=36 51


Cheers,
--
Martin Oberhuber
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm
Previous Topic:Remote builds after sync
Next Topic:Deadline for EclipseCon Early Registration is tomorrow Feb.14!
Goto Forum:
  


Current Time: Thu Dec 26 20:18:57 GMT 2024

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

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

Back to the top