Reformatting Article class code.
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"/>
36 <!-- the main target, called in recursive builds -->
37 <target name="main" depends="prepare,compile,jar"/>
39 <!-- prepare output directories - -->
40 <target name="prepare">
41 <mkdir dir="${build.dir}"/>
42 <mkdir dir="${build.class}"/>
46 <target name="compile" depends="prepare">
47 <javac destdir="${build.class}"
49 deprecation="${deprecation}"
50 optimize="${optimize}"
51 classpathref="classpath">
53 <include name="org/sonews/**/*.java"/>
55 <javac destdir="${build.class}"
57 deprecation="${deprecation}"
58 optimize="${optimize}"
59 classpathref="classpath">
61 <include name="test/**/*java"/>
65 <!-- create jar file -->
66 <target name="jar" depends="prepare,compile">
67 <jar jarfile="${build.dir}/sonews.jar"
68 basedir="${build.class}">
69 <include name="org/sonews/**/*.class"/>
71 <jar jarfile="${build.dir}/test.jar"
72 basedir="${build.class}">
73 <include name="test/**/*.class"/>
75 <jar jarfile="${build.dir}/sonews-helpers.jar"
77 <include name="helpers/**/*"/>
81 <target name="install" depends="jar">
82 <mkdir dir="${inst.dir}/lib"/>
83 <mkdir dir="${inst.dir}/bin"/>
84 <mkdir dir="${inst.dir}/helpers"/>
85 <copy todir="${inst.dir}/lib">
87 <include name="*.jar"/>
89 <fileset dir="${build.dir}">
90 <include name="*.jar"/>
93 <copy todir="${inst.dir}/bin">
95 <include name="*.sh"/>
99 <fileset dir="${inst.dir}/bin">
100 <include name="*.sh"/>
103 <copy todir="${inst.dir}/helpers">
104 <fileset dir="helpers">
111 <target name="clean" depends="prepare">
112 <delete includeEmptyDirs="true">
113 <fileset dir="${build.class}">
115 <include name="**/*.class"/>
116 <include name="**/*.properties"/>
119 <fileset dir="${build.dir}">
121 <include name="**/*.jar"/>