<?xml version="1.0" encoding="UTF-8"?>

	
	
	<project name="examples" default="examples" basedir="../../..">
<target name="install">
<property value="${basedir}/../www/tutorial" name="tutorialsrc"/>
<property value="${basedir}/tutorial" name="tutorial"/>
<antcall target="examples"/>
</target>
<target name="examples">
<property value="${basedir}/bin" name="bin"/>
<property value="${basedir}/tutorial" name="tutorial"/>
<property value="${basedir}/examples" name="examples"/>
<property value="${basedir}/webapp" name="webapp"/>
<path id="classpath">
<pathelement location="${examples}"/>
<pathelement location="${bin}/iText.jar"/>
</path>
<available property="bin.dir.present" type="dir" file="${bin}"/>
<fail message="${basedir} has no subdirectory 'bin'" unless="bin.dir.present"/>
<available property="itext.jar.present" type="file" file="${bin}/iText.jar"/>
<fail message="You need the iText.jar in this directory: ${bin}" unless="itext.jar.present"/>
<javac verbose="false" destdir="${examples}" srcdir="${examples}">
<classpath refid="classpath"/>
<include name="com/lowagie/examples/directcontent/text/*.java"/>
</javac>
<java fork="yes" dir="${tutorial}/directcontent/text" classname="com.lowagie.examples.directcontent.text.Text">
<classpath refid="classpath"/>
</java>
<java fork="yes" dir="${tutorial}/directcontent/text" classname="com.lowagie.examples.directcontent.text.Logo">
<classpath refid="classpath"/>
</java>
<delete>
<fileset includes="**/*.class" dir="${examples}"/>
</delete>
</target>
</project>
	
	

	
	
	
	
	
	

