OSDN Git Service

added a primitive value binding test
[xerial/xerial-core.git] / build.xml
1 <?xml version="1.0"?>
2 <!-- ====================================================================== 
3      2005/01/12 18:37:46                                                        
4
5      XerialJ    
6      build file
7                    
8      leo                                                                
9      ====================================================================== -->
10 <project name="XerialJ" default="default">
11     <description>
12             build file
13     </description>
14
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}" />
20
21         <!-- set classpath -->
22         <path id="project.classpath">
23                 <pathelement path="${java.classpath}/" />
24                 <fileset dir="${lib}">
25                   <include name="**/*.jar"/>
26                 </fileset>
27                 <pathelement path="${src}"/>
28                 <pathelement path="${test}"/>
29                 <pathelement path="${build}"/>
30         </path>
31
32     <!-- ================================= 
33           target: default              
34          ================================= -->
35     <target name="default" depends="depends" description="--> build file">
36     </target>
37
38     <!-- - - - - - - - - - - - - - - - - - 
39           target: depends                      
40          - - - - - - - - - - - - - - - - - -->
41     <target name="depends">
42     </target>
43
44         <target name="javadoc" description="create javadoc into ./javadoc">
45                 <ant antfile="javadoc.xml" target="javadoc"/>
46         </target>
47         
48         <target name="compile" description="">
49                 <mkdir dir="bin"/>
50                 <javac srcdir="${src}:${test}" destdir="bin" encoding="SJIS"/>
51         </target>
52         
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"/>
56         </target>
57         
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"/>
62                         <arg value="antlr"/>
63                         <arg value="AmoebaQuery.g"/>
64                         <arg value="AmoebaQueryTreeParser.g"/>
65                 </java>
66         </target>
67
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"/>
72                         <arg value="antlr"/>
73                         <arg value="JSON.g"/>
74                         <arg value="JSONWalker.g"/>
75                 </java>
76         </target>
77 \r
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
84                 </java>\r
85         </target>\r
86
87 </project>
88