Re: Suggestions

Chris Nokleberg <chris-k7PiZI/[email protected]> Fri, 20 Dec 2002 13:33:22 -0800
Newsgroups gmane.comp.java.securityfilter.user
Message-ID <20021220213322.GE252@shorty>
On Fri, Dec 20, 2002 at 12:11:18PM -0800, Chris Nokleberg wrote:
> I've also attached an ant build.xml file for regex-test.

Oops, here it is.

-Chris
build.xml (text/plain, 1.4 KB)
<?xml version='1.0' encoding='UTF-8'?>
<project default="test">
    <property file="${user.home}/build.properties"/>
    <property file="build.properties"/>

    <property name="src" location="src"/>
    <property name="build" location="build"/>
    <property name="compile.debug" value="true"/>
    <property name="compile.deprecation" value="false"/>
    <property name="compile.optimize" value="false"/>

    <target name="declare-paths">
        <mkdir dir="${build}"/>
        <path id="path.build">
            <pathelement path="${lib.oro}"/>
            <pathelement path="${lib.regexp}"/>
            <pathelement path="${lib.junitperf}"/>
        </path>
        <path id="path.test">
            <pathelement location="${build}"/>
            <path refid="path.build"/>
        </path>
    </target>

    <target name="build" depends="declare-paths">
        <javac srcdir="${src}" destdir="${build}" 
          debug="${compile.debug}" optimize="${compile.optimize}" deprecation="${compile.deprecation}">
            <classpath refid="path.build"/>
        </javac>
        <copy todir="${build}">
            <fileset dir="${src}" excludes="**/*.java"/>
        </copy>
    </target>

    <target name="test" depends="build">
        <junit>
            <formatter type="brief"/>
            <classpath refid="path.test"/>
            <test name="org.securityfilter.regextest.PatternMatcherLoadTest"/>
        </junit>
    </target>
</project>