HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2011-05-06 52ca9dbf6fe042c9647d605e38db071b7be86300
Aufruf der JUnit Tests
1 files modified
29 ■■■■■ changed files
hsarback/build.xml 29 ●●●●● patch | view | raw | blame | history
hsarback/build.xml
@@ -5,6 +5,7 @@
    <property name="lib.home" value="${basedir}/lib" />
    <property name="conf.home" value="${basedir}/conf" />
    <property name="src.home" value="${basedir}/src" />
    <property name="test.home" value="${basedir}/test" />
    <property name="dist.home" value="${basedir}/dist" />
    <property file="${user.home}/.hsar.ant.properties" />
@@ -72,6 +73,19 @@
        </javac>
    </target>
    <target name="compile-test" description="tests compilieren" depends="compile">
        <mkdir dir="${build.home}" />
        <mkdir dir="${build.home}/test" />
        <javac srcdir="${test.home}" destdir="${build.home}/test" debug="${compile.debug}" deprecation="${compile.deprecation}" optimize="${compile.optimize}" encoding="UTF8">
            <classpath refid="compile.classpath" />
            <classpath>
                <pathelement path="${compile.classpath}"/>
                <pathelement location="${build.home}/cls"/>
                <pathelement path="/usr/share/java/junit4.jar"/>
            </classpath>
        </javac>
    </target>
    <target name="enhance" description="openjpa enhancer" depends="compile">
        <taskdef name="openjpac" classname="org.apache.openjpa.ant.PCEnhancerTask">
            <classpath refid="enhance.classpath"/>
@@ -109,4 +123,19 @@
            src="database/dropschema.sql" />        
    </target>
    
    <target name="remote-test" description="inspection of xmlrpc-api" depends="compile-test">
        <junit printsummary="yes" fork="yes">
            <classpath>
                <fileset dir="lib">
                    <include name="*.jar" />
                </fileset>
                <pathelement location="${build.home}/cls"/>
                <pathelement location="${build.home}/test"/>
                <pathelement path="/usr/share/java/junit4.jar"/>
            </classpath>
            <formatter type="xml"/>
            <test name="de.hsadmin.remote.RemoteTest"/>
        </junit>
    </target>
</project>