Permalink
Browse files

Remove Ant build artifact which are no longer used.

  • Loading branch information...
1 parent 560cd39 commit f078ee31dbbd263b6492852064cdb18b621cf57a @tomwhite committed Jan 13, 2012
Showing with 0 additions and 275 deletions.
  1. +0 −7 CHANGES
  2. +0 −51 build-examples.xml
  3. +0 −199 build.xml
  4. +0 −9 findbugs-exclude.xml
  5. +0 −9 ivy.xml
View
@@ -1,7 +0,0 @@
-Release 0.1.1
-
-Added source for Last.fm examples in Chapter 14.
-
-Release 0.1.0
-
-First public release
View
@@ -1,51 +0,0 @@
-<?xml version="1.0"?>
-
-<project name="htdg-examples" basedir="." default="examples">
-
- <property name="build.dir" value="build"/>
- <property name="dist.dir" value="${build.dir}/dist"/>
- <property name="src.dir" value="src/main"/>
- <property name="src.test.dir" value="src/test"/>
- <property name="data.dir" value="input"/>
- <property name="dist.name" value="htdg-examples-0.1.1"/>
- <property name="phragmite.pl" value="bin/phragmite_db.pl"/>
-
- <target name="examples" description="Creates an examples distribution to accompany the book.">
- <delete dir="${build.dir}"/>
- <mkdir dir="${build.dir}"/>
- <copy todir="${build.dir}/filteredsrc">
- <fileset dir="${src.dir}"/>
- </copy>
- <replaceregexp flags="gs">
- <regexp pattern="// vv[^\n]+\n"/>
- <substitution expression=""/>
- <fileset dir="${build.dir}/filteredsrc"/>
- </replaceregexp>
- <tar destfile="${build.dir}/${dist.name}.tar.gz" compression="gzip">
- <tarfileset dir="${basedir}" prefix="${dist.name}">
- <include name="build.xml"/>
- <include name="ivy.xml"/>
- <include name="CHANGES"/>
- <include name="README"/>
- </tarfileset>
- <tarfileset dir="${src.dir}" prefix="${dist.name}/${src.dir}">
- <exclude name="**/examples/**"/>
- <exclude name="**/grunt**"/>
- <exclude name="**/sh/**"/>
- <exclude name="**/ch03/resources/**"/>
- <exclude name="**/ch08/r/**"/>
- </tarfileset>
- <tarfileset dir="${src.dir}" prefix="${dist.name}/${src.dir}">
- <include name="**/app3/**"/>
- </tarfileset>
- <tarfileset dir="${src.test.dir}" prefix="${dist.name}/${src.test.dir}">
- <exclude name="book/**"/>
- </tarfileset>
- <tarfileset dir="${data.dir}" prefix="${dist.name}/${data.dir}">
- <include name="metoffice/**"/>
- <include name="ncdc/**"/>
- </tarfileset>
- </tar>
- </target>
-
-</project>
View
199 build.xml
@@ -1,199 +0,0 @@
-<?xml version="1.0"?>
-
-<project name="htdg" basedir="." default="jar" xmlns:ivy="antlib:org.apache.ivy.ant">
-
- <property environment="env"/>
- <property name="build.dir" value="build"/>
- <property name="src.dir" value="src/main"/>
- <property name="src.includes" value="**"/>
- <property name="src.test.dir" value="src/test"/>
- <property name="src.test.includes" value="**"/>
- <property name="classes.dir" value="${build.dir}/classes"/>
- <property name="lib.dir" value="lib"/>
- <property name="test.build.dir" value="${build.dir}/test"/>
- <property name="test.log.dir" value="${test.build.dir}/log"/>
-
- <target name="init">
- <fail message="Please set the environment variable HADOOP_INSTALL.">
- <condition>
- <not>
- <isset property="env.HADOOP_INSTALL"/>
- </not>
- </condition>
- </fail>
- <fail message="Please set the environment variable HBASE_INSTALL.">
- <condition>
- <not>
- <isset property="env.HBASE_INSTALL"/>
- </not>
- </condition>
- </fail>
- <fail message="Please set the environment variable PIG_INSTALL.">
- <condition>
- <not>
- <isset property="env.PIG_INSTALL"/>
- </not>
- </condition>
- </fail>
- <fail message="Please set the environment variable HIVE_INSTALL.">
- <condition>
- <not>
- <isset property="env.HIVE_INSTALL"/>
- </not>
- </condition>
- </fail>
- <fail message="Please set the environment variable ZOOKEEPER_INSTALL.">
- <condition>
- <not>
- <isset property="env.ZOOKEEPER_INSTALL"/>
- </not>
- </condition>
- </fail>
- <path id="classpath">
- <pathelement location="${classes.dir}"/>
- <fileset dir="${lib.dir}">
- <include name="**/*.jar"/>
- </fileset>
- <fileset dir="${env.HADOOP_INSTALL}">
- <include name="*.jar"/>
- <include name="lib/**/*.jar"/>
- </fileset>
- <fileset dir="${env.PIG_INSTALL}">
- <include name="*.jar"/>
- <include name="lib/**/*.jar"/>
- </fileset>
- <fileset dir="${env.HIVE_INSTALL}">
- <include name="*.jar"/>
- <include name="lib/**/*.jar"/>
- </fileset>
- <fileset dir="${env.ZOOKEEPER_INSTALL}">
- <include name="*.jar"/>
- <include name="lib/**/*.jar"/>
- </fileset>
- </path>
- <path id="hbase.classpath">
- <pathelement location="${classes.dir}"/>
- <fileset dir="${env.HBASE_INSTALL}">
- <include name="*.jar"/>
- <include name="lib/**/*.jar"/>
- </fileset>
- </path>
- </target>
-
- <target name="clean" description="Deletes all build artifacts.">
- <delete dir="${build.dir}"/>
- </target>
-
- <target name="retrieve-dependencies" description="Retrieves dependencies (except Hadoop) using Ivy.">
- <ivy:retrieve log="download-only"/>
- </target>
-
- <target name="compile" depends="init,retrieve-dependencies" description="Compile main source tree.">
-
- <mkdir dir="${classes.dir}"/>
-
- <javac destdir="${classes.dir}" debug="true" deprecation="false" optimize="false" failonerror="true" includes="${src.includes}">
- <src path="common/${src.dir}"/>
- <src path="ch02/${src.dir}"/>
- <src path="ch03/${src.dir}"/>
- <src path="ch04/${src.dir}"/>
- <src path="ch05/${src.dir}"/>
- <src path="ch07/${src.dir}"/>
- <src path="ch08/${src.dir}"/>
- <src path="ch11/${src.dir}"/>
- <src path="ch12/${src.dir}"/>
- <src path="ch14/${src.dir}"/>
- <classpath refid="classpath"/>
- </javac>
-
- <javac destdir="${classes.dir}" debug="true" deprecation="false" optimize="false" failonerror="true" includes="${src.test.includes}">
- <src path="common/${src.test.dir}"/>
- <src path="book/${src.test.dir}"/>
- <classpath refid="classpath"/>
- </javac>
-
- <copy todir="${classes.dir}">
- <fileset dir="."/>
- <mapper type="regexp" from=".*?/java/(.*)\.(properties|txt|xml)$$" to="\1.\2"/>
- </copy>
-
- </target>
-
- <target name="hbase.compile" depends="init,retrieve-dependencies" description="Compile HBase source tree.">
-
- <mkdir dir="${classes.dir}"/>
-
- <javac destdir="${classes.dir}" debug="true" deprecation="false" optimize="false" failonerror="true" includes="${src.includes}">
- <src path="ch13/${src.dir}"/>
- <classpath refid="hbase.classpath"/>
- </javac>
-
- </target>
-
- <target name="jar" depends="compile" description="Creates a jar for running MapReduce jobs.">
- <jar destfile="job.jar" basedir="${classes.dir}"/>
- </target>
-
- <target name="hbase" depends="hbase.compile" description="Creates a jar for running HBase examples.">
- <jar destfile="hbase.jar" basedir="${classes.dir}"/>
- </target>
-
- <target name="pig" depends="compile" description="Creates a jar containing Pig UDFs.">
- <jar destfile="pig-examples.jar" basedir="${classes.dir}"/>
- </target>
-
- <target name="hive" depends="compile" description="Creates a jar containing Hive UDFs.">
- <jar destfile="hive-examples.jar" basedir="${classes.dir}"/>
- </target>
-
- <target name="findbugs" depends="jar">
- <taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask"/>
- <property name="findbugs.out.dir" value="${test.build.dir}/findbugs"/>
- <property name="findbugs.report.htmlfile" value="${findbugs.out.dir}/hadoop-findbugs-report.html"/>
- <property name="findbugs.report.xmlfile" value="${findbugs.out.dir}/hadoop-findbugs-report.xml"/>
-
- <mkdir dir="${findbugs.out.dir}"/>
-
- <findbugs home="${findbugs.home}"
- excludeFilter="findbugs-exclude.xml"
- output="xml:withMessages"
- outputFile="${findbugs.report.xmlfile}">
- <auxClasspath refid="classpath"/>
- <sourcePath path="common/${src.dir}/common/java" />
- <sourcePath path="ch02/${src.dir}/java" />
- <sourcePath path="ch03/${src.dir}/java" />
- <sourcePath path="ch04/${src.dir}/java" />
- <sourcePath path="ch05/${src.dir}/java" />
- <sourcePath path="ch07/${src.dir}/java" />
- <sourcePath path="ch09/${src.dir}/java" />
- <class location="${build.dir}/job.jar" />
- </findbugs>
-
- <xslt style="${findbugs.home}/src/xsl/default.xsl"
- in="${findbugs.report.xmlfile}"
- out="${findbugs.report.htmlfile}"/>
- </target>
-
- <target name="test" depends="init,compile" description="Runs unit tests.">
- <mkdir dir="${test.build.dir}"/>
- <mkdir dir="${test.log.dir}"/>
-
- <junit printsummary="yes" haltonfailure="no"
- errorProperty="tests.failed" failureProperty="tests.failed"
- fork="yes" maxmemory="256m">
- <sysproperty key="hadoop.log.dir" value="${test.log.dir}"/>
- <classpath refid="classpath"/>
- <formatter type="plain"/>
- <batchtest todir="${test.build.dir}" unless="testcase">
- <fileset dir="${classes.dir}" includes="**/*Test.class"/>
- </batchtest>
- <batchtest todir="${test.build.dir}" if="testcase">
- <fileset dir="${classes.dir}" includes="**/${testcase}.class"/>
- </batchtest>
- </junit>
- <fail if="tests.failed">Tests failed!</fail>
- </target>
-
- <target name="all" depends="clean,test,jar" description="Runs clean,test,jar"/>
-
-</project>
View
@@ -1,9 +0,0 @@
-<FindBugsFilter>
- <Match classregex="MaxTemperatureUsingSecondarySort.*Comparator">
- <BugCode name="Se" />
- </Match>
-
- <Match class="CoherencyModelTest">
- <BugCode name="OBL" />
- </Match>
-</FindBugsFilter>
View
@@ -1,9 +0,0 @@
-<?xml version="1.0"?>
-<ivy-module version="1.0">
- <info organisation="oreilly" module="htdg" />
- <dependencies>
- <dependency org="org.hamcrest" name="hamcrest-all" rev="1.1" />
- <dependency org="junit" name="junit" rev="4.8.1" />
- <dependency org="org.mockito" name="mockito-all" rev="1.8.5" />
- </dependencies>
-</ivy-module>

0 comments on commit f078ee3

Please sign in to comment.