HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2019-10-04 8ecd2381a05beccb4389d2fa03502b3fd420b33d
commit | author | age
64cb9b 1 <?xml version="1.0" encoding="UTF-8"?>
PH 2 <project name="hsarweb" default="war">
3
ff5521 4     <property file="${user.home}/.hsar.ant.properties" />
PH 5
64cb9b 6     <path id="cp">
e780b1 7         <fileset dir="WebContent/WEB-INF/lib">
64cb9b 8             <include name="**/*.jar"/>
e780b1 9         </fileset>
d3c625 10         <fileset dir="../hsarback/lib">
e780b1 11             <include name="servlet-api-2.4.jar"/>
64cb9b 12         </fileset>
PH 13     </path>
14     
15     <target name="war" depends="compile">
ff5521 16         <copy file="conf/WEB-INF/web.xml" todir="WebContent/WEB-INF/">
PH 17             <filterset>
18                 <filter token="LOGIN_HOST" value="${cas.domain.name}"/>
19                 <filter token="LOGIN_PORT" value="${cas.https.port}"/>
20                 <filter token="CONFIG_HOST" value="${hsar.domain.name}"/>
21                 <filter token="CONFIG_PORT" value="${hsar.https.port}"/>
22                 <filter token="ADMIN_HOST" value="${hsarweb.domain.name}"/>
23                 <filter token="ADMIN_PORT" value="${hsarweb.https.port}"/>
925d9d 24                 <filter token="HTTPS" value="${hsar.https}"/>
ff5521 25             </filterset>
PH 26         </copy>
e780b1 27         <war destfile="build/hsarweb.war" basedir="WebContent">
64cb9b 28             <classes dir="build/cls" />
PH 29             <classes dir="src">
30                 <include name="**/*.properties"/>
31             </classes>
32         </war>
33     </target>
34
35     <target name="compile">
36         <mkdir dir="build/cls"/>
37         <javac srcdir="src" destdir="build/cls"
38              classpathref="cp" debug="on"
39         />    
40     </target>
41
925d9d 42     <target name="clean">
PH 43         <delete dir="build"/>
44         <delete file="WebContent/WEB-INF/web.xml"/>
45     </target>
46
53702b 47
P 48     <target name="deploy" depends="war">
49         <delete dir="${hsar.deploy.dir}/hsarweb" />
50         <copy file="build/hsarweb.war" todir="${hsar.deploy.dir}" />
51         <!-- <sleep minutes="2"/> -->
52     </target>
53
54
64cb9b 55 </project>