this worked for me:

Index: build.xml
===================================================================
--- build.xml   (revision 397839)
+++ build.xml   (working copy)
@@ -783,6 +783,9 @@
         <exclude name="${constants.file}"/>
         <exclude name="${poolconn.file}"/>
       </javac>
+      <copy todir="${build.test.classes}">
+          <fileset dir="${junitjava.dir}" includes="**/*.zone" />
+      </copy>
     </target>

     <target name="run-unit-tests" depends="unit-tests-classpath,
compile-unit-tests">


On 4/28/06, Bernd Fondermann <[EMAIL PROTECTED]> wrote:
> Hi Stefano,
>
> this is cool stuff!
>
> what did you do to get the zone-files on the classpath when running
> "./build run-unit-tests"?
> copy them over to build/test/classes?
> add src/test to the classpath?
>
> BTW, i'd prefer the first.
>
>    Bernd
>
>
> [EMAIL PROTECTED] wrote:
> > Author: bago
> > Date: Fri Apr 28 02:59:57 2006
> > New Revision: 397836
> >
> > URL: http://svn.apache.org/viewcvs?rev=397836&view=rev
> > Log:
> > findMX result was modifiable in some circumstances. fixed (reported by 
> > Noeal).
> > Added a unittest, and improved unittests for DNSServer by adding a 
> > File-based mocked-zone resolver and 3 sample zones.
> >
> > Added:
> >     
> > james/server/trunk/src/test/org/apache/james/dnsserver/brandilyncollins-com.zone
> >    (with props)
> >     james/server/trunk/src/test/org/apache/james/dnsserver/pippo-com.zone   
> > (with props)
> >     
> > james/server/trunk/src/test/org/apache/james/dnsserver/test-zone-com.zone   
> > (with props)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to