2 <!-- ======================================================================
9 ====================================================================== -->
10 <project name="XerialJ" default="default">
15 <property name="conf" value="build.properties" />
16 <property name="conf.static" value="build.internal.properties" />
17 <!-- load user defined properties -->
18 <property file="${conf}" />
19 <property file="${conf.static}" />
21 <!-- set classpath -->
22 <path id="project.classpath">
23 <pathelement path="${java.classpath}/" />
24 <fileset dir="${lib}">
25 <include name="**/*.jar"/>
27 <pathelement path="${src}"/>
28 <pathelement path="${test}"/>
29 <pathelement path="${build}"/>
32 <!-- =================================
34 ================================= -->
35 <target name="default" depends="depends" description="--> build file">
38 <!-- - - - - - - - - - - - - - - - - -
40 - - - - - - - - - - - - - - - - - -->
41 <target name="depends">
44 <target name="javadoc" description="create javadoc into ./javadoc">
45 <ant antfile="javadoc.xml" target="javadoc"/>
48 <target name="compile" description="">
50 <javac srcdir="${src}:${test}" destdir="bin" encoding="SJIS"/>
53 <target name="jar" depends="compile" description="create the jar file">
54 <mkdir dir="${build}"/>
55 <jar basedir="${build}" jarfile="${project.name}.jar" index="true"/>
58 <target name="build-query-grammar" description="Geneartes AmeobaQuery Parser with ANTLR" >
59 <java classpathref="project.classpath" classname="org.antlr.Tool" fork="true" dir="${src}/org/xerial/amoeba/query">
60 <jvmarg value="-Xmx300M"/>
61 <arg value="-message-format"/>
63 <arg value="AmoebaQuery.g"/>
64 <arg value="AmoebaQueryTreeParser.g"/>
68 <target name="build-json-grammar" description="Generates JSON Parser with ANTLR" >
69 <java classpathref="project.classpath" classname="org.antlr.Tool" fork="true" dir="${src}/org/xerial/json">
70 <jvmarg value="-Xmx300M"/>
71 <arg value="-message-format"/>
74 <arg value="JSONWalker.g"/>
78 <target name="build-dtd-grammar" description="Generates DTD Parser with ANTLR" >
\r
79 <java classpathref="project.classpath" classname="org.antlr.Tool" fork="true" dir="${src}/org/xerial/util/xml/dtd">
\r
80 <jvmarg value="-Xmx300M"/>
\r
81 <arg value="-message-format"/>
\r
82 <arg value="antlr"/>
\r
83 <arg value="DTD.g"/>
\r