Drupal: text/plain – h2 bude podtřžené = místo # + podpora značky cite.
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project name="sonews" default="main" basedir=".">
4 <property name="prj" value="."/>
5 <property name="out" value="build"/>
6 <property name="build.dir" value="${out}"/>
7 <property name="inst.dir" value="/opt/sonews/sonews-1.1"/>
8 <property name="build.class" value="${build.dir}/class"/>
10 <!-- define how to handle CLASSPATH environment -->
11 <property name="build.sysclasspath" value="ignore"/>
13 <!-- set "modern" java compiler -->
14 <property name="build.compiler" value="modern"/>
16 <!-- set wether we want to compile with debug information -->
17 <property name="debug" value="on"/>
19 <!-- set wether we want to compile with optimisation -->
20 <property name="optimize" value="off"/>
22 <!-- set wether we want to compile with or without deprecation -->
23 <property name="deprecation" value="on"/>
26 <!-- classpath settings for compile and javadoc tasks -->
28 <pathelement location="${build.class}"/>
29 <pathelement location="lib/glassfish-mail.jar"/>
30 <pathelement location="lib/mysql-connector-java.jar"/>
31 <pathelement location="lib/junit-4.8.2.jar"/>
33 <pathelement location="lib/javax.mail.jar"/>
34 <pathelement location="lib/commons-codec-1.5.jar"/>
40 <!-- the main target, called in recursive builds -->
41 <target name="main" depends="prepare,compile,jar"/>
43 <!-- prepare output directories - -->
44 <target name="prepare">
45 <mkdir dir="${build.dir}"/>
46 <mkdir dir="${build.class}"/>
50 <target name="compile" depends="prepare">
51 <javac destdir="${build.class}"
53 deprecation="${deprecation}"
54 optimize="${optimize}"
55 classpathref="classpath">
57 <include name="org/sonews/**/*.java"/>
59 <javac destdir="${build.class}"
61 deprecation="${deprecation}"
62 optimize="${optimize}"
63 classpathref="classpath">
65 <include name="test/**/*java"/>
69 <!-- create jar file -->
70 <target name="jar" depends="prepare,compile">
71 <jar jarfile="${build.dir}/sonews.jar"
72 basedir="${build.class}">
73 <include name="org/sonews/**/*.class"/>
75 <jar jarfile="${build.dir}/test.jar"
76 basedir="${build.class}">
77 <include name="test/**/*.class"/>
79 <jar jarfile="${build.dir}/sonews-helpers.jar"
81 <include name="helpers/**/*"/>
85 <target name="install" depends="jar">
86 <mkdir dir="${inst.dir}/lib"/>
87 <mkdir dir="${inst.dir}/bin"/>
88 <mkdir dir="${inst.dir}/helpers"/>
89 <copy todir="${inst.dir}/lib">
91 <include name="*.jar"/>
93 <fileset dir="${build.dir}">
94 <include name="*.jar"/>
97 <copy todir="${inst.dir}/bin">
99 <include name="*.sh"/>
103 <fileset dir="${inst.dir}/bin">
104 <include name="*.sh"/>
107 <copy todir="${inst.dir}/helpers">
108 <fileset dir="helpers">
115 <target name="clean" depends="prepare">
116 <delete includeEmptyDirs="true">
117 <fileset dir="${build.class}">
119 <include name="**/*.class"/>
120 <include name="**/*.properties"/>
123 <fileset dir="${build.dir}">
125 <include name="**/*.jar"/>