3881 |
27 Apr 16 |
nicklas |
1 |
<?xml version="1.0" encoding="UTF-8"?> |
3881 |
27 Apr 16 |
nicklas |
2 |
<project |
3881 |
27 Apr 16 |
nicklas |
3 |
name="IncaXml2Csv" |
3881 |
27 Apr 16 |
nicklas |
4 |
default="build" |
3881 |
27 Apr 16 |
nicklas |
5 |
basedir="."> |
3881 |
27 Apr 16 |
nicklas |
6 |
|
3881 |
27 Apr 16 |
nicklas |
<!--create this file if you need to override values from properties below --> |
3881 |
27 Apr 16 |
nicklas |
8 |
<property file="build.properties" /> |
3881 |
27 Apr 16 |
nicklas |
9 |
|
3881 |
27 Apr 16 |
nicklas |
<!-- variables used --> |
3892 |
28 Apr 16 |
nicklas |
11 |
<property name="name" value="IncaXml2Csv" /> |
7377 |
09 Oct 23 |
nicklas |
12 |
<property name="version" value="1.5-dev" /> |
3881 |
27 Apr 16 |
nicklas |
13 |
<property name="src" location="src" description="Location of source files" /> |
3881 |
27 Apr 16 |
nicklas |
14 |
<property name="build" location="build" description="Location of compiled files" /> |
3881 |
27 Apr 16 |
nicklas |
15 |
<property name="dist" location="dist" description="Directory where distribution should be created" /> |
3896 |
28 Apr 16 |
nicklas |
16 |
<property name="jar.name" value="${name}.jar" description="Name of JAR file with the extensions." /> |
3881 |
27 Apr 16 |
nicklas |
17 |
<property name="tar.prefix" value="${name}-${version}" description="Prefix of .tar.gz file for download." /> |
3881 |
27 Apr 16 |
nicklas |
18 |
<property name="tar.name" value="${tar.prefix}.tar.gz" description="Full name of .tar.gz file for download." /> |
7356 |
18 Sep 23 |
nicklas |
19 |
<property name="zip.name" value="${tar.prefix}.zip" description="Full name of .zip file for download." /> |
3881 |
27 Apr 16 |
nicklas |
20 |
<property name="javac.arg" value="-Xlint:unchecked" /> |
3881 |
27 Apr 16 |
nicklas |
21 |
<property name="javac.source" value="1.8" /> |
3881 |
27 Apr 16 |
nicklas |
22 |
<property name="javac.target" value="1.8" /> |
3881 |
27 Apr 16 |
nicklas |
23 |
<property name="javac.encoding" value="UTF-8" /> |
3881 |
27 Apr 16 |
nicklas |
24 |
|
3881 |
27 Apr 16 |
nicklas |
<!-- set up classpath for compiling --> |
3881 |
27 Apr 16 |
nicklas |
26 |
<path id="classpath"> |
3881 |
27 Apr 16 |
nicklas |
27 |
<fileset dir="lib"> |
3881 |
27 Apr 16 |
nicklas |
28 |
<include name="**/*.jar" /> |
3881 |
27 Apr 16 |
nicklas |
29 |
</fileset> |
3881 |
27 Apr 16 |
nicklas |
30 |
</path> |
3881 |
27 Apr 16 |
nicklas |
31 |
|
3881 |
27 Apr 16 |
nicklas |
32 |
<target name="init"> |
3881 |
27 Apr 16 |
nicklas |
33 |
<mkdir dir="${build}" /> |
3881 |
27 Apr 16 |
nicklas |
34 |
<mkdir dir="${dist}" /> |
3881 |
27 Apr 16 |
nicklas |
35 |
</target> |
3881 |
27 Apr 16 |
nicklas |
36 |
|
3881 |
27 Apr 16 |
nicklas |
37 |
<target name="clean"> |
3881 |
27 Apr 16 |
nicklas |
38 |
<delete failonerror="false" includeemptydirs="true"> |
3881 |
27 Apr 16 |
nicklas |
39 |
<fileset dir="${build}" defaultexcludes="no" /> |
3881 |
27 Apr 16 |
nicklas |
40 |
<fileset dir="${dist}" defaultexcludes="no" /> |
3881 |
27 Apr 16 |
nicklas |
41 |
<fileset file="${jar.name}" /> |
3881 |
27 Apr 16 |
nicklas |
42 |
<fileset file="${tar.name}" /> |
3881 |
27 Apr 16 |
nicklas |
43 |
</delete> |
3881 |
27 Apr 16 |
nicklas |
44 |
</target> |
3881 |
27 Apr 16 |
nicklas |
45 |
|
3881 |
27 Apr 16 |
nicklas |
46 |
<target |
3881 |
27 Apr 16 |
nicklas |
47 |
name="dist" |
3881 |
27 Apr 16 |
nicklas |
48 |
depends="clean,build" |
3881 |
27 Apr 16 |
nicklas |
49 |
> |
3881 |
27 Apr 16 |
nicklas |
50 |
<copy todir="${dist}"> |
3881 |
27 Apr 16 |
nicklas |
51 |
<fileset dir="." includes="README,LICENSE" /> |
3881 |
27 Apr 16 |
nicklas |
52 |
<fileset file="${jar.name}" /> |
3881 |
27 Apr 16 |
nicklas |
53 |
</copy> |
3881 |
27 Apr 16 |
nicklas |
54 |
</target> |
3881 |
27 Apr 16 |
nicklas |
55 |
|
3881 |
27 Apr 16 |
nicklas |
56 |
<target |
3881 |
27 Apr 16 |
nicklas |
57 |
name="package" |
3881 |
27 Apr 16 |
nicklas |
58 |
depends="dist" |
3881 |
27 Apr 16 |
nicklas |
59 |
description="Create binary distribution package" |
3881 |
27 Apr 16 |
nicklas |
60 |
> |
3881 |
27 Apr 16 |
nicklas |
61 |
<tar |
3881 |
27 Apr 16 |
nicklas |
62 |
destfile="${tar.name}" |
3881 |
27 Apr 16 |
nicklas |
63 |
longfile="gnu" |
3881 |
27 Apr 16 |
nicklas |
64 |
compression="gzip" |
3881 |
27 Apr 16 |
nicklas |
65 |
> |
3881 |
27 Apr 16 |
nicklas |
66 |
<tarfileset |
3881 |
27 Apr 16 |
nicklas |
67 |
dir="${dist}" |
3881 |
27 Apr 16 |
nicklas |
68 |
mode="755" |
3881 |
27 Apr 16 |
nicklas |
69 |
prefix="${tar.prefix}" |
3881 |
27 Apr 16 |
nicklas |
70 |
preserveLeadingSlashes="true" |
3881 |
27 Apr 16 |
nicklas |
71 |
> |
3881 |
27 Apr 16 |
nicklas |
72 |
<include name="**/*.sh" /> |
3881 |
27 Apr 16 |
nicklas |
73 |
</tarfileset> |
3881 |
27 Apr 16 |
nicklas |
74 |
<tarfileset |
3881 |
27 Apr 16 |
nicklas |
75 |
dir="${dist}" |
3881 |
27 Apr 16 |
nicklas |
76 |
prefix="${tar.prefix}" |
3881 |
27 Apr 16 |
nicklas |
77 |
preserveLeadingSlashes="true" |
3881 |
27 Apr 16 |
nicklas |
78 |
> |
3881 |
27 Apr 16 |
nicklas |
79 |
<exclude name="**/*.sh" /> |
3881 |
27 Apr 16 |
nicklas |
80 |
</tarfileset> |
3881 |
27 Apr 16 |
nicklas |
81 |
</tar> |
7356 |
18 Sep 23 |
nicklas |
82 |
<zip |
7356 |
18 Sep 23 |
nicklas |
83 |
destfile="${zip.name}" |
7356 |
18 Sep 23 |
nicklas |
84 |
basedir="${dist}" |
7356 |
18 Sep 23 |
nicklas |
85 |
> |
7356 |
18 Sep 23 |
nicklas |
86 |
</zip> |
3881 |
27 Apr 16 |
nicklas |
87 |
</target> |
3881 |
27 Apr 16 |
nicklas |
88 |
|
3881 |
27 Apr 16 |
nicklas |
89 |
<target |
3881 |
27 Apr 16 |
nicklas |
90 |
name="build" |
3881 |
27 Apr 16 |
nicklas |
91 |
depends="init" |
3881 |
27 Apr 16 |
nicklas |
92 |
description="Compiles the program and put in jar" |
3881 |
27 Apr 16 |
nicklas |
93 |
> |
3881 |
27 Apr 16 |
nicklas |
94 |
<mkdir dir="${build}" /> |
3881 |
27 Apr 16 |
nicklas |
95 |
<javac |
3881 |
27 Apr 16 |
nicklas |
96 |
encoding="${javac.encoding}" |
3881 |
27 Apr 16 |
nicklas |
97 |
srcdir="${src}" |
3881 |
27 Apr 16 |
nicklas |
98 |
destdir="${build}" |
3881 |
27 Apr 16 |
nicklas |
99 |
debug="true" |
3881 |
27 Apr 16 |
nicklas |
100 |
includeantruntime="false" |
3881 |
27 Apr 16 |
nicklas |
101 |
classpathref="classpath" |
3881 |
27 Apr 16 |
nicklas |
102 |
source="${javac.source}" |
3881 |
27 Apr 16 |
nicklas |
103 |
target="${javac.target}" |
3881 |
27 Apr 16 |
nicklas |
104 |
> |
3881 |
27 Apr 16 |
nicklas |
105 |
<compilerarg value="${javac.arg}" /> |
3881 |
27 Apr 16 |
nicklas |
106 |
</javac> |
3881 |
27 Apr 16 |
nicklas |
107 |
<jar |
3881 |
27 Apr 16 |
nicklas |
108 |
jarfile="${jar.name}" |
3881 |
27 Apr 16 |
nicklas |
109 |
manifest="META-INF/MANIFEST.MF" |
3881 |
27 Apr 16 |
nicklas |
110 |
> |
3881 |
27 Apr 16 |
nicklas |
111 |
<fileset dir="${build}" /> |
3881 |
27 Apr 16 |
nicklas |
112 |
<fileset dir="." includes="META-INF/**" /> |
3896 |
28 Apr 16 |
nicklas |
113 |
<fileset dir="." includes="README,LICENSE" /> |
3881 |
27 Apr 16 |
nicklas |
114 |
</jar> |
3881 |
27 Apr 16 |
nicklas |
115 |
</target> |
3881 |
27 Apr 16 |
nicklas |
116 |
|
3881 |
27 Apr 16 |
nicklas |
117 |
<target name="update-version"> |
3881 |
27 Apr 16 |
nicklas |
118 |
<echo>Setting version to: ${version}</echo> |
3881 |
27 Apr 16 |
nicklas |
119 |
|
3881 |
27 Apr 16 |
nicklas |
120 |
<echo>IncaXml2Csv.java</echo> |
3881 |
27 Apr 16 |
nicklas |
121 |
<replaceregexp |
3881 |
27 Apr 16 |
nicklas |
122 |
file="${src}/net/sf/basedb/inca/IncaXml2Csv.java" |
3881 |
27 Apr 16 |
nicklas |
123 |
match="public static final String VERSION = ".*";" |
3881 |
27 Apr 16 |
nicklas |
124 |
replace="public static final String VERSION = "${version}";" |
3881 |
27 Apr 16 |
nicklas |
125 |
encoding="UTF-8" |
3881 |
27 Apr 16 |
nicklas |
126 |
/> |
3881 |
27 Apr 16 |
nicklas |
127 |
|
3881 |
27 Apr 16 |
nicklas |
128 |
<echo>Don't forget to commit the changes to the subversion repository!</echo> |
3881 |
27 Apr 16 |
nicklas |
129 |
</target> |
3881 |
27 Apr 16 |
nicklas |
130 |
|
3881 |
27 Apr 16 |
nicklas |
131 |
</project> |