HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2011-05-06 a9e79b5d7a12f31f5f694595110cf11c1993cbc0
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,20 @@
         src="database/dropschema.sql" />      
   </target>
   
   <target name="remote-test" description="inspection of xmlrpc-api" depends="compile-test">
      <mkdir dir="${build.home}/junit" />
      <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" todir="${build.home}/junit" />
      </junit>
   </target>
</project>