Commits

Anonymous committed 015c194

Make sure clover jar is in classpath when calling clover tasks.

git-svn-id: http://svn.opensymphony.com/svn/xwork/trunk@222e221344d-f017-0410-9bd5-d282ab1896d7

Comments (0)

Files changed (1)

         </fileset>
     </path>
 
+    <path id="clover.classpath">
+        <path refid="cp"/>
+        <fileset dir="lib/build">
+            <include name="clover*.jar"/>
+        </fileset>
+    </path>
+
     <property file="build.properties"/>
 
     <property name="lib" value="lib"/>
     </target>
 
     <target name="test" depends="format, java">
-        <taskdef resource="clovertasks"/>
+        <taskdef resource="clovertasks">
+            <classpath refid="clover.classpath"/>
+        </taskdef>
         <taskdef name="junit" classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"/>
 
         <mkdir dir="${build.clover}"/>
         </copy>
 
         <mkdir dir="${build.java-test}"/>
-        <javac srcdir="${src.java}" destdir="${build.java-test}" classpathref="cp" debug="on" compiler="org.apache.tools.ant.taskdefs.CloverCompilerAdapter"/>
+        <javac srcdir="${src.java}" destdir="${build.java-test}" classpathref="clover.classpath" debug="on" compiler="org.apache.tools.ant.taskdefs.CloverCompilerAdapter"/>
         <copy filtering="no" todir="${build.java-test}">
             <fileset dir="${src.java}">
                 <exclude name="**/*.java"/>