James Britt
11/3/2004 11:51:00 PM
When using rake to create rdoc files on Windows 2000, I get this error
rdoc -o doc --main 'README.rdoc' -T 'html' README.rdoc ./lib/catapult.rb
/lib
rake aborted!
Command Failed: [rdoc -o doc --main 'README.rdoc' -T 'html' README.rdoc
/lib/catapult.rb ./lib]
But if I copy and paste that top command string, it runs fine in a CMD box.
Here's the task def:
Rake::RDocTask.new( :rdoc ){ |rd|
rd.rdoc_dir = 'doc'
rd.rdoc_files.add( 'README.rdoc', './lib/catapult.rb', './lib' )
rd.main = "README.rdoc"
}
Specs:
ruby 1.8.2 (2004-07-29) [i386-mswin32]
rake, version 0.4.9
I saw a similar message posted here about this problem on WinXP, but did
not see a reply.
James
P.S.
I updated my Rake gem before writing, to see if the current version
fixed this issue. I used this command:
gem update rake
which just seemed like The Way It Would Work. But it updated all my
gems. Which, after running 'gem help update', I then understood.
Is there a way to update just a particular gem file? In lieu of that,
shouldn't I get an error for passing an unknown parameter, so at least I
don't run something I didn't intend?