Hi,
Thanks for your help.
Would you mind tell me what's wrong with this snippet:

First, the error message:

/Users/sam/devo/projects/innoverity/RuleMaker/build.xml:144: Class 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask doesn't support 
the nested "sysproperty" element

Here's how I am trying use it:

<target name = "junit">
                <available property = "junit.properties" classname = 
"junit.framework.TestCase"/>
        </target>
        <target name = "compiletests" depends = "compile">
                <mkdir dir = "${build.tests}"/>
                <javac srcdir = "${test.dir}" destdir = "${build.tests}">
                        <include name = "**/*JUnit*.java"/>
                        <!-- include the build.dir so we can run the tests -->
                        
                        <classpath>
                <fileset dir="./lib">
                   <include name="**/*.jar" />
                 </fileset>
                                <pathelement path = "${build.dir}/classes"/>
                        </classpath>

                </javac>
        </target>
        <target name = "tests" depends = "compiletests">
                <junit printsummary = "yes" fork = "no" haltonfailure = 
"no">                   
                     <formatter type = "plain" usefile="false"/>
                                        <sysproperty key="testdata.negative0" 
value="spencer"/>

                        <classpath>
                                <pathelement location = "${test.dir}"/>
                                <pathelement location = "${src.dir}"/>
                                <pathelement path = "${java.class.path}"/>
                                <pathelement path = "${build.tests}"/>
                                <pathelement path = "${build.dest}"/>
                 <fileset dir="./lib">
                   <include name="**/*.jar" />
                 </fileset>
                                <pathelement path = "${build.dir}/classes"/>
                        </classpath>
                        <batchtest fork = "yes">
                                <fileset dir = "${test.dir}">
                                        <include name = "**/*JUnit*.java"/>
                                        <exclude name = "**/AllTests.java"/>
                                </fileset>
                        </batchtest>
                </junit>
        </target>

Thanks, Spencer

On Saturday, May 5, 2001, at 03:58 PM, Robert Leftwich wrote:

>       <sysproperty key="conf.dir" value="${unit.test.conf}"/>
>       <sysproperty key="log4j.configuration" 
> value="file:${unit.test.conf}/log4j.properties"/>

Reply via email to