Friday, June 26, 2009

svn externals usage

I have a Foundation framework that uses com.webobjects.foundation classes, apache commons lang and a few other non-WebObjects libraries and utility classes (Separation of Concerns, etc.) I use WO 5.3.3, so without including project WOnder's ERExtensions, I don't get the benefit of generic foundations classes for NSArray, NSDictionary, etc. As I added some utility methods today in the framework, I decided to use svn externals to pick up the genericized foundation classes directly from Wonder HEAD.

This was simple to do.

I created a com.webobjects package in my Sources directory and added the following svn property to the webobjects directory:
name: svn:externals
value: foundation http://wonder.svn.sourceforge.net/svnroot/wonder/trunk/Wonder/Frameworks/Core/ERExtensions/Sources/com/webobjects/foundation

Note that is a space between foundation and the http url and that is all on one line of text. With svn:externals you can add multiple lines to pull in multiple external sources into your working copy.

I originally tried added a svn:externals property to the Sources directory itself with a left-hand-side of com/webobjects/foundation, which according to the svn book should work, but Subclipse was getting confused and freaking out when trying to commit saying that webobjects directory did not exist in repository.

0 comments:

Post a Comment