ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r448052 - in /ant/core/trunk/src: etc/testcases/taskdefs/javadoc/javadoc.xml testcases/org/apache/tools/ant/taskdefs/JavadocTest.java
Date Wed, 20 Sep 2006 04:11:00 GMT
Author: antoine
Date: Tue Sep 19 21:10:59 2006
New Revision: 448052

URL: http://svn.apache.org/viewvc?view=rev&rev=448052
Log:
added tearDown

Modified:
    ant/core/trunk/src/etc/testcases/taskdefs/javadoc/javadoc.xml
    ant/core/trunk/src/testcases/org/apache/tools/ant/taskdefs/JavadocTest.java

Modified: ant/core/trunk/src/etc/testcases/taskdefs/javadoc/javadoc.xml
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/etc/testcases/taskdefs/javadoc/javadoc.xml?view=diff&rev=448052&r1=448051&r2=448052
==============================================================================
--- ant/core/trunk/src/etc/testcases/taskdefs/javadoc/javadoc.xml (original)
+++ ant/core/trunk/src/etc/testcases/taskdefs/javadoc/javadoc.xml Tue Sep 19 21:10:59 2006
@@ -19,17 +19,22 @@
   <path id="path.dirset">
     <dirset dir="." />
   </path>
+  <property name="javadoc" location="javadoc"/>
+
+  <target name="tearDown">
+    <delete dir="${javadoc}" quiet="true"/>
+  </target>
 
   <target name="dirsetPath">
-    <javadoc sourcepathref="path.dirset" packagenames="*" destdir="javadoc" />
+    <javadoc sourcepathref="path.dirset" packagenames="*" destdir="${javadoc}" />
   </target>
 
   <target name="dirsetPathWithoutPackagenames">
-    <javadoc sourcepathref="path.dirset" destdir="javadoc" />
+    <javadoc sourcepathref="path.dirset" destdir="${javadoc}" />
   </target>
 
   <target name="nestedDirsetPath">
-    <javadoc packagenames="*" destdir="javadoc">
+    <javadoc packagenames="*" destdir="${javadoc}">
       <sourcepath refid="path.dirset" />
     </javadoc>
   </target>
@@ -42,29 +47,29 @@
   </path>
 
   <target name="filesetPath">
-    <javadoc sourcepathref="path.fileset" packagenames="*" destdir="javadoc" />
+    <javadoc sourcepathref="path.fileset" packagenames="*" destdir="${javadoc}" />
   </target>
 
   <target name="nestedFilesetPath">
-    <javadoc packagenames="*" destdir="javadoc">
+    <javadoc packagenames="*" destdir="${javadoc}">
       <sourcepath refid="path.fileset" />
     </javadoc>
   </target>
 
   <target name="nestedFilesetRefInPath">
-    <javadoc packagenames="*" destdir="javadoc">
+    <javadoc packagenames="*" destdir="${javadoc}">
       <fileset refid="fileset.inpath" />
     </javadoc>
   </target>
 
   <target name="nestedFilesetNoPatterns">
-    <javadoc packagenames="*" destdir="javadoc">
+    <javadoc packagenames="*" destdir="${javadoc}">
       <fileset dir="java/"/>
     </javadoc>
   </target>
 
   <target name="doublyNestedFileset">
-    <javadoc packagenames="*" destdir="javadoc">
+    <javadoc packagenames="*" destdir="${javadoc}">
       <sourcefiles>
         <fileset dir="java/" includes="**/*.java"/>
       </sourcefiles>
@@ -72,7 +77,7 @@
   </target>
 
   <target name="doublyNestedFilesetNoPatterns">
-    <javadoc packagenames="*" destdir="javadoc">
+    <javadoc packagenames="*" destdir="${javadoc}">
       <sourcefiles>
         <fileset dir="java/"/>
       </sourcefiles>
@@ -88,22 +93,25 @@
 
   <target name="filelistPath">
     <javadoc sourcepathref="path.filelist" packagenames="*"
-      destdir="javadoc" />
+      destdir="${javadoc}" />
   </target>
 
   <target name="nestedFilelistPath">
-    <javadoc packagenames="*" destdir="javadoc">
+    <javadoc packagenames="*" destdir="${javadoc}">
       <sourcepath refid="path.filelist" />
     </javadoc>
   </target>
 
+  <!-- this property is set when the tests are run using ant's build.xml -->
+  <property name="root" location="../../../../.."/>
+
   <path id="path.pathelement.path">
     <pathelement path="${root}/src" />
   </path>
 
   <target name="pathelementPath">
     <javadoc sourcepathref="path.pathelement.path"
-      packagenames="etc.testcases.taskdefs.javadoc.*" destdir="javadoc" />
+      packagenames="etc.testcases.taskdefs.javadoc.*" destdir="${javadoc}" />
   </target>
 
   <path id="path.pathelement.location">
@@ -113,11 +121,11 @@
 
   <target name="pathelementLocationPath">
     <javadoc sourcepathref="path.pathelement.location"
-      packagenames="*" destdir="javadoc" />
+      packagenames="*" destdir="${javadoc}" />
   </target>
 
   <target name="nestedSource">
-    <javadoc destdir="javadoc">
+    <javadoc destdir="${javadoc}">
       <source file="java/ClassToJavadoc.java" />
     </javadoc>
   </target>
@@ -127,7 +135,7 @@
   </fileset>
 
   <target name="nestedFilesetRef">
-    <javadoc destdir="javadoc">
+    <javadoc destdir="${javadoc}">
       <fileset refid="fileset.simple" />
     </javadoc>
   </target>

Modified: ant/core/trunk/src/testcases/org/apache/tools/ant/taskdefs/JavadocTest.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/testcases/org/apache/tools/ant/taskdefs/JavadocTest.java?view=diff&rev=448052&r1=448051&r2=448052
==============================================================================
--- ant/core/trunk/src/testcases/org/apache/tools/ant/taskdefs/JavadocTest.java (original)
+++ ant/core/trunk/src/testcases/org/apache/tools/ant/taskdefs/JavadocTest.java Tue Sep 19
21:10:59 2006
@@ -36,6 +36,9 @@
         configureProject(BUILD_FILE);
     }
 
+    protected void tearDown() {
+        getProject().executeTarget("tearDown");
+    }
     // PR 38370
     public void testDirsetPath() throws Exception {
         executeTarget("dirsetPath");



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message