Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 549 lines (462 sloc) 19.575 kB
f0e7eec @sgroschupf BIXO-3,adding MIT license headers and checkstyle to verify java file …
sgroschupf authored
1 <!--
27c722b Switch to "doc" from "docs".
Ken Krugler authored
2 Copyright (c) 2009-2010 Bixo Labs.
f0e7eec @sgroschupf BIXO-3,adding MIT license headers and checkstyle to verify java file …
sgroschupf authored
3
4 Permission is hereby granted, free of charge, to any person obtaining a copy
5 of this software and associated documentation files (the "Software"), to deal
6 in the Software without restriction, including without limitation the rights
7 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 copies of the Software, and to permit persons to whom the Software is
9 furnished to do so, subject to the following conditions:
10
11 The above copyright notice and this permission notice shall be included in
12 all copies or substantial portions of the Software.
13
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20 SOFTWARE.
21 -->
d5b5323 Make compile the default target, vs. test, so getting started is
Ken Krugler authored
22 <project name="bixo-core" default="compile">
0d2da4b @sgroschupf BIXO-1, ivy based build and simple project skeleton.
sgroschupf authored
23
24 <property name="root.dir" value="${basedir}" />
f705a58 Fixed problem w/"fresh" builds:
Ken Krugler authored
25 <property file="${root.dir}/src/build/ant/build.properties" />
0d2da4b @sgroschupf BIXO-1, ivy based build and simple project skeleton.
sgroschupf authored
26
8fa64fd @sgroschupf adding target to build hadoop job jar
sgroschupf authored
27
7c3277f Merged common-build into build.xml
Ken Krugler authored
28 <!-- ================================================================== -->
29 <!-- General cleaning sources -->
30 <!-- ================================================================== -->
31
32 <target name="clean" description="--> clean the project">
33 <echo>cleaning ${ant.project.name}</echo>
34 <delete includeemptydirs="true" failonerror="false">
35 <fileset dir="${build.dir}" excludes="classes-*-eclipse/" />
36 </delete>
37 </target>
38
f1d346b BIXO-10 : Added new build targets for the contrib 'projects' -- compi…
vivek authored
39 <target name="clean-eclipse-build">
40 <echo>cleaning ${ant.project.name}</echo>
41 <delete includeemptydirs="true" failonerror="false">
42 <fileset dir="${build.dir}" includes="classes-*-eclipse/" />
43 </delete>
44 </target>
45
7c3277f Merged common-build into build.xml
Ken Krugler authored
46
47 <!-- ================================================================== -->
48 <!-- Maven -->
49 <!-- ================================================================== -->
50
6858703 Complete the switch to using Maven for jar dependencies.
Ken Krugler authored
51 <target name="mvn-init" unless="compile.classpath" xmlns:artifact="urn:maven-artifact-ant">
52 <path id="maven.ant.tasks.classpath" path="${lib.dir}/maven-ant-tasks-2.0.10.jar" />
53 <typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="urn:maven-artifact-ant"
54 classpathref="maven.ant.tasks.classpath"/>
7c3277f Merged common-build into build.xml
Ken Krugler authored
55
6858703 Complete the switch to using Maven for jar dependencies.
Ken Krugler authored
56 <condition property="maven.repo.local" value="${maven.repo.local}" else="${user.home}/.m2/repository">
57 <isset property="maven.repo.local"/>
58 </condition>
59
60 <echo>maven.repo.local=${maven.repo.local}</echo>
61 <artifact:localRepository id="local.repository" path="${maven.repo.local}"/>
62 <artifact:pom file="pom.xml" id="maven.project"/>
63
64 <artifact:dependencies pathId="compile.classpath" filesetId="compile.fileset" useScope="compile">
65 <pom refid="maven.project"/>
66 <localRepository refid="local.repository"/>
67 </artifact:dependencies>
7c3277f Merged common-build into build.xml
Ken Krugler authored
68
6858703 Complete the switch to using Maven for jar dependencies.
Ken Krugler authored
69 <artifact:dependencies pathId="test.classpath" filesetId="test.fileset" useScope="test">
70 <pom refid="maven.project"/>
71 <localRepository refid="local.repository"/>
72 </artifact:dependencies>
73
74 <artifact:dependencies pathId="runtime.classpath" filesetId="runtime.fileset" useScope="runtime">
75 <pom refid="maven.project"/>
76 <localRepository refid="local.repository"/>
77 </artifact:dependencies>
78 </target>
7c3277f Merged common-build into build.xml
Ken Krugler authored
79
896c4a4 Add support for "install" ant target that installs resulting jar
Ken Krugler authored
80 <target name="mvn-install" xmlns:artifact="urn:maven-artifact-ant" depends="mvn-init">
81 <artifact:install file="${build.dir}/${jar.name}">
82 <pom refid="maven.project"/>
83 </artifact:install>
84 </target>
85
6858703 Complete the switch to using Maven for jar dependencies.
Ken Krugler authored
86 <target name="mvn-deploy" xmlns:artifact="urn:maven-artifact-ant" depends="mvn-init">
87 <fail unless="repoUrl">
88 You must specify the repoUrl (-DrepoUrl=xxx) when deploying!
89 </fail>
90
91 <artifact:deploy file="${build.dir}/${jar.name}">
92 <remoteRepository url="${repoUrl}"/>
93 <pom refid="maven.project"/>
94 </artifact:deploy>
95 </target>
96
7c3277f Merged common-build into build.xml
Ken Krugler authored
97 <!-- ================================================================== -->
98 <!-- Build sources -->
99 <!-- ================================================================== -->
100
101 <target name="compile"
102 depends="mvn-init"
103 description="--> compile main classes">
104 <mkdir dir="${build.dir.main-classes}" />
105 <javac encoding="${build.encoding}"
106 srcdir="${main.src.dir}"
107 includes="**/*.java"
108 destdir="${build.dir.main-classes}"
109 debug="${javac.debug}"
110 optimize="${javac.optimize}"
111 target="${javac.version}"
112 source="${javac.version}"
113 deprecation="${javac.deprecation}">
114 <compilerarg line="${javac.args} ${javac.args.warnings}" />
115 <classpath refid="compile.classpath" />
116 </javac>
117 </target>
118
119 <!-- ================================================================== -->
120 <!-- Unit Tests -->
121 <!-- ================================================================== -->
122
123 <target name="compile-test" depends="compile">
124 <echo>*** Building Unit Tests Sources ***</echo>
125 <mkdir dir="${build.dir.test-classes}" />
126 <path id="test.path">
127 <pathelement location="${build.dir.main-classes}" />
128 </path>
129
130 <javac encoding="${build.encoding}"
131 srcdir="${test.src.dir}"
132 includes="**/*.java"
133 destdir="${build.dir.test-classes}"
134 debug="${javac.debug}"
135 optimize="${javac.optimize}"
136 target="${javac.version}"
137 source="${javac.version}"
138 deprecation="${javac.deprecation}">
139 <compilerarg line="${javac.args} ${javac.args.warnings}" />
140 <classpath refid="test.classpath" />
141 <classpath refid="test.path" />
142 </javac>
143 </target>
144
145 <target name="test"
146 depends="compile-test"
147 description="--> run unit tests">
148 <delete dir="${build.dir.test-reports}" />
149 <mkdir dir="${build.dir.test-reports}" />
150
151 <junit showoutput="false"
152 printsummary="yes"
153 haltonfailure="no"
154 fork="yes"
155 maxmemory="256m"
156 dir="${basedir}"
157 errorProperty="tests.failed"
158 failureProperty="tests.failed">
159 <sysproperty key="net.sourceforge.cobertura.datafile"
160 file="${reports.dir}/bixo_coverage.ser" />
161 <classpath>
162 <pathelement location="${instrumented.dir}" />
163 <pathelement location="${build.dir.main-classes}" />
164 <pathelement location="${build.dir.test-classes}" />
165 <pathelement location="${test.res.dir}" />
166 <path refid="test.classpath" />
167 </classpath>
168 <formatter type="plain" />
169 <batchtest fork="yes"
170 todir="${build.dir.test-reports}"
8b288cf Cleaned up vestigial use of "testcase".
Ken Krugler authored
171 unless="longrunning">
7c3277f Merged common-build into build.xml
Ken Krugler authored
172 <fileset dir="${test.src.dir}">
8b288cf Cleaned up vestigial use of "testcase".
Ken Krugler authored
173 <include name="**/*Test.java" />
174 <exclude name="**/Abstract*.java" />
175 <exclude name="**/*LRTest.java" />
7c3277f Merged common-build into build.xml
Ken Krugler authored
176 </fileset>
177 </batchtest>
178 <batchtest fork="yes"
179 todir="${build.dir.test-reports}"
8b288cf Cleaned up vestigial use of "testcase".
Ken Krugler authored
180 if="longrunning">
181 <fileset dir="${test.src.dir}">
182 <include name="**/*LRTest.java" />
183 <exclude name="**/Abstract*.java" />
184 </fileset>
7c3277f Merged common-build into build.xml
Ken Krugler authored
185 </batchtest>
186 </junit>
187 <fail if="tests.failed">Tests failed!</fail>
188 </target>
189
8b288cf Cleaned up vestigial use of "testcase".
Ken Krugler authored
190 <target name="test-lr"
191 description="--> run unit tests that take a long time">
192 <antcall target="test">
193 <param name="longrunning" value="true" />
194 </antcall>
195 </target>
0d2da4b @sgroschupf BIXO-1, ivy based build and simple project skeleton.
sgroschupf authored
196
197 <!-- ================================================================== -->
198 <!-- Integration Tests -->
199 <!-- ================================================================== -->
200
7bd3133 Moved test data from src/test-data to src/test/resources.
Ken Krugler authored
201 <target name="compile-integration-test" depends="compile">
0d2da4b @sgroschupf BIXO-1, ivy based build and simple project skeleton.
sgroschupf authored
202 <echo>*** Building Integration Tests Sources ***</echo>
203 <mkdir dir="${build.dir.it-classes}" />
204 <path id="test.path">
205 <pathelement location="${build.dir.main-classes}" />
55655d0 The integration test build & execution classpath needs the
Ken Krugler authored
206 <pathelement location="${build.dir.test-classes}" />
7bd3133 Moved test data from src/test-data to src/test/resources.
Ken Krugler authored
207 <pathelement location="${build.dir.it-classes}" />
0d2da4b @sgroschupf BIXO-1, ivy based build and simple project skeleton.
sgroschupf authored
208 </path>
209
8fa64fd @sgroschupf adding target to build hadoop job jar
sgroschupf authored
210 <javac encoding="${build.encoding}"
211 srcdir="${it.src.dir}"
212 includes="**/*.java"
213 destdir="${build.dir.it-classes}"
214 debug="${javac.debug}"
215 optimize="${javac.optimize}"
216 target="${javac.version}"
217 source="${javac.version}"
218 deprecation="${javac.deprecation}">
0d2da4b @sgroschupf BIXO-1, ivy based build and simple project skeleton.
sgroschupf authored
219 <compilerarg line="${javac.args} ${javac.args.warnings}" />
7c3277f Merged common-build into build.xml
Ken Krugler authored
220 <classpath refid="test.classpath" />
0d2da4b @sgroschupf BIXO-1, ivy based build and simple project skeleton.
sgroschupf authored
221 <classpath refid="test.path" />
222 </javac>
223 </target>
224
7bd3133 Moved test data from src/test-data to src/test/resources.
Ken Krugler authored
225 <target name="test-it"
4a6d4cd Added HtmlUtils.hasOnlyNonEnglishMetaTags
Chris Schneider authored
226 unless="skip.it"
8fa64fd @sgroschupf adding target to build hadoop job jar
sgroschupf authored
227 depends="jar, compile-integration-test"
228 description="--> run integration tests">
0d2da4b @sgroschupf BIXO-1, ivy based build and simple project skeleton.
sgroschupf authored
229 <delete dir="${build.dir.it-reports}" />
230 <mkdir dir="${build.dir.it-reports}" />
231
8fa64fd @sgroschupf adding target to build hadoop job jar
sgroschupf authored
232 <junit showoutput="no"
233 printsummary="yes"
234 haltonfailure="no"
235 fork="yes"
236 maxmemory="256m"
237 dir="${basedir}"
238 errorProperty="tests.failed"
239 failureProperty="tests.failed">
0d2da4b @sgroschupf BIXO-1, ivy based build and simple project skeleton.
sgroschupf authored
240 <classpath>
241 <pathelement location="${build.dir.main-classes}" />
55655d0 The integration test build & execution classpath needs the
Ken Krugler authored
242 <pathelement location="${build.dir.test-classes}" />
0d2da4b @sgroschupf BIXO-1, ivy based build and simple project skeleton.
sgroschupf authored
243 <pathelement location="${build.dir.it-classes}" />
7bd3133 Moved test data from src/test-data to src/test/resources.
Ken Krugler authored
244 <pathelement location="${main.res.dir}" />
245 <pathelement location="${it.res.dir}" />
7c3277f Merged common-build into build.xml
Ken Krugler authored
246 <path refid="test.classpath" />
0d2da4b @sgroschupf BIXO-1, ivy based build and simple project skeleton.
sgroschupf authored
247 <fileset file="${build.dir}/${ant.project.name}.jar" />
248 </classpath>
249 <formatter type="plain" />
250
251 <batchtest fork="yes" todir="${build.dir.it-reports}">
252 <fileset dir="${it.src.dir}">
253 <include name="**/*Test*.java" unless="testcase" />
254 </fileset>
255 </batchtest>
256 </junit>
257 <fail if="tests.failed">Tests failed!</fail>
258 </target>
259
7c3277f Merged common-build into build.xml
Ken Krugler authored
260
0d2da4b @sgroschupf BIXO-1, ivy based build and simple project skeleton.
sgroschupf authored
261 <!-- ================================================================== -->
4fc92db Build jar with all dependent libraries.
Ken Krugler authored
262 <!-- Build jar with all dependent libraries -->
8fa64fd @sgroschupf adding target to build hadoop job jar
sgroschupf authored
263 <!-- ================================================================== -->
264
7c3277f Merged common-build into build.xml
Ken Krugler authored
265 <target name="jar" depends="compile">
8fa64fd @sgroschupf adding target to build hadoop job jar
sgroschupf authored
266
7c3277f Merged common-build into build.xml
Ken Krugler authored
267 <tstamp>
268 <format property="timestamp" pattern="MMM dd yyyy, HH:mm:ss" />
269 </tstamp>
270
4fc92db Build jar with all dependent libraries.
Ken Krugler authored
271 <!-- copy any 3rd party libs -->
272 <delete dir="${build.dir}/lib" />
273 <copy todir="${build.dir}/lib" flatten="true">
274 <path refId="compile.classpath" />
275 <path refId="runtime.classpath" />
276 </copy>
277
7c3277f Merged common-build into build.xml
Ken Krugler authored
278 <jar jarfile="${build.dir}/${jar.name}"
279 basedir="${build.dir.main-classes}">
4fc92db Build jar with all dependent libraries.
Ken Krugler authored
280
281 <fileset dir="${build.dir}" includes="lib/" />
282
7c3277f Merged common-build into build.xml
Ken Krugler authored
283 <manifest>
284 <section name="bixo">
285 <attribute name="Implementation-Vendor"
4fc92db Build jar with all dependent libraries.
Ken Krugler authored
286 value="openbixo.org" />
7c3277f Merged common-build into build.xml
Ken Krugler authored
287 <attribute name="Implementation-Title"
288 value="${ant.project.name}" />
289 <attribute name="Implementation-Version"
290 value="${version}" />
291 <attribute name="Compile-Time" value="${timestamp}" />
292 <attribute name="Compiled-By" value="${user.name}" />
293 <!-- TODO as soon we can extract the version from git we need to add this
294 -->
295 </section>
296 </manifest>
297 </jar>
4fc92db Build jar with all dependent libraries.
Ken Krugler authored
298
299
7c3277f Merged common-build into build.xml
Ken Krugler authored
300 </target>
301
302
303 <!-- ================================================================== -->
304 <!-- Java Doc -->
305 <!-- ================================================================== -->
306
307 <target name="doc" depends="compile" description="--> create javadoc">
308 <mkdir dir="${build.javadoc}" />
309 <javadoc packagenames="${javadoc.package}"
310 destdir="${build.javadoc}"
311 author="true"
312 version="true"
313 use="true"
314 windowtitle="${name} ${version} API"
315 doctitle="${name} ${version} API"
316 bottom="Copyright &amp;copy; ${javadoc.year} 101tec Inc.">
317 <packageset dir="${main.src.dir}" />
318 <link href="${javadoc.link.java}" />
319 <classpath>
320 <path refid="compile.classpath" />
321 </classpath>
322 <group title="${javadoc.title}" packages="${javadoc.package}*" />
323 </javadoc>
324 </target>
325
326
327 <!-- ================================================================== -->
328 <!-- Hadoop job jar -->
329 <!-- ================================================================== -->
8fa64fd @sgroschupf adding target to build hadoop job jar
sgroschupf authored
330
331 <target name="job"
332 depends="compile"
7c3277f Merged common-build into build.xml
Ken Krugler authored
333 description="--> create a Hadoop ready jar with all dependencies">
8fa64fd @sgroschupf adding target to build hadoop job jar
sgroschupf authored
334
4fc92db Build jar with all dependent libraries.
Ken Krugler authored
335 <!-- Always clear out lib, since we have a different set of libraries for the job jar -->
336 <delete dir="${build.dir}/lib" />
0a61ce1 Fix job jar task to use lib/ as directory name for dependent
Ken Krugler authored
337 <copy todir="${build.dir}/lib" flatten="true">
7c3277f Merged common-build into build.xml
Ken Krugler authored
338 <path refid="runtime.classpath" />
8fa64fd @sgroschupf adding target to build hadoop job jar
sgroschupf authored
339 </copy>
340
7c3277f Merged common-build into build.xml
Ken Krugler authored
341 <jar destfile="${build.dir}/${job.name}" compress="true">
8fa64fd @sgroschupf adding target to build hadoop job jar
sgroschupf authored
342 <fileset dir="${build.dir.main-classes}" />
0a61ce1 Fix job jar task to use lib/ as directory name for dependent
Ken Krugler authored
343 <fileset dir="${build.dir}" includes="lib/" />
8fa64fd @sgroschupf adding target to build hadoop job jar
sgroschupf authored
344
345 <manifest>
7c3277f Merged common-build into build.xml
Ken Krugler authored
346 <attribute name="Main-Class" value="${job.main.class}" />
8fa64fd @sgroschupf adding target to build hadoop job jar
sgroschupf authored
347 </manifest>
348 </jar>
349 </target>
350
351
352 <!-- ================================================================== -->
6858703 Complete the switch to using Maven for jar dependencies.
Ken Krugler authored
353 <!-- Deploy to Maven repo -->
354 <!-- ================================================================== -->
355
356 <target name="deploy"
c1d6275 make sure all tests get run before we deploy.
Ken Krugler authored
357 depends="test-all, mvn-deploy"
6858703 Complete the switch to using Maven for jar dependencies.
Ken Krugler authored
358 description="--> deploy SNAPSHOT jar to 101tec Nexus repository">
359 </target>
360
361 <!-- ================================================================== -->
896c4a4 Add support for "install" ant target that installs resulting jar
Ken Krugler authored
362 <!-- Install in local Maven repository -->
363 <!-- ================================================================== -->
364
365 <target name="install"
366 depends="test-all, mvn-install"
367 description="--> install SNAPSHOT jar to local repository">
368 </target>
369
370 <!-- ================================================================== -->
0d2da4b @sgroschupf BIXO-1, ivy based build and simple project skeleton.
sgroschupf authored
371 <!-- Generate a distribution -->
372 <!-- ================================================================== -->
373
8fa64fd @sgroschupf adding target to build hadoop job jar
sgroschupf authored
374 <target name="dist"
6858703 Complete the switch to using Maven for jar dependencies.
Ken Krugler authored
375 depends="test-all, jar, doc"
7c3277f Merged common-build into build.xml
Ken Krugler authored
376 description="--> create a tarball distribution">
0d2da4b @sgroschupf BIXO-1, ivy based build and simple project skeleton.
sgroschupf authored
377
378 <delete dir="${build.dir.dist}" />
379
380 <!-- create target directory -->
381 <mkdir dir="${build.dir.dist}" />
382 <mkdir dir="${build.dir.dist}/bin" />
27c722b Switch to "doc" from "docs".
Ken Krugler authored
383 <mkdir dir="${build.dir.dist}/doc" />
384 <mkdir dir="${build.dir.dist}/doc/licenses" />
385 <mkdir dir="${build.dir.dist}/doc/javadoc" />
386 <mkdir dir="${build.dir.dist}/doc/reports" />
0d2da4b @sgroschupf BIXO-1, ivy based build and simple project skeleton.
sgroschupf authored
387 <mkdir dir="${build.dir.dist}/lib" />
388 <mkdir dir="${build.dir.dist}/src" />
389
390 <!-- copy launch script to target -->
391 <copy todir="${build.dir.dist}/bin">
392 <fileset dir="${basedir}/bin" />
393 </copy>
7c3277f Merged common-build into build.xml
Ken Krugler authored
394
0d2da4b @sgroschupf BIXO-1, ivy based build and simple project skeleton.
sgroschupf authored
395 <!-- copy javadoc to target dir -->
27c722b Switch to "doc" from "docs".
Ken Krugler authored
396 <copy todir="${build.dir.dist}/doc/javadoc">
0d2da4b @sgroschupf BIXO-1, ivy based build and simple project skeleton.
sgroschupf authored
397 <fileset dir="${build.javadoc}" />
398 </copy>
7c3277f Merged common-build into build.xml
Ken Krugler authored
399
4fc92db Build jar with all dependent libraries.
Ken Krugler authored
400 <!-- copy libs -->
0d2da4b @sgroschupf BIXO-1, ivy based build and simple project skeleton.
sgroschupf authored
401 <copy todir="${build.dir.dist}/lib" flatten="true">
7c3277f Merged common-build into build.xml
Ken Krugler authored
402 <fileset dir="${lib.dir}" />
4fc92db Build jar with all dependent libraries.
Ken Krugler authored
403 <fileset dir="${build.dir}/lib" />
0d2da4b @sgroschupf BIXO-1, ivy based build and simple project skeleton.
sgroschupf authored
404 </copy>
7c3277f Merged common-build into build.xml
Ken Krugler authored
405
0d2da4b @sgroschupf BIXO-1, ivy based build and simple project skeleton.
sgroschupf authored
406 <!-- copy src -->
407 <copy todir="${build.dir.dist}/src">
408 <fileset dir="${basedir}/src" />
409 </copy>
7c3277f Merged common-build into build.xml
Ken Krugler authored
410
0d2da4b @sgroschupf BIXO-1, ivy based build and simple project skeleton.
sgroschupf authored
411 <!-- copy project jar to dist dir -->
412 <copy todir="${build.dir.dist}">
413 <fileset file="${build.dir}/${jar.name}" />
414 </copy>
415
7c3277f Merged common-build into build.xml
Ken Krugler authored
416 <!-- copy documents -->
0d2da4b @sgroschupf BIXO-1, ivy based build and simple project skeleton.
sgroschupf authored
417 <copy todir="${build.dir.dist}">
7c3277f Merged common-build into build.xml
Ken Krugler authored
418 <fileset file="${basedir}/README" />
419 </copy>
27c722b Switch to "doc" from "docs".
Ken Krugler authored
420 <copy todir="${build.dir.dist}/doc">
b18d24d Rolled in Vivek's patch to fix long-standing issue with "ant eclipse"
Ken Krugler authored
421 <fileset file="${basedir}/doc/eclipse-formatter.properties" />
7c3277f Merged common-build into build.xml
Ken Krugler authored
422 </copy>
27c722b Switch to "doc" from "docs".
Ken Krugler authored
423 <copy todir="${build.dir.dist}/doc/licenses">
7c3277f Merged common-build into build.xml
Ken Krugler authored
424 <fileset dir="${basedir}/doc/licenses" />
0d2da4b @sgroschupf BIXO-1, ivy based build and simple project skeleton.
sgroschupf authored
425 </copy>
426
427 <tar longfile="gnu" compression="gzip" destfile="${build.release.file}">
428 <tarfileset dir="${build.dir.dist}" />
429 </tar>
430 </target>
431
7c3277f Merged common-build into build.xml
Ken Krugler authored
432
0d2da4b @sgroschupf BIXO-1, ivy based build and simple project skeleton.
sgroschupf authored
433 <!-- ================================================================== -->
434 <!-- Generating eclipse file -->
435 <!-- ================================================================== -->
436
9169136 Fixed missing description that Vivek noticed, for Eclipse target.
Ken Krugler authored
437 <target name="eclipse"
7c3277f Merged common-build into build.xml
Ken Krugler authored
438 depends="mvn-init, clean-eclipse"
439 description="--> create the Eclipse project files">
0d2da4b @sgroschupf BIXO-1, ivy based build and simple project skeleton.
sgroschupf authored
440
8fa64fd @sgroschupf adding target to build hadoop job jar
sgroschupf authored
441 <taskdef name="eclipse"
442 classname="prantl.ant.eclipse.EclipseTask"
7c3277f Merged common-build into build.xml
Ken Krugler authored
443 classpathref="compile.classpath" />
79e6e66 @sgroschupf give eclipse its own build class folders, so it does not conflict wit…
sgroschupf authored
444 <mkdir dir="${build.dir.main-classes-eclipse}" />
445 <mkdir dir="${build.dir.test-classes-eclipse}" />
7bd3133 Moved test data from src/test-data to src/test/resources.
Ken Krugler authored
446 <mkdir dir="${build.dir.it-classes-eclipse}" />
0d2da4b @sgroschupf BIXO-1, ivy based build and simple project skeleton.
sgroschupf authored
447 <eclipse>
448 <settings>
449 <jdtcore compilercompliance="6.0" />
450 <resources encoding="UTF-8" />
451 </settings>
452 <project name="${ant.project.name}" />
453 <classpath>
454 <container path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6" />
455
8fa64fd @sgroschupf adding target to build hadoop job jar
sgroschupf authored
456 <source path="${basedir}/src/main/java"
457 output="${build.dir.main-classes-eclipse}" />
7bd3133 Moved test data from src/test-data to src/test/resources.
Ken Krugler authored
458 <source path="${basedir}/src/main/resources"
459 output="${build.dir.main-classes-eclipse}" />
8fa64fd @sgroschupf adding target to build hadoop job jar
sgroschupf authored
460 <source path="${basedir}/src/test/java"
461 output="${build.dir.test-classes-eclipse}" />
462 <source path="${basedir}/src/test/resources"
463 output="${build.dir.test-classes-eclipse}" />
7bd3133 Moved test data from src/test-data to src/test/resources.
Ken Krugler authored
464 <source path="${basedir}/src/it/java"
465 output="${build.dir.it-classes-eclipse}" />
466 <source path="${basedir}/src/it/resources"
467 output="${build.dir.it-classes-eclipse}" />
0d2da4b @sgroschupf BIXO-1, ivy based build and simple project skeleton.
sgroschupf authored
468
469 <!-- extras -->
470 <!-- we do not yet have extra modules, but it is just a question of time :) -->
8fa64fd @sgroschupf adding target to build hadoop job jar
sgroschupf authored
471
79e6e66 @sgroschupf give eclipse its own build class folders, so it does not conflict wit…
sgroschupf authored
472 <output path="${build.dir.main-classes-eclipse}" />
7c3277f Merged common-build into build.xml
Ken Krugler authored
473 <library pathref="test.classpath" exported="false" />
0d2da4b @sgroschupf BIXO-1, ivy based build and simple project skeleton.
sgroschupf authored
474 </classpath>
475 </eclipse>
7c3277f Merged common-build into build.xml
Ken Krugler authored
476 <concat destfile="${root.dir}/.settings/org.eclipse.jdt.core.prefs"
8fa64fd @sgroschupf adding target to build hadoop job jar
sgroschupf authored
477 append="true">
b18d24d Rolled in Vivek's patch to fix long-standing issue with "ant eclipse"
Ken Krugler authored
478 <filelist dir="${root.dir}/doc/" files="eclipse-formatter.properties" />
0d2da4b @sgroschupf BIXO-1, ivy based build and simple project skeleton.
sgroschupf authored
479 </concat>
480 </target>
481
8fa64fd @sgroschupf adding target to build hadoop job jar
sgroschupf authored
482 <target name="clean-eclipse"
7c3277f Merged common-build into build.xml
Ken Krugler authored
483 description="--> clean the Eclipse project files">
0d2da4b @sgroschupf BIXO-1, ivy based build and simple project skeleton.
sgroschupf authored
484 <delete file=".classpath" />
485 <delete file=".eclipse" />
486 <delete file=".project" />
487 <delete dir=".settings" />
488 </target>
489
490
491 <!-- ================================================================== -->
492 <!-- Multi project build -->
493 <!-- ================================================================== -->
494
495 <macrodef name="iterate">
496 <attribute name="target" />
497 <sequential>
498 <subant target="@{target}">
499 <property name="root.dir" value="${basedir}" />
500 <!-- extras should go into a sub folder extras
501 <fileset dir="extras" includes="*/build.xml" />
502 -->
503 </subant>
504 </sequential>
505 </macrodef>
506
f1d346b BIXO-10 : Added new build targets for the contrib 'projects' -- compi…
vivek authored
507 <target name="clean-all" description="--> clean all files">
0d2da4b @sgroschupf BIXO-1, ivy based build and simple project skeleton.
sgroschupf authored
508 <antcall target="clean" />
f1d346b BIXO-10 : Added new build targets for the contrib 'projects' -- compi…
vivek authored
509 <!-- <antcall target="clean-eclipse" /> -->
510 <antcall target="clean-eclipse-build"/>
511 <antcall target="clean-contrib" />
0d2da4b @sgroschupf BIXO-1, ivy based build and simple project skeleton.
sgroschupf authored
512 </target>
513
7c3277f Merged common-build into build.xml
Ken Krugler authored
514 <target name="test-all"
f1d346b BIXO-10 : Added new build targets for the contrib 'projects' -- compi…
vivek authored
515 depends="test, test-lr, test-it, test-contrib"
7c3277f Merged common-build into build.xml
Ken Krugler authored
516 description="--> run all tests">
0d2da4b @sgroschupf BIXO-1, ivy based build and simple project skeleton.
sgroschupf authored
517 </target>
5744d35 Cloned default Cascading-based build (really)
Ken Krugler authored
518
f1d346b BIXO-10 : Added new build targets for the contrib 'projects' -- compi…
vivek authored
519 <target name="compile-all"
520 depends="compile, compile-test, compile-integration-test, compile-contrib"
521 description="--> compile all files including tests and contrib">
522 </target>
523
524 <!-- ================================================================== -->
525 <!-- Contrib targets -->
526 <!-- ================================================================== -->
527 <target name="compile-contrib"
528 description="--> compile contrib examples">
529 <subant target="compile">
530 <fileset dir="./contrib" includes="*/build.xml"/>
531 </subant>
532 </target>
533
534 <target name="test-contrib"
535 description="--> run tests on contrib examples">
536 <subant target="test">
537 <fileset dir="./contrib" includes="*/build.xml"/>
538 </subant>
539 </target>
540
541 <target name="clean-contrib"
542 description="--> clean all contrib examples">
543 <subant target="clean">
544 <fileset dir="./contrib" includes="*/build.xml"/>
545 </subant>
546 </target>
547
5744d35 Cloned default Cascading-based build (really)
Ken Krugler authored
548 </project>
Something went wrong with that request. Please try again.