My ANT script gives output for every section except the <delete>. It also doesn't really delete the desired directories. I can't figure this out! >:-[
<?xml version="1.0"?>
<project name="loginExample" default="all" basedir=".">
<!-- ***************************************************************** -->
<!-- INITIALIZATION AND CLEANUP -->
<!-- ***************************************************************** -->
<!-- Initialization needed for any target -->
<target name="init">
<property name="name" value="loginExample" />
<property name="src.dir" value="src" />
<property name="lib.dir" value="lib" />
<property name="etc.dir" value="etc" />
<property name="build.dir" value="build" />
<property name="orion.dir" value="C:/orion" />
<property name="build.compiler" value="modern" />
</target>
<!-- Removes all generated files and directories -->
<target name="clean" depends="init">
<del dir="${lib.dir}" />
<del dir="${build.dir}" />
</target>
<!-- Prepares any other build target by creating the expected directory
structure. -->
<target name="prepare" depends="init">
<mkdir dir="${lib.dir}" />
<mkdir dir="${lib.dir}/ejb" />
<mkdir dir="${lib.dir}/ejb/META-INF" />
<mkdir dir="${lib.dir}/web" />
<mkdir dir="${lib.dir}/web/WEB-INF" />
<mkdir dir="${lib.dir}/web/WEB-INF/classes" />
<mkdir dir="${lib.dir}/j2ee" />
<mkdir dir="${lib.dir}/META-INF" />
<mkdir dir="${build.dir}" />
</target>
bla, bla, bla, bla,
</project>
<?xml version="1.0"?>
<project name="loginExample" default="all" basedir=".">
<!-- ***************************************************************** -->
<!-- INITIALIZATION AND CLEANUP -->
<!-- ***************************************************************** -->
<!-- Initialization needed for any target -->
<target name="init">
<property name="name" value="loginExample" />
<property name="src.dir" value="src" />
<property name="lib.dir" value="lib" />
<property name="etc.dir" value="etc" />
<property name="build.dir" value="build" />
<property name="orion.dir" value="C:/orion" />
<property name="build.compiler" value="modern" />
</target>
<!-- Removes all generated files and directories -->
<target name="clean" depends="init">
<del dir="${lib.dir}" />
<del dir="${build.dir}" />
</target>
<!-- Prepares any other build target by creating the expected directory
structure. -->
<target name="prepare" depends="init">
<mkdir dir="${lib.dir}" />
<mkdir dir="${lib.dir}/ejb" />
<mkdir dir="${lib.dir}/ejb/META-INF" />
<mkdir dir="${lib.dir}/web" />
<mkdir dir="${lib.dir}/web/WEB-INF" />
<mkdir dir="${lib.dir}/web/WEB-INF/classes" />
<mkdir dir="${lib.dir}/j2ee" />
<mkdir dir="${lib.dir}/META-INF" />
<mkdir dir="${build.dir}" />
</target>
bla, bla, bla, bla,
</project>