Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
55 lines (45 sloc) 1.86 KB
<?xml version="1.0" encoding="UTF-8"?>
<project name="hadoop-solr" default="compile" basedir=".">
<property name="project" value="hadoop-solr"/>
<property name="dir.root" value="."/>
<property name="dir.src" value="src"/>
<property name="" value="build"/>
<property name="dir.dist" value="dist"/>
hadoop jar hadoop-solr.jar -libjars /opt/apache-solr-3.5.0/dist/apache-solr-solrj-3.5.0.jar shakespeare/comedies shakespeare_output
<!-- Build the project classpath -->
<path id="project.class.path">
<pathelement path="/opt/apache-solr-3.5.0/dist/apache-solr-solrj-3.5.0.jar"/>
<pathelement path="/usr/lib/hadoop/hadoop-core.jar"/>
<fileset dir="/usr/lib/hadoop/lib">
<!-- Creates the output directories -->
<target name="prepare">
<mkdir dir="${}"/>
<mkdir dir="${dir.dist}"/>
<!-- Removes the build and dist directories. -->
<target name="clean" description="Remove all generated files.">
<delete dir="${}"/>
<!-- Compile all source code to the build directory. -->
<target name="compile" depends="clean,prepare" description="Compile all source code.">
<javac srcdir="${dir.src}" destdir="${}" fork="yes">
<classpath refid="project.class.path"/>
<!-- Creates an executable jar file in the dist directory. -->
<target name="jar" depends="compile" description="Generates filesink-bin.jar to'dist' directory.">
<mkdir dir="${dir.dist}"/>
<jar jarfile="${dir.dist}/hadoop-solr.jar"
<attribute name="Main-Class" value="IndexDriver"/>
<attribute name="Built-By" value="${}"/>
<attribute name="Sealed" value="false"/>
Something went wrong with that request. Please try again.