-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.xml
78 lines (65 loc) · 3.02 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
<project name="jsqlparser" default="main" basedir=".">
<property environment="env"/>
<property file="src/net/sf/jsqlparser/version.properties" />
<property name="javacchome" value="lib/" />
<property name="build.compiler" value="modern"/>
<property name="build.dir" value="./classes" />
<property name="src.dir" value="./src"/>
<property name="junit.jar" value="./lib/junit.jar"/>
<property name="parser.dir" value="${src.dir}/net/sf/jsqlparser/parser"/>
<property name="jar.file" value="jsqlparser"/>
<property name="binjar.file.name" value="${jar.file}.jar"/>
<path id="project.class.path">
<pathelement path="${build.dir}"/>
</path>
<target name="clean">
<delete dir="${build.dir}" includeEmptyDirs="true" />
</target>
<target name="prep">
<mkdir dir="${build.dir}"/>
</target>
<target name="javacc">
<delete file="${parser.dir}/TokenMgrError.java" />
<delete file="${parser.dir}/ParseException.java" />
<delete file="${parser.dir}/Token.java" />
<delete file="${parser.dir}/ASCII_CharStream.java" />
<delete file="${parser.dir}/CCJSqlParser.java" />
<delete file="${parser.dir}/CCJSqlParserConstants.java" />
<delete file="${parser.dir}/CCJSqlParserTokenManager.java" />
<delete file="${parser.dir}/ParseException.java" />
<delete file="${parser.dir}/SimpleCharStream.java" />
<delete file="${parser.dir}/TokenMgrError.java" />
<javacc target="${parser.dir}/JSqlParserCC.jj"
outputdirectory="${src.dir}/net/sf/jsqlparser/parser"
javacchome="${javacchome}" />
</target>
<target name="compile" depends="javacc">
<javac srcdir="${src.dir}" destdir="${build.dir}" debug="true"
debuglevel="lines,vars,source"
includeantruntime="false">
<classpath refid="project.class.path" />
</javac>
</target>
<target name="jar" depends="compile">
<delete file="${binjar.file.name}" />
<jar destfile="${binjar.file.name}" >
<fileset dir="./classes"/>
</jar>
</target>
<target name="javadoc">
<javadoc destdir="docs" access="private" use="true" source="1.5"
notree="false" nonavbar="false" noindex="false"
splitindex="true" author="true" version="true"
nodeprecatedlist="false" nodeprecated="false"
packagenames="net.sf.jsqlparser.*"
classpath="classes"
verbose="No"
additionalparam="-tag to.do:a:"To Do:"">
<fileset dir="src">
<include name="**/*.java" />
<exclude name="**/parser/*.java" />
</fileset>
</javadoc>
</target>
<target name="main" depends="clean,prep,javacc,compile,javadoc,jar"/>
</project>