-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.xml
85 lines (75 loc) · 2.61 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?xml version="1.0"?>
<!-- basedir = o directorio de raiz do modulo de deployment. -->
<project name="TED" default="build" basedir=".">
<tstamp>
<format property="start.time" pattern="MM/dd/yyyy hh:mm:ss" unit="hour" />
</tstamp>
<property name="project.base.dir" value="${basedir}" />
<property name="ted.src.dir" value="src/main/java/ted" />
<property name="ted.mvnlib.dir" value="target/dependency" />
<property name="ted.lib.dir" value="lib" />
<property name="resources.dir" value="src/main/resources" />
<property name="com.src.dir" value="src/main/java/com" />
<property name="icons.src.dir" value="${resources.dir}/icons" />
<property name="net.src.dir" value="src/main/java/net" />
<property name="build.dir" value="build" />
<property name="jar.dir" value="jar" />
<property name="jar.file" value="${jar.dir}/ted.jar" />
<property name="manifest.file" value="runnable ted/manifest" />
<property name="translations.dir" value="${resources.dir}/ted/translations" />
<target name="prepare">
<mkdir dir="${build.dir}" />
<mkdir dir="${jar.dir}" />
</target>
<target name="clean">
<delete dir="${build.dir}" />
<delete dir="${jar.dir}" />
</target>
<target name="build" depends="prepare">
<javac source="1.5" target="1.5" destdir="${build.dir}">
<src path="${ted.src.dir}" />
<src path="${com.src.dir}" />
<src path="${net.src.dir}" />
<classpath>
<fileset dir="${ted.mvnlib.dir}">
<include name="*.jar" />
</fileset>
<fileset dir="${ted.lib.dir}">
<include name="*.jar" />
</fileset>
</classpath>
</javac>
</target>
<target name="dist" depends="build">
<copy todir="${build.dir}/icons" includeEmptyDirs="true">
<fileset dir="${basedir}/${icons.src.dir}" />
</copy>
<copy todir="${build.dir}/ted/translations" includeEmptyDirs="true">
<fileset dir="${translations.dir}" />
</copy>
<copy todir="${build.dir}/ted/">
<fileset dir="${ted.lib.dir}">
<include name="AppleJavaExtensions.jar" />
</fileset>
</copy>
<jar destfile="${jar.file}" manifest="${manifest.file}">
<fileset dir="${build.dir}">
<include name="**/*" />
</fileset>
</jar>
</target>
<target name="runnable-jar" depends="dist">
<copy todir="${jar.dir}" includeEmptyDirs="true">
<fileset dir="${ted.src.dir}">
<include name="*.jar" />
<exclude name="AppleJavaExtensions.jar" />
</fileset>
<fileset dir="${ted.mvnlib.dir}">
<include name="*.jar" />
</fileset>
<fileset dir="${ted.lib.dir}">
<include name="*.jar" />
</fileset>
</copy>
</target>
</project>