HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2011-05-05 66f795f1f31a16eb1861a402a554d457889a5897
hsarback/build.xml
@@ -7,6 +7,8 @@
   <property name="src.home" value="${basedir}/src" />
   <property name="dist.home" value="${basedir}/dist" />
   <property file="${user.home}/.hsar.ant.properties" />
   <!-- Optionen  für Java-Compiler-->
   <property name="compile.debug" value="true" />
   <property name="compile.deprecation" value="true" />
@@ -31,7 +33,20 @@
      <delete dir="${dist.home}" />
   </target>
   <target name="deploy" depends="war">
      <delete dir="${hsar.deploy.dir}/hsar" />
      <copy file="build/hsar.war" todir="${hsar.deploy.dir}" />
   </target>
   <target name="war" depends="enhance">
      <copy file="conf/WEB-INF/web.xml" todir="webapp/WEB-INF/">
         <filterset>
            <filter token="LOGIN_HOST" value="${cas.domain.name}"/>
            <filter token="LOGIN_PORT" value="${cas.https.port}"/>
            <filter token="CONFIG_HOST" value="${hsar.domain.name}"/>
            <filter token="CONFIG_PORT" value="${hsar.https.port}"/>
         </filterset>
      </copy>
        <war destfile="build/hsar.war" basedir="webapp">
           <lib dir="lib">
              <include name="**/*.jar"/>
@@ -52,7 +67,7 @@
   <target name="compile" description="compilieren">
      <mkdir dir="${build.home}" />
      <mkdir dir="${build.home}/cls" />
      <javac srcdir="${src.home}" destdir="${build.home}/cls" debug="${compile.debug}" deprecation="${compile.deprecation}" optimize="${compile.optimize}">
      <javac srcdir="${src.home}" destdir="${build.home}/cls" debug="${compile.debug}" deprecation="${compile.deprecation}" optimize="${compile.optimize}" encoding="UTF8">
         <classpath refid="compile.classpath" />
      </javac>
   </target>
@@ -67,11 +82,31 @@
      <openjpac>
         <classpath refid="enhance.classpath"/>
      </openjpac>
      <!--
      <mappingtool action="buildSchema">
         <classpath refid="enhance.classpath"/>
      </mappingtool>  -->
        <echo message="Enhancing complete."/>
   </target>
   <target name="init-db" description="init empty database">
      <sql
         classpath="/usr/share/java/postgresql-jdbc3.jar"
         driver="org.postgresql.Driver"
         url="jdbc:postgresql://localhost:5432/${database.name}"
         userid="${database.user}" password="${database.password}"
         src="database/schema.sql" />
      <sql
         classpath="/usr/share/java/postgresql-jdbc3.jar"
         driver="org.postgresql.Driver"
         url="jdbc:postgresql://localhost:5432/${database.name}"
         userid="${database.user}" password="${database.password}"
         src="database/data.sql" />
   </target>
   <target name="drop-db" description="make empty database">
      <sql
         classpath="/usr/share/java/postgresql-jdbc3.jar"
         driver="org.postgresql.Driver"
         url="jdbc:postgresql://localhost:5432/${database.name}"
         userid="${database.user}" password="${database.password}"
         src="database/dropschema.sql" />
   </target>
</project>