Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Revision Control Creates New Source Directory Daily
Revision Control Creates New Source Directory Daily [message #175897] Fri, 01 September 2006 16:44 Go to next message
Eclipse UserFriend
Originally posted by: ransomstark.gmail.com

Hi,

I'm working in a revision controlled large-ish project, and the way the
versioning is done is that every night there is a build which produces a
new baseline. When developers arrive in the morning, they're usually
expected to download the new baseline and either switch or merge to it.
The new baseline has it's own local directory on a developer's machine.

This doesn't cause much of a problem for the VIM guys around here, but
for me it's a nightmare since it means every day I have to create a new
eclipse cdt project, and find something to do while the indexer runs for
an hour.

Does anyone have any suggestions to either:
- Fool eclipse into thinking it's the same project with some changes (via
symlink trickery), meaning only a partial re-indexing
- Automate the project creation process so it can be done before I arrive
in the morning

Thanks,
Lloyd
Re: Revision Control Creates New Source Directory Daily [message #175952 is a reply to message #175897] Sat, 02 September 2006 22:29 Go to previous messageGo to next message
Henning Riedel is currently offline Henning RiedelFriend
Messages: 310
Registered: July 2009
Senior Member
Well, you could symlink your codebase to some "code-current" directory
symlink in unix, and with the help of some tools in windows too.

e.g.
The <..> are directory names in your configuration
1.) Save old directory mapping into log
ls -l <current-work-directory> >> work_last.log
2.) Remove old symlink
rm -f <current-work-directory>
3.) Get new baseline
<vcm-get> <baseline> <baseline-directory>
4.) Have eclipse project be set on symlink directory

Each day, repeat 1.) .. 3.).
Just work with eclipse/cdt, but make a refresh on the project to rebuild
the index.

Regards,
Henning

Lloyd Atkinson schrieb:
> Hi,
>
> I'm working in a revision controlled large-ish project, and the way the
> versioning is done is that every night there is a build which produces a
> new baseline. When developers arrive in the morning, they're usually
> expected to download the new baseline and either switch or merge to it.
> The new baseline has it's own local directory on a developer's machine.
>
> This doesn't cause much of a problem for the VIM guys around here, but
> for me it's a nightmare since it means every day I have to create a new
> eclipse cdt project, and find something to do while the indexer runs for
> an hour.
>
> Does anyone have any suggestions to either:
> - Fool eclipse into thinking it's the same project with some changes
> (via symlink trickery), meaning only a partial re-indexing
> - Automate the project creation process so it can be done before I
> arrive in the morning
>
> Thanks,
> Lloyd
>
Re: Revision Control Creates New Source Directory Daily [message #176107 is a reply to message #175952] Tue, 05 September 2006 16:14 Go to previous message
Eclipse UserFriend
Originally posted by: ransomstark.gmail.com

I don't think this will work because doesn't Eclipse/CDT populate the
project directories with .metadata files and other markers throughout the
project tree? If I were to try and automate the procedure, would I have to
find and copy forward those?

Would that just confuse Eclipse more?

Also, and really this is the problem: will Eclipse have to re-indexer the
source files? That process takes almost an hour on my setup right now.
Previous Topic:How to increase content assist scope
Next Topic:Arbitrary standard make build time-outs?
Goto Forum:
  


Current Time: Tue Apr 23 06:13:24 GMT 2024

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

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

Back to the top