This repository has been archived by the owner on Oct 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.xml
52 lines (41 loc) · 1.73 KB
/
build.xml
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
<project name="ansiconsolelogger" default="dist" basedir=".">
<description>Ant build file for ANSIConsoleLogger.</description>
<!-- Builds everything from scratch. -->
<target name="all" depends="clean, dist" description="Builds everything from scratch."/>
<!-- Deletes all directories and files created by the build process. -->
<target name="clean" description="Remove all files created by the build process." >
<delete dir="build" />
<delete dir="dist" />
</target>
<!-- Build all Java code. -->
<target name="compile" description="Compile Java sources." >
<mkdir dir="build/classes" />
<javac destdir="build/classes"
classpath="lib/log4j-1.2.13.jar"
debug="on"
deprecation="on"
optimize="on"
source="1.3"
target="1.3"
srcdir="src/java" />
</target>
<!-- Build application JAR files. -->
<target name="jar" depends="compile" description="Create the project JAR file.">
<jar jarfile="build/ansiconsolelogger.jar">
<fileset dir="build/classes" />
<manifest>
<attribute name="Main-Class" value="org.uncommons.ansiconsolelogger.ANSIConsoleLoggerExample"/>
<attribute name="Class-Path" value="log4j-1.2.13.jar"/>
</manifest>
</jar>
</target>
<!-- Copy all necessary files to deployment directory. -->
<target name="dist" depends="jar" description="Generate the deployment tree." >
<mkdir dir="dist" />
<!-- Deploy all application JARs, libraries and config files. -->
<copy todir="dist">
<fileset dir="build" includes="**/*.jar" />
<fileset dir="lib" includes="*.jar" />
</copy>
</target>
</project>