How to fetch code [on Windows]

I’ve been meaning to write this for quite some time now so here it goes: a step by step guide on the recommended way to get the code from the phpBridges project.

  • Setting up Launchpad and Bazaar
    1. Download and install Bazaar for Windows.
    2. Download PuttyGen and PageAnt from the Putty Homepage.
    3. Register an account at Launchpad.
    4. Use PuttyGen to generate an SSH key and store the private key somewhere safe (don’t close the window just yet!).
    5. Copy the Public Key from the PuttyGen window and add it to your launchpad account.
    6. Run PageAnd. Right click on the system tray icon and click Add Key to add your previously generated private key (you kept it in a place safe right?).
    7. Open a Command Line (start menu -> run -> type in “cmd” -> hit enter).
    8. type “bzr whoami launchpad_username <launchpad_email>”
  • Setting up the Eclipse PDT
    1. Download the Zend Eclipse PDT and extract the files to the location of your choice.
    2. Open eclipse.exe from the files you extracted and choose your working directory.
    3. Follow the instructions to install the BzrEclipse plugin
    4. As soon as eclipse is restarted change to the php prespective and do:
      • File -> New -> Project
      • “Pull a branch as a new project” under Bazaar, hit next
      • “Initialize a new branch location”, hit next
      • As a location use the download url you can find at Launchpad
      • hit next until you can name your project, choose whatever name you want and click finished.
  • You’re now ready to start working!

And that does it, now you’re ready to start working on the phpBridges code. I’ll try to write up a guide on how to upload code to launchpad soon enough but for now just browse through the Launchpad Documentation on how to create new branches.

Tags: , , , , , , , , , ,

Leave a Reply