-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.utf2iso.xml
127 lines (108 loc) · 4.52 KB
/
build.utf2iso.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<project name="utf82iso" default="distribute">
<description>
This is the ANT compile script for utf2iso. This script helps you
to compile a distributable version of utf2iso.
Please call one of the following public targets:
- distribute
</description>
<property name="VERSION.MAJOR" value="1" />
<property name="VERSION.MINOR" value="0" />
<property name="VERSION.SUB" value="1" />
<property name="VERSION" value="${VERSION.MAJOR}_${VERSION.MINOR}_${VERSION.SUB}" />
<property name="VERSION.POINTED" value="${VERSION.MAJOR}.${VERSION.MINOR}.${VERSION.SUB}" />
<!-- Some properties -->
<property name="src.ext" location="${basedir}/src" />
<property name="etc.ext" location="${basedir}/etc/utf2iso" />
<property name="classes" location="${basedir}/classes" />
<property name="bin" location="${basedir}/bin" />
<property name="release" location="${basedir}/release" />
<!-- Compile Settings -->
<property name="debug" value="on" />
<property name="optimize" value="off" />
<property name="build.compiler" value="javac1.5" />
<property name="compile.target" value="1.5" />
<property name="compile.encoding" value="ISO-8859-1" />
<path id="magellan.class.path">
<pathelement path="${java.class.path}/" />
</path>
<!-- *************************************************************** -->
<!-- * * -->
<!-- * This target compiles and packs the utf2iso tool. * -->
<!-- * * -->
<!-- *************************************************************** -->
<target name="build">
<echo message="Compiling..." />
<antcall target="clear-classes" />
<mkdir dir="${classes}" />
<javac srcdir="${src.ext}"
destdir="${classes}"
includes="**"
source="${compile.target}"
target="${compile.target}"
encoding="${compile.encoding}"
optimize="${optimize}"
fork="true"
memoryInitialSize="128m"
memoryMaximumSize="256m"
debug="${debug}">
<!--<compilerarg value="-Xlint:unchecked"/>-->
<!--<compilerarg value="-Xlint:deprecation"/>-->
<classpath refid="magellan.class.path" />
</javac>
</target>
<target name="distribute" depends="build">
<echo message="Building Magellan Library JAR file" />
<!-- delete old library -->
<delete file="${release}/utf2iso.jar" failonerror="false" />
<copy file="${etc.ext}/manifest.mf.utf2iso.template" tofile="${etc.ext}/manifest.mf" overwrite="yes">
<filterset>
<filter token="VERSION" value="${VERSION.POINTED}" />
<filter token="BUILD" value="${build.number}" />
<filter token="USER" value="${user.name}" />
</filterset>
</copy>
<!-- JAR File erzeugen -->
<jar jarfile="${release}/utf2iso.jar" basedir="${classes}"
manifest="${etc.ext}/manifest.mf">
<fileset dir="${classes}">
<include name="**/*.class"/>
</fileset>
<fileset dir="${src.ext}">
<include name="**/*.properties"/>
</fileset>
<fileset dir="${basedir}">
<include name = "LICENSE.txt"/>
<include name = "COPYING.txt"/>
</fileset>
<fileset dir="${etc.ext}">
<include name = "CHANGELOG.txt"/>
<include name = "README.txt"/>
</fileset>
</jar>
<delete file="${etc.ext}/manifest.mf" failonerror="false" />
<antcall target="clear-classes" />
</target>
<!-- *************************************************************** -->
<!-- * * -->
<!-- *************************************************************** -->
<target name="clear-classes">
<!-- cleaning classes directory by creating&deleting and creating it -->
<echo message="Cleaning output folder" />
<mkdir dir="${classes}" />
<delete includeEmptyDirs="true" failonerror="false">
<fileset dir="${classes}" includes="**" />
</delete>
</target>
<!-- *************************************************************** -->
<!-- * * -->
<!-- *************************************************************** -->
<target name="clear-release">
<!-- cleaning release directory by creating&deleting and creating it -->
<echo message="Cleaning release folder" />
<mkdir dir="${release}" />
<delete includeEmptyDirs="true" failonerror="false">
<fileset dir="${release}" includes="**" />
</delete>
<mkdir dir="${release}" />
</target>
</project>