Permalink
Browse files

The things you do when you are bored.

  • Loading branch information...
1 parent fdb18f8 commit 2893d52d89f02716f6aeefa2c740963e4df151eb @sebastianbergmann committed Mar 12, 2011
Showing with 1,006 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +16 −0 build.xml
  3. +989 −0 build/ant2dot.xsl
View
@@ -5,3 +5,4 @@ build/logs
build/pdepend
phpunit.xml
phpunit.phar
+build.png
View
@@ -106,5 +106,21 @@
</exec>
</target>
+ <target name="ant2dot" description="Visualize this build script using GraphViz">
+ <property name="build.xml" value="${ant.file}"/>
+ <property name="ant2dot.xsl" value="${basedir}/build/ant2dot.xsl"/>
+ <basename property="basename.script" file="${build.xml}" suffix=".xml"/>
+ <property name="dot.file" value="${basename.script}.dot"/>
+ <property name="png.file" value="${basename.script}.png"/>
+
+ <xslt in="${build.xml}" out="${dot.file}" style="${ant2dot.xsl}" force="true" />
+
+ <exec executable="dot" dir="${basedir}">
+ <arg line="-Tpng ${dot.file} -o ${png.file}" />
+ </exec>
+
+ <delete file="${dot.file}"/>
+ </target>
+
<target name="build" depends="clean,parallelTasks,phpunit,phpcb"/>
</project>
Oops, something went wrong.

0 comments on commit 2893d52

Please sign in to comment.