metahack

jan's notes on seemingly random things

    • Edit
    • Delete
    • Autopost

    Building DocProject projects with Hudson

    I use DocProject for automated documentation builds of one of the projects I'm currently involved in. DP takes away much of the manual doc-generation tasks as it provides a VS (Visual Studio) project for the documentation project and is integrated in the project's solution. This allowed me to incorporate the documentation build as part of project build (using msbuild), which is already integrated in my Hudson deployment

    The doc build is not as seamless as it should be and I'll be highlighting the additional tasks required to build the doc project so you don't spend half of your day working out the build failures for the last few hours like I did :)

    Environment Variables

    Before you push your changes, make sure you add the environment variables DocProjectBuildPath and DocProjectPath in your project's configuration in Hudson. The value of these two variables can be found in Window's System Properties. It's strange that this wasn't already in the doc project's documentation. Without these two variables, msbuild will look for the target files in your C:\.

    Leading dot (.) 

    I started Hudson with a default configuration - with HUDSON_HOME pointing to ~/.hudson. That shouldn't be a problem but one of the build steps (there are 12 steps!) to build the doc project involved generating a .chm file for Help 1.x. Who would've thought that you're not allowed to have dots (.) in front of your folders? Moving my HUDSON_HOME to something more sane fixed it for me. 

    Tags » build documentation hudson
    • 20 May 2010
    • Views
    • 0 Comments
    • Permalink
    • Favorited 0 Times
    • Tweet

    Comments 0 Comments

    Leave a Comment

  • Jan Michael Alonzo's Posterous

    Programmer, hobbyist and technologist. Interested in GTD, cool new shiny things and productivity/efficiency tools; always looking for new challenges and opportunities.

  • About Jan Michael Alonzo

    Programmer, hobbyist and technologist. Interested in GTD, cool new shiny things and productivity/efficiency tools; always looking for new challenges and opportunities.

  • Subscribe

    Subscribe to this posterous
    Unsubscribe
    Follow this posterous RSS
  • Follow Me

                   

Theme created for Posterous by Obox