HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2014-10-14 91bafeadabf7604e703cfa9d9fcee4d436583b95
commit | author | age
7f5919 1 <?xml version="1.0" encoding="UTF-8"?>
PH 2 <project name="hsarweb" default="jar">
3
4     <property name="build.home" value="${basedir}/build" />
612a6f 5     <property name="lib.home" value="/usr/share/java" />
7f5919 6     <property name="conf.home" value="${basedir}/conf" />
PH 7     <property name="src.home" value="${basedir}/src" />
04be81 8     <property name="resource.home" value="${basedir}/resource" />
7f5919 9     <property name="test.home" value="${basedir}/test" />
PH 10     <property name="dist.home" value="${basedir}/dist" />
11
12     <property file="${user.home}/.hsar.ant.properties" />
13     
14     <!-- Optionen  für Java-Compiler-->
15     <property name="compile.debug" value="true" />
16     <property name="compile.deprecation" value="true" />
17     <property name="compile.optimize" value="true" />
18
04be81 19     <path id="cp">
PH 20         <fileset dir="${lib.home}">
612a6f 21             <include name="jline.jar"/>
PH 22             <include name="ws-commons-util.jar"/>
23             <include name="xmlrpc-client.jar"/>
24                <include name="xmlrpc-common.jar"/>
25                <include name="commons-cli.jar"/>
04be81 26         </fileset>
PH 27     </path>
28
7f5919 29     <target name="clean" description="aufräumen">
PH 30         <delete dir="${build.home}" />
31         <delete dir="${dist.home}" />
32     </target>
33
34     <target name="jar" depends="compile">
04be81 35         <copy todir="${build.home}/cls">
PH 36             <fileset dir="${resource.home}" />
37         </copy>
22b26c 38         <jar destfile="build/hsscript.jar" basedir="build/cls">
7f5919 39             <manifest>
04be81 40                 <attribute name="Main-Class" value="de.hsadmin.jscli.Main"/>
612a6f 41                 <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"/>
7f5919 42             </manifest>
PH 43         </jar>
44     </target>
45
46     <target name="compile" description="compilieren">
47         <mkdir dir="${build.home}" />
48         <mkdir dir="${build.home}/cls" />
04be81 49         <javac 
PH 50             srcdir="${src.home}" 
51             destdir="${build.home}/cls"
52             classpathref="cp"
53             debug="${compile.debug}" 
54             deprecation="${compile.deprecation}" 
55             optimize="${compile.optimize}" 
56             encoding="UTF8" 
57             includeantruntime="false" />
7f5919 58     </target>
PH 59
60 </project>