On Wed, Jun 16, 2010 at 2:19 AM, Yungwei Chen <yungwei_at_resolvity.com> wrote:
> I have a branch in svn, which contains 5 child folders:
> svn://host/server/branches/11_30_2009/a1
> svn://host/server/branches/11_30_2009/a2
> svn://host/server/branches/11_30_2009/a3
> svn://host/server/branches/11_30_2009/a4
> svn://host/server/branches/11_30_2009/a5
>
> For project a1, I only need a1, a2, and a3. So I checked them out separately to my box. Their folder structure looks like the following:
> ${code.src.dir}/a1
> ${code.src.dir}/a2
> ${code.src.dir}/a3
>
> Now when I try to get revision info from the working copy using the snippet below, I got an error.
>
> <target name="get-revision-from-wc" description="Get revision info from a working copy.">
> <svn username="${svn.usr.id}" password="${svn.usr.pwd}" failonerror="true">
> <wcVersion path="${code.src.dir}" />
> </svn>
> </target>
>
> The error is the following. And I guess it's because ${code.src.dir} doesn't have the hidden _svn folder.
> C:\server\runtime\build-clu.xml:78: The following error occurred while executing this line:
> C:\server\runtime\build.xml:367: java.lang.NullPointerException
>
> How can I check out a1, a2, and a3 folders so that the folder structure looks like the following? Thanks.
> ${code.src.dir}/11_30_2009/_svn (hidden)
> ${code.src.dir}/11_30_2009/a1
> ${code.src.dir}/11_30_2009/a2
> ${code.src.dir}/11_30_2009/a3
Not sure how you would do it in Subclipse, but from the command-line
it would be something like:
svn checkout svn://host/server/branches/11_30_2009 --depth=empty 11_30_2009
svn update 11_30_2009/a1 --depth=infinity
svn update 11_30_2009/a2 --depth=infinity
svn update 11_30_2009/a3 --depth=infinity
There's a "Depth" option in the Checkout dialog from the SVN
Repository Exploring view, but from there, I don't know how you would
do the individual updates (someone else here might be able to help).
Cheers,
------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1047&dsMessageId=2622722
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subclipse.tigris.org].
Received on 2010-06-17 03:02:36 CEST