<?xml version="1.0"?> <!-- $Id: tomcat331_build.xml,v 1.1.1.1 2002/06/17 12:21:31 kengo Exp $ --> <project name="Vizant" default="test" basedir="."> <description> </description> <property name="src" location="src"/> <property name="testsrc" location="testcases"/> <property name="build" location="build"/> <target name="init"> <tstamp/> <mkdir dir="${build}"/> </target> <target name="build" depends="init" > <javac srcdir="${src}" destdir="${build}"/> <javac srcdir="${testsrc}" destdir="${build}" classpath="lib/junit.jar"/> </target> <target name="test" depends="build"> <junit printsummary="yes" fork="yes" haltonfailure="yes"> <classpath> <pathelement location="${build}" /> </classpath> <batchtest fork="yes"> <formatter type="plain" usefile="false"/> <fileset dir="${testsrc}"> <include name="**/*Test*.java" /> <exclude name="**/AllTests.java" /> </fileset> </batchtest> </junit> </target> <target name="declare" depends="build"> <taskdef name="vizant" classname="Vizant" classpath="build"/> </target> <target name="vizant" depends="declare"> <vizant antfile="test.xml" outfile="${build}/1.dot"/> <vizant antfile="test.xml" outfile="${build}/2.dot" from="dist"/> <vizant antfile="test.xml" outfile="${build}/3.dot" to="prepare"/> <vizant antfile="test.xml" outfile="${build}/4.dot"> <attrstmt type="graph"> <attr name="ranksep" value="1.2"/> <attr name="nodesep" value="0.5"/> </attrstmt> <attrstmt type="node"> <attr name="URL" value="javascript:alert('\N');"/> <attr name="color" value="grey85"/> <attr name="style" value="filled"/> </attrstmt> <attrstmt type="edge"> <attr name="color" value="grey70"/> </attrstmt> <attrstmt type="edge.antcall"> <attr name="label" value="antcall"/> <attr name="fontcolor" value="gray70"/> <attr name="fontsize" value="9"/> </attrstmt> <attrstmt type="node.default"> <attr name="color" value="pink"/> </attrstmt> <subgraph> <attrstmt type="graph"> <attr name="style" value="filled"/> <attr name="color" value="grey95"/> </attrstmt> </subgraph> </vizant> </target> <target name="dot"> <exec executable="dot" > <arg line="-Tpng ${build}/1.dot -o ${build}/1.png"/> </exec> <exec executable="dot" > <arg line="-Tpng ${build}/2.dot -o ${build}/2.png"/> </exec> <exec executable="dot" > <arg line="-Tpng ${build}/3.dot -o ${build}/3.png"/> </exec> <exec executable="dot" > <arg line="-Tpng ${build}/4.dot -o ${build}/4.png"/> </exec> <exec executable="dot" > <arg line="-Tsvg ${build}/4.dot -o ${build}/4.svg"/> </exec> </target> <target name="main" depends="vizant,dot"/> <target name="clean"> <delete dir="${build}"/> <delete verbose="true"> <fileset dir="." defaultexcludes="no"> <include name="**/*~" /> </fileset> </delete> </target> </project>