2010-09-21 20:14:58 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<project name="hsarweb" default="war">
|
|
|
|
|
2011-05-16 13:54:15 +02:00
|
|
|
<property file="${user.home}/.hsar.ant.properties" />
|
|
|
|
|
2010-09-21 20:14:58 +02:00
|
|
|
<path id="cp">
|
2010-12-15 14:15:52 +01:00
|
|
|
<fileset dir="WebContent/WEB-INF/lib">
|
2010-09-21 20:14:58 +02:00
|
|
|
<include name="**/*.jar"/>
|
|
|
|
</fileset>
|
2012-09-21 19:35:01 +02:00
|
|
|
<fileset dir="../hsarback/lib">
|
2010-12-15 14:15:52 +01:00
|
|
|
<include name="servlet-api-2.4.jar"/>
|
|
|
|
</fileset>
|
2010-09-21 20:14:58 +02:00
|
|
|
</path>
|
|
|
|
|
|
|
|
<target name="war" depends="compile">
|
2011-05-16 13:54:15 +02:00
|
|
|
<copy file="conf/WEB-INF/web.xml" todir="WebContent/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}"/>
|
|
|
|
<filter token="ADMIN_HOST" value="${hsarweb.domain.name}"/>
|
|
|
|
<filter token="ADMIN_PORT" value="${hsarweb.https.port}"/>
|
2012-10-18 14:02:04 +02:00
|
|
|
<filter token="HTTPS" value="${hsar.https}"/>
|
2011-05-16 13:54:15 +02:00
|
|
|
</filterset>
|
|
|
|
</copy>
|
2010-12-15 14:15:52 +01:00
|
|
|
<war destfile="build/hsarweb.war" basedir="WebContent">
|
2010-09-21 20:14:58 +02:00
|
|
|
<classes dir="build/cls" />
|
|
|
|
<classes dir="src">
|
|
|
|
<include name="**/*.properties"/>
|
|
|
|
</classes>
|
|
|
|
</war>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="compile">
|
|
|
|
<mkdir dir="build/cls"/>
|
|
|
|
<javac srcdir="src" destdir="build/cls"
|
|
|
|
classpathref="cp" debug="on"
|
|
|
|
/>
|
|
|
|
</target>
|
|
|
|
|
2012-10-18 14:02:04 +02:00
|
|
|
<target name="clean">
|
|
|
|
<delete dir="build"/>
|
|
|
|
<delete file="WebContent/WEB-INF/web.xml"/>
|
|
|
|
</target>
|
|
|
|
|
2010-09-21 20:14:58 +02:00
|
|
|
</project>
|