Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 157 lines (130 sloc) 6.137 kb
528b8b1 Add geosearch multidimensional range query enhancement to bobo-contrib g...
McCracken Kenneth authored
1 <?xml version="1.0"?>
2 <project name="bobo-contrib" basedir="." default="dist">
3
4 <property name="src.dir" value="src" />
5 <property name="lucene-patch.src.dir" value="lucene-patch" />
6 <property name="target.dir" value="target" />
075a621 gcooney bobo-contrib: bumped revision number
gcooney authored
7 <property name="revision" value="0.3" />
528b8b1 Add geosearch multidimensional range query enhancement to bobo-contrib g...
McCracken Kenneth authored
8 <property name="git.revision" value="123" />
9 <property name="jar.name" value="bobo-contrib" />
419d68a package the lucene patch into a JAR file with 1 public class,
McCracken Kenneth authored
10 <property name="lucene-patch.jar.name" value="lucene-patch" />
528b8b1 Add geosearch multidimensional range query enhancement to bobo-contrib g...
McCracken Kenneth authored
11 <property name="jar.name.append" value="-${revision}" />
12
13 <property name="test.dir" value="test" />
45f833a bobo-contrib: add ant test target
McCracken Kenneth authored
14 <property name="test.src.dir" value="test" />
528b8b1 Add geosearch multidimensional range query enhancement to bobo-contrib g...
McCracken Kenneth authored
15 <property name="test.report.dir" value="${target.dir}/${test.dir}/report" />
16 <property name="test.html.dir" value="${target.dir}/${test.dir}/html" />
17 <property name="logs" value="logs" />
18
45f833a bobo-contrib: add ant test target
McCracken Kenneth authored
19 <property name="default-test-suite" value="unit" />
20 <property name="test.max.memory" value="150m" />
21 <property name="test.forkmode" value="once" />
22 <property name="test.resources.dir" value="test-resources" />
23 <property name="default.encoding" value="UTF-8" />
24 <property name="target.test.classes" value="${target.dir}/${test.dir}/classes" />
25
528b8b1 Add geosearch multidimensional range query enhancement to bobo-contrib g...
McCracken Kenneth authored
26 <path id="bobo-contrib-classpath">
419d68a package the lucene patch into a JAR file with 1 public class,
McCracken Kenneth authored
27 <!--
528b8b1 Add geosearch multidimensional range query enhancement to bobo-contrib g...
McCracken Kenneth authored
28 <dirset dir="${target.dir}">
29 <include name="lucene-patch-classes"/>
30 </dirset>
419d68a package the lucene patch into a JAR file with 1 public class,
McCracken Kenneth authored
31 -->
32 <fileset dir="${target.dir}">
33 <include name="${lucene-patch.jar.name}${jar.name.append}.jar" />
34 </fileset>
528b8b1 Add geosearch multidimensional range query enhancement to bobo-contrib g...
McCracken Kenneth authored
35 <fileset dir="lib">
36 <include name="*.jar" />
37 </fileset>
38 <fileset dir="../lib/master">
39 <include name="*.jar" />
40 </fileset>
41 </path>
45f833a bobo-contrib: add ant test target
McCracken Kenneth authored
42
43 <path id="test.classpath">
44 <path refid="bobo-contrib-classpath"/>
45 <fileset dir="../lib/test">
46 <include name="*.jar" />
47 </fileset>
48 <fileset dir="${target.dir}">
49 <include name="${jar.name}${jar.name.append}.jar"/>
50 </fileset>
51 <!-- ${target.dir}/${test.dir}/${test.dir}-${jar.name}.jar -->
52 <fileset dir="${target.dir}/${test.dir}">
53 <include name="${test.dir}-${jar.name}.jar" />
54 </fileset>
55 </path>
528b8b1 Add geosearch multidimensional range query enhancement to bobo-contrib g...
McCracken Kenneth authored
56
57 <target name="clean">
58 <delete dir="${target.dir}" />
59 </target>
60
61 <target name="init" description="sets up the build">
62 <mkdir dir="${target.dir}" />
63 <mkdir dir="${target.dir}/classes" />
64 <mkdir dir="${target.dir}/lucene-patch-classes" />
65 <mkdir dir="${target.dir}/${test.dir}" />
66 </target>
67
68 <target name="lucene-patch-build" depends="init" description="builds the lucene indexing patch">
69 <javac destdir="${target.dir}/lucene-patch-classes" source="1.6" debug="true" deprecation="false" optimize="false" failonerror="true" debuglevel="lines,vars,source" excludes="${build.e
70 xcludes}">
71 <src path="${lucene-patch.src.dir}" />
72 <classpath refid="bobo-contrib-classpath" />
73 </javac>
74
75 </target>
76
419d68a package the lucene patch into a JAR file with 1 public class,
McCracken Kenneth authored
77 <target name="lucene-patch-dist" depends="lucene-patch-build" description="jars the lucene indexing patch">
78 <manifest file="MANIFEST.MF">
79 <attribute name="Revision" value="${revision}"/>
80 <attribute name="Implementation-Version" value="${git.revision}"/>
81 </manifest>
82 <jar destfile="${target.dir}/${lucene-patch.jar.name}${jar.name.append}.jar" basedir="${target.dir}/lucene-patch-classes" manifest="MANIFEST.MF"/>
83
84 </target>
85
86 <target name="build" depends="lucene-patch-dist" description="builds the class files for bobo-contrib">
528b8b1 Add geosearch multidimensional range query enhancement to bobo-contrib g...
McCracken Kenneth authored
87 <javac destdir="${target.dir}/classes" source="1.6" target="1.6" debug="true" deprecation="false" optimize="false" failonerror="true" debuglevel="lines,vars,source" excludes="${build.excludes}">
88 <src path="${src.dir}" />
89 <classpath refid="bobo-contrib-classpath" />
90 </javac>
91 </target>
45f833a bobo-contrib: add ant test target
McCracken Kenneth authored
92
528b8b1 Add geosearch multidimensional range query enhancement to bobo-contrib g...
McCracken Kenneth authored
93 <!-- test target needs some work -->
45f833a bobo-contrib: add ant test target
McCracken Kenneth authored
94 <target name="buildtests" description="Compile test tree java files">
95 <mkdir dir="${target.test.classes}" />
96 <javac srcdir="${test.src.dir}" destdir="${target.test.classes}" source="1.6" target="1.6" debug="true" deprecation="false" optimize="false" failonerror="true" encoding="${default.encoding}">
97 <classpath refid="test.classpath" />
98 </javac>
99 <echo message="test.resources.dir = ${test.resources.dir}"/>
100 <copy todir="${target.test.classes}">
101 <fileset dir="${test.resources.dir}">
102 <include name="*.xml" />
103 <include name="log4j.properties" />
104 </fileset>
105 </copy>
106 </target>
107
108 <target name="disttest" depends="buildtests" description="Generates the test jar file">
109 <jar destfile="${target.dir}/${test.dir}/${test.dir}-${jar.name}.jar" basedir="${target.test.classes}" />
110 </target>
111
112 <target name="test" depends="dist,disttest">
113 <mkdir dir="${target.dir}/${test.dir}/test-report" />
114
115 <property name="test-suite" value="${default-test-suite}" />
116
117 <echo>
118 **** Running test suite: ${test-suite} ****
119 </echo>
120
121 <property name="include.pattern" value="**/*Test.*" />
122
123 <junit printsummary="withOutAndErr" fork="true" forkmode="${test.forkmode}"
124 maxmemory="${test.max.memory}" haltonfailure="false" failureproperty="tests.failed"
125 showoutput="true">
126 <sysproperty key="test-suite" value="${test-suite}" />
127
128 <classpath refid="test.classpath" />
129
130 <formatter type="xml" />
131 <batchtest todir="${target.dir}/${test.dir}/test-report">
132 <fileset dir="${target.test.classes}">
133 <include name="${include.pattern}" />
134 </fileset>
135 </batchtest>
136 </junit>
137
138 <junitreport todir="${target.dir}/${test.dir}/test-report">
139 <fileset dir="${target.dir}/${test.dir}/test-report">
140 <include name="TEST-*.xml" />
141 </fileset>
142 <report format="noframes" todir="${target.dir}/${test.dir}/test-report" />
143 </junitreport>
144
145 </target>
528b8b1 Add geosearch multidimensional range query enhancement to bobo-contrib g...
McCracken Kenneth authored
146
147 <target name="dist" depends="build" description="generates the jar file">
148 <manifest file="MANIFEST.MF">
149 <attribute name="Revision" value="${revision}"/>
150 <attribute name="Implementation-Version" value="${git.revision}"/>
151 </manifest>
152 <jar destfile="${target.dir}/${jar.name}${jar.name.append}.jar" basedir="${target.dir}/classes" manifest="MANIFEST.MF"/>
153 </target>
154
155 </project>
156
Something went wrong with that request. Please try again.