HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2019-10-04 8ecd2381a05beccb4389d2fa03502b3fd420b33d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?xml version="1.0" encoding="UTF-8"?>
<project name="hsarweb" default="war">
 
    <property file="${user.home}/.hsar.ant.properties" />
 
    <path id="cp">
        <fileset dir="WebContent/WEB-INF/lib">
            <include name="**/*.jar"/>
        </fileset>
        <fileset dir="../hsarback/lib">
            <include name="servlet-api-2.4.jar"/>
        </fileset>
    </path>
    
    <target name="war" depends="compile">
        <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}"/>
                <filter token="HTTPS" value="${hsar.https}"/>
            </filterset>
        </copy>
        <war destfile="build/hsarweb.war" basedir="WebContent">
            <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>
 
    <target name="clean">
        <delete dir="build"/>
        <delete file="WebContent/WEB-INF/web.xml"/>
    </target>
 
 
    <target name="deploy" depends="war">
        <delete dir="${hsar.deploy.dir}/hsarweb" />
        <copy file="build/hsarweb.war" todir="${hsar.deploy.dir}" />
        <!-- <sleep minutes="2"/> -->
    </target>
 
 
</project>