Permalink
Browse files

git-svn-id: http://mongodb-morph.googlecode.com/svn/trunk@72 406649b4…

…-5d4b-11de-8abc-d1c337b90d21
  • Loading branch information...
1 parent 2651f11 commit 1b6743855aa775bef8cad60fd6a0e7a4e6fcf199 XirisR committed Jan 18, 2010
Showing with 20 additions and 6 deletions.
  1. +20 −6 mongodb-morph/build.xml
View
@@ -33,7 +33,7 @@
<echo msg="API Documentation Creation Complete" />
</target>
- <target name="unit-test" description="Runs Morph unit tests">
+ <target name="test-report" description="Runs Morph unit tests">
<echo msg="Starting Unit Test Suite" />
<phpunit haltonfailure="false" haltonerror="false" printsummary="true">
@@ -74,18 +74,32 @@
<format property="date.year" pattern="%Y" />
<format property="date.build" pattern="%s" />
</tstamp>
-
- <pharpackage basedir="./src/Morph" destfile="Morph.phar"
- compression="gzip" stub="./src/bootstrap.php" alias="Morph">
+
+ <echo message="Creating comment free classes export" />
+ <mkdir dir="./export" />
+ <copy todir="./export">
<fileset refid="classes" />
+ <filterchain>
+ <stripphpcomments />
+ </filterchain>
+ </copy>
+
+ <echo message="Building Morph.phar" />
+ <delete file="Morph.phar" quiet="true" />
+
+ <pharpackage basedir="./export" destfile="Morph.phar" compression="gzip" stub="./src/bootstrap.php" alias="Morph">
+ <fileset dir="./export">
+ <include name="**/*.php" />
+ </fileset>
<metadata>
<element name="Created Date" value="${date.created}" />
<element name="Copyright" value="Jonathan Moss (c) 2008-${date.year}" />
<element name="Build" value="${date.build}" />
</metadata>
</pharpackage>
+
+ <echo message="Cleaning temporary files" />
+ <delete dir="./export" quiet="true" includeemptydirs="true" />
</target>
-
- <target name="all" description="builds everything" depends="unit-test, coverage, doc, package" />
</project>

0 comments on commit 1b67438

Please sign in to comment.