The curse of RTFM after the fact

Having jumped into rake to rebuild a build-script from msbuild, I’ve now found (er, read “bothered to read”) some “proper” rake documentation (it turns out I was too stupid to figure out the web interface to RubyDoc to stumble across the rakefile.rdoc documentation that explains rake’s capabilities) courtesy of Martin Fowler via Google while I was trying to figure out how to zip up my build output.  Even though I’ve got a script that is (I reckon) pretty understandable, concise, and, well, working – it turns out I’ve reinvented the wheel a few times.  That grates!  Still.  Live and learn – and re-rebuild at some point ;-)

To save other people the same mistake, here’re some useful things that I found:

And here’s my updated [download#2], which now zips up the output after the unit-tests have run (since at this point, we’re still independent of things like licenses and database-server dependencies that the other tasks will require, and the cost of harvesting and zipping even when the later testing fails is not so large a waste compared to simplicity).  Obviously, I haven’t yet realised that FileTask exists in rake…

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • StumbleUpon
  • Reddit
  • DotNetKicks
  • DZone
  • LinkedIn
  • Technorati

Leave a comment

Your comment