comparison src/nutch-cc/build.xml @ 195:5f3c36e4fd6d default tip

add target test-core which (dangerously) avoids (we hope pointless) recompilation of all the plugins
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Thu, 26 Sep 2024 17:55:56 +0100
parents 4275eb6484da
children
comparison
equal deleted inserted replaced
194:1845222b3d73 195:5f3c36e4fd6d
385 includes="**/*.jar" excludes="hadoop-*.jar,slf4j*.jar,log4j*.jar"/> 385 includes="**/*.jar" excludes="hadoop-*.jar,slf4j*.jar,log4j*.jar"/>
386 <zipfileset dir="${build.plugins}" prefix="classes/plugins"/> 386 <zipfileset dir="${build.plugins}" prefix="classes/plugins"/>
387 </jar> 387 </jar>
388 </target> 388 </target>
389 389
390 <target name="job-core" depends="compile-core" description="--> make
391 nutch.job jar assuming plugins are OK">
392 <jar jarfile="${build.dir}/${final.name}.job">
393 <!-- If the build.classes has the nutch config files because the jar
394 command command has run, exclude them. The conf directory has
395 them.
396 -->
397 <zipfileset dir="${build.classes}"
398 excludes="nutch-default.xml,nutch-site.xml"/>
399 <zipfileset dir="${conf.dir}" excludes="*.template,hadoop*.*"/>
400 <zipfileset dir="${build.lib.dir}" prefix="lib"
401 includes="**/*.jar" excludes="hadoop-*.jar,slf4j*.jar,log4j*.jar"/>
402 <zipfileset dir="${build.plugins}" prefix="classes/plugins"/>
403 </jar>
404 </target>
405
390 <target name="runtime" depends="jar, job" description="--> default target for running Nutch"> 406 <target name="runtime" depends="jar, job" description="--> default target for running Nutch">
391 <mkdir dir="${runtime.dir}"/> 407 <mkdir dir="${runtime.dir}"/>
392 <mkdir dir="${runtime.local}"/> 408 <mkdir dir="${runtime.local}"/>
393 <mkdir dir="${runtime.deploy}"/> 409 <mkdir dir="${runtime.deploy}"/>
394 <!-- deploy area --> 410 <!-- deploy area -->
481 <!-- ================================================================== --> 497 <!-- ================================================================== -->
482 <!-- Run unit tests --> 498 <!-- Run unit tests -->
483 <!-- ================================================================== --> 499 <!-- ================================================================== -->
484 <property name="debugTest" value="false"/> 500 <property name="debugTest" value="false"/>
485 501
486 <target name="test" depends="test-core, test-plugins" description="--> run JUnit tests"/> 502 <target name="test" depends="test-core, test-plugins, job" description="--> run JUnit tests"/>
487 503
488 <target name="test-core" depends="compile-core-test, job" description="--> run core JUnit tests only"> 504 <target name="test-core" depends="compile-core-test, job-core" description="--> run core JUnit tests only">
489 505
490 <delete dir="${test.build.data}"/> 506 <delete dir="${test.build.data}"/>
491 <mkdir dir="${test.build.data}"/> 507 <mkdir dir="${test.build.data}"/>
492 <!-- 508 <!--
493 copy resources needed in junit tests 509 copy resources needed in junit tests