1<?xml version="1.0"?> 2 3<!-- =================================================================== 4 5 Ant build file for example program 6 7This is a build file for use with the Ant build tool. See 8http://jakarta.apache.org/ant/index.html for more info. This build.xml 9file has been tested with ant version 1.2. 10 11 =================================================================== --> 12 13<project name="DOMEcho" default="main" basedir="."> 14 15 <!-- The distribution top directory --> 16 <property name="top" value="../.." /> 17 18 <!-- Common classpath --> 19 <path id="project-classpath"> 20 <pathelement location="." /> 21 <pathelement location="${top}/jaxp.jar" /> 22 <pathelement location="${top}/crimson.jar" /> 23 <pathelement location="${top}/xalan.jar" /> 24 </path> 25 26 <!-- Compile the example program --> 27 <target name="compile"> 28 <javac srcdir="."> 29 <classpath refid="project-classpath" /> 30 <exclude name="**/,**" /> 31 <exclude name="**/SCCS/**" /> 32 </javac> 33 </target> 34 35 <!-- Run the example program with a sample input file. Note, when this 36 target is executed, ant may prefix the output with "[java]". Run 37 the program with "java" directly to avoid this. --> 38 <target name="run"> 39 <java classname="DOMEcho" fork="yes"> 40 <arg value="../samples/namespace.xml" /> 41 <classpath refid="project-classpath" /> 42 </java> 43 </target> 44 45 <target name="clean"> 46 <delete> 47 <fileset dir="." includes="*.class" /> 48 </delete> 49 </target> 50 51 <target name="main" depends="compile,run" /> 52 53</project> 54