HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2011-04-27 282ec01995837238e3a9356642c79123db6042d1
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" />
@@ -67,11 +69,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-8.2.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-8.2.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-8.2.jar"
         driver="org.postgresql.Driver"
         url="jdbc:postgresql://localhost:5432/${database.name}"
         userid="${database.user}" password="${database.password}"
         src="database/dropschema.sql" />
   </target>
</project>