HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2014-10-14 9c7c85b8bf1c650d97638df4463d56a4a860f985
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
56
57
58
59
60
<?xml version="1.0" encoding="UTF-8"?>
<project name="hsarweb" default="jar">
 
    <property name="build.home" value="${basedir}/build" />
    <property name="lib.home" value="/usr/share/java" />
    <property name="conf.home" value="${basedir}/conf" />
    <property name="src.home" value="${basedir}/src" />
    <property name="resource.home" value="${basedir}/resource" />
    <property name="test.home" value="${basedir}/test" />
    <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" />
    <property name="compile.optimize" value="true" />
 
    <path id="cp">
        <fileset dir="${lib.home}">
            <include name="jline.jar"/>
            <include name="ws-commons-util.jar"/>
            <include name="xmlrpc-client.jar"/>
               <include name="xmlrpc-common.jar"/>
               <include name="commons-cli.jar"/>
        </fileset>
    </path>
 
    <target name="clean" description="aufräumen">
        <delete dir="${build.home}" />
        <delete dir="${dist.home}" />
    </target>
 
    <target name="jar" depends="compile">
        <copy todir="${build.home}/cls">
            <fileset dir="${resource.home}" />
        </copy>
        <jar destfile="build/hsscript.jar" basedir="build/cls">
            <manifest>
                <attribute name="Main-Class" value="de.hsadmin.jscli.Main"/>
                <attribute name="Class-Path" value="/usr/share/java/commons-cli.jar /usr/share/java/jline.jar /usr/share/java/ws-commons-util.jar /usr/share/java/xmlrpc-client.jar /usr/share/java/xmlrpc-common.jar"/>
            </manifest>
        </jar>
    </target>
 
    <target name="compile" description="compilieren">
        <mkdir dir="${build.home}" />
        <mkdir dir="${build.home}/cls" />
        <javac 
            srcdir="${src.home}" 
            destdir="${build.home}/cls"
            classpathref="cp"
            debug="${compile.debug}" 
            deprecation="${compile.deprecation}" 
            optimize="${compile.optimize}" 
            encoding="UTF8" 
            includeantruntime="false" />
    </target>
 
</project>