From: Jim Weirich Date: 2005-01-25T11:48:24+09:00 Subject: Re: Curious behavior of rake On Monday 24 January 2005 08:55 pm, itsme213 wrote: > I have had trouble previously before because of the number of Dir and/or > FileUtil methods 'included' by rake. Specifically name conflicts since > whatever rake includes goes into Object, and that conflicted with things I > do in my own code. Generally rake assumes that it owns the "VM". It doesn't expect you to run application code in the same ruby instance as rake is running. I know Austin's test task does this, but goes against one of rake's basic assumptions. > I was wondering if there was a way around that global > 'include', since uses of the Dir or FileUtil methods are (should be?) > limited to within tasks. For example, Tasks could catch missing methods > that are in the set of FileUtil.instance_methods, and handle them > appropriately. Feasible? Worth considering? An interesting idea. Its probably worth investigating. Thanks for the idea. -- -- Jim Weirich jim@weirichhouse.org http://onestepback.org ----------------------------------------------------------------- "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)