[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Re: Recursive externals problem

From: Hilco Wijbenga <hilco.wijbenga_at_gmail.com>
Date: Thu, 11 Dec 2008 23:57:50 -0800

2008/12/10 Koh Hwee Miin <hweemiin_at_hotmail.com>:
> Following is the layout of our project directory:
> projectA\
> |-bin\
> |-lib\
> |-include\
> |-src\
> |-depend\
> So externals will put all depending projects in the "depend" folder, after we do a development build, the outputs will be put into the "bin", "lib" and "include" folders, then these outputs will be committed to the svn, so other projects which depend on this project can reuse the development build outputs, thus no need to build the depending projects again. This is to save build time during development.

I would think twice before I'd commit build results into Subversion
... but that's up to you.

> Back to the projectA, projectB, projectC and projectD example. In this case when we try to build projectD, the only project involves in the build is the projectD itself, as projectA, projectB and projectC already have their build outputs ready when they are checkout from svn, projectD will reuse those build outputs during it's build.

If I were you I'd change your setup a little. Create projectA without
/depend as codeProjectA, the same for codeProjectB, etcetera. Then
create umbrella projects projectA, projectB, projectC, and projectD
that simply have an svn:externals link to their dependencies. You'd
get

codeProjectA
    bin, lib, include, src
codeProjectB
    bin, lib, include, src
codeProjectC
    bin, lib, include, src
codeProjectD
    bin, lib, include, src

projectA
    link_to_codeProjectA

projectB
    link_to_codeProjectA
    link_to_codeProjectB

projectC
    link_to_codeProjectA
    link_to_codeProjectC

projectD
    link_to_codeProjectA
    link_to_codeProjectB
    link_to_codeProjectC
    link_to_codeProjectD

All projects now know exactly where to find everything and every
project is checked out only once.

Cheers,
Hilco

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=983274

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2008-12-12 08:58:42 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.