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”Wink 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 Wink

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

And here’s my updated Rakefile-2 (47), 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

Click to Insert Smiley

SmileBig SmileGrinLaughLOLFrownBig FrownWinkKissRazzAngelAngryReally AngryConfusedNeutralThinkingChicCoolNerdSillyDrunken RazzMad RazzEvil GrinMeanPissed OffReally PissedCurseShoutGrit TeethCryWeepSide FrownWiltSmugDisdainRoll EyesSarcasmLoserTalk to the HandShyBeat UpPainShameBeautyBlushCuteLashesKissingKiss BlowKissedHeh!SmirkSnickerGiggleIn LoveDroolEek!ShockSickSuspenseTrembleDazedHypnotizedFoot in MouthMoney MouthQuietShut MouthDOH!IDKQuestionLyingStruggleSweatStopByeGo AwayWavingTime OutCall MeOn the PhoneMeetingSecretHandshakeHigh FiveHug LeftHug RightClapDanceJumpFingers CrossedVictoryYawnSleepyPrayWorshipWaitingAlienClownCowboyCyclopsDevilDoctorFemale FighterMale FighterMohawkMusicPartyPirateSkywalkerSnowmanSoldierGhostSkeletonEatStarvingVampireZombie KillerBunnyCatCat 2ChickChickenChicken 2CowCow 2DogDog 2DuckGoatHippoKoalaLionMonkeyMonkey 2MousePandaPigPig 2SheepSheep 2ReindeerSnailTigerTurtleFemaleMaleHeartBroken HeartRoseDead RosePeaceYin YangUS FlagMoonStarSunCloudyRainThunderUmbrellaRainbowMusic NoteYesNoAirplaneCarIslandAnnouncebrbBeerDrinkLiquorCakeCoffeePizzaWatermelonBowlPlateCanMailCellPhoneCameraFilmTVClockLampSearchCoinsComputerConsolePresentSoccerCloverPumpkinBombHammerKnifeHandcuffsPillPoopCigarette