From: Rich Morin Date: 2007-03-09T06:23:24+09:00 Subject: Re: having problems fiddling with rake FYI, my current (working) solution looks like this: namespace :doc do # On occasion, we want to grovel over another app's file tree, but # put the results in our own DOC directory. In order to make this # happen, we do the following: # # % setenv README_FOR_APP ... # Make sure that $RDOC_SRC_DIR/doc/README_FOR_APP exists. # In the following code, do some chdir magic. rdoc_src_dir = ENV['RDOC_SRC_DIR'] if (rdoc_src_dir) save_wd = getwd chdir(rdoc_src_dir) else save_wd = '.' end ... rdoc.rdoc_dir = "#{save_wd}/doc/api" ... -- http://www.cfcl.com/rdm Rich Morin http://www.cfcl.com/rdm/resume rdm@cfcl.com http://www.cfcl.com/rdm/weblog +1 650-873-7841 Technical editing and writing, programming, and web development