Mercurial > hg > cc > cirrus_home
changeset 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 | 1845222b3d73 |
children | |
files | src/nutch-cc/build.xml |
diffstat | 1 files changed, 18 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/nutch-cc/build.xml Wed Sep 25 17:45:52 2024 +0100 +++ b/src/nutch-cc/build.xml Thu Sep 26 17:55:56 2024 +0100 @@ -387,6 +387,22 @@ </jar> </target> + <target name="job-core" depends="compile-core" description="--> make +nutch.job jar assuming plugins are OK"> + <jar jarfile="${build.dir}/${final.name}.job"> + <!-- If the build.classes has the nutch config files because the jar + command command has run, exclude them. The conf directory has + them. + --> + <zipfileset dir="${build.classes}" + excludes="nutch-default.xml,nutch-site.xml"/> + <zipfileset dir="${conf.dir}" excludes="*.template,hadoop*.*"/> + <zipfileset dir="${build.lib.dir}" prefix="lib" + includes="**/*.jar" excludes="hadoop-*.jar,slf4j*.jar,log4j*.jar"/> + <zipfileset dir="${build.plugins}" prefix="classes/plugins"/> + </jar> + </target> + <target name="runtime" depends="jar, job" description="--> default target for running Nutch"> <mkdir dir="${runtime.dir}"/> <mkdir dir="${runtime.local}"/> @@ -483,9 +499,9 @@ <!-- ================================================================== --> <property name="debugTest" value="false"/> - <target name="test" depends="test-core, test-plugins" description="--> run JUnit tests"/> + <target name="test" depends="test-core, test-plugins, job" description="--> run JUnit tests"/> - <target name="test-core" depends="compile-core-test, job" description="--> run core JUnit tests only"> + <target name="test-core" depends="compile-core-test, job-core" description="--> run core JUnit tests only"> <delete dir="${test.build.data}"/> <mkdir dir="${test.build.data}"/>