You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Erik Meade <em...@geekfarm.org> on 2000/09/26 01:16:10 UTC

Problem with deltree in my build.xml

The deltree tasks in this snippet of my build.xml are not being executed.

  <!--
=================================================================== -->
  <!-- Run
         -->
  <!--
=================================================================== -->
  <target name="runtests" depends="compiletests" if="junit.present">
    <copydir src="${src.tests.dir}"
             dest=".">
       <exclude name="*.java" />
       <include name="**/*.java" />
     </copydir>

    <junit printsummary="no" fork="yes" haltonfailure="no">
      <classpath>
        <pathelement location="${build.classes}" />
        <pathelement location="/java/cvs/jakarta-ant/lib/ant.jar" />
        <pathelement location="/java/junit/junit3.2/junit.jar" />
        <pathelement location="${build.tests}" />
        <path refid="classpath" />
      </classpath>

      <formatter type="plain" usefile="false" />

      <test name="MeasureTest" />
      <test name="AbstractnessVisitorTest" />
      <test name="AbstractnessTest" />
      <test name="StabilityVisitorTest" />
      <test name="StabilityTest" />
    </junit>

    <deltree dir="AbstractnessTestCase"/>
    <deltree dir="StabilityTestCase"/>

  </target>

I did a test to make sure deltree works the way I think it does:

<?xml version="1.0"?>

<project name="AntTest" default="test" basedir=".">
  <target name="test">
    <copydir src="testdir/"
             dest=".">
      <include name="**/*.txt"/>
    </copydir>
    <deltree dir="copydir"/>
  </target>
</project>

This works, can anyone see what I am doing wrong above?

Thanks!

Erik Meade


RE: Problem with deltree in my build.xml

Posted by Erik Meade <em...@geekfarm.org>.
I found what was wrong.  Misspelled directories.  I hate it when
I do that....

Erik Meade