title: How to setup xampp, phpunit, ant, zend framework
body: <p>First post here, so take it easy please.</p>
  
  <p>I'm working through the first chapter of Zend Framework 1.8 Web Application Development by Keith Pope in an effort to learn PHP and the MVC framework. </p>
  
  <p>I thought I included all the paths correctly and installed PHPUnit 3.3 correctly as well as Zend 1.8 and 1.7.4 Xampp. with Ant version 1.8.2. However, I can't seem to get the first simplest build to build.</p>
  
  <p>From looking at other q's and a's on this site I can tell some of the calls in the build.xml file for PHPunit aren't correct and I've tried to correct them, but now I'm getting the error that C:\xampp\htdocs\zendStoreFront/library/Zend does not exist and when I add the Zend directory in I get lots and lots of errors which is telling me that's probably not the right answer.</p>
  
  <p>I understand there's a lot going on in the whole project and I'm willing to take the time to learn, but one question- On the line that says "   --log-xml ${basedir}/build/logs/phpunit.xml ", is this file expected to be in this directory already, or does the build process create the file? On some attempts an error that's echo'd back say that file doesn't exist and currently there is no file in that directory.</p>
  
  <p>Thanks,</p>
  
  <p>hestes</p>
  
  <pre><code>cmd line output
  *****************
  
  
  C:\xampp\htdocs\zendStoreFront\build&gt;ant
  Buildfile: C:\xampp\htdocs\zendStoreFront\build\build.xml
  
  buildPreparation:
  
      getProps:
       [echo] ---- Build Properties ----
       [echo]
       [echo] OS is Windows XP
       [echo] Basedir is C:\xampp\htdocs\zendStoreFront
       [echo] Property file is C:\xampp\htdocs\zendStoreFront/build/ant.properties
  
       [echo] Script-suffix is .bat
       [echo]
       [echo] ---- Storefront Properties ----
       [echo]
       [echo] Environment is development
  
  configure:
       [copy] Copying 1 file to C:\xampp\htdocs\zendStoreFront\application
  
  test:
       [exec] The filename, directory name, or volume label syntax is incorrect.
       [exec] PHPUnit 3.3.10 by Sebastian Bergmann.
       [exec]
       [exec] C:\xampp\htdocs\zendStoreFront/library/Zend does not exist
  
  BUILD FAILED
  C:\xampp\htdocs\zendStoreFront\build\build.xml:28: exec returned: 1
  
  Total time: 1 second
  
  C:\xampp\htdocs\zendStoreFront\build&gt;cd ..
  
  C:\xampp\htdocs\zendStoreFront&gt;ant -version
  Apache Ant(TM) version 1.8.2 compiled on December 20 2010
  </code></pre>
  
  <p><strong>Build.xml File</strong></p>
  
  <p>
  </p>
  
  <pre><code>&lt;target name="getProps"&gt;
     &lt;property file="${basedir}/build/ant.properties" /&gt;
  
     &lt;condition property="script-suffix" value=".bat" else=""&gt;
          &lt;os family="windows" /&gt;
     &lt;/condition&gt;
  
     &lt;echo message="---- Build Properties ----" /&gt;
     &lt;echo message="" /&gt;
  
     &lt;echo message="OS is ${os.name}" /&gt;
     &lt;echo message="Basedir is ${basedir}" /&gt;
     &lt;echo message="Property file is ${basedir}/build/ant.properties" /&gt;
     &lt;echo message="Script-suffix is ${script-suffix}" /&gt;
  
     &lt;echo message="" /&gt;
     &lt;echo message="---- Storefront Properties ----" /&gt;
     &lt;echo message="" /&gt;
  
     &lt;echo message="Environment is ${environment}" /&gt;    
  
  &lt;/target&gt;
  
  &lt;target name="test" depends="getProps"&gt;
     &lt;exec dir="${basedir}/tests" executable="phpunit${script-suffix}" failonerror="true"&gt;
        &lt;arg line="--colors --coverage-html ${basedir}/build/report
           --log-xml ${basedir}/build/logs/phpunit.xml 
           --log-pmd ${basedir}/build/logs/phpunit.pmd.xml
           --log-metrics ${basedir}/build/logs/phpunit.metrics.xml
           --coverage-clover ${basedir}/build/logs/phpunit.coverage.xml 
           AllTests.php"/&gt;
     &lt;/exec&gt;
  &lt;/target&gt;
  
  &lt;target name="configure" depends="getProps"&gt;
     &lt;copy file="${basedir}/application/application.php.dist"
           tofile="${basedir}/application/application.php" overwrite="true" /&gt;
     &lt;replace file="${basedir}/application/application.php" token="@ENVIRONMENT@" value="${environment}" /&gt;
  &lt;/target&gt;
  
  &lt;target name="buildPreparation"&gt;
      &lt;mkdir dir="${basedir}/build/logs" /&gt;
      &lt;mkdir dir="${basedir}/build/report" /&gt;
  &lt;/target&gt;
  
  &lt;target name="clean"&gt;
      &lt;delete dir="${basedir}/build/logs" /&gt;
      &lt;delete dir="${basedir}/build/report" /&gt;
  &lt;/target&gt;
  
  &lt;target name="build" depends="buildPreparation,configure,test"/&gt;
  </code></pre>
  
  <p></p>