Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 55 lines (45 sloc) 1.901 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
<?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="dir.build" 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">
     </fileset>

    </path>

    <!-- Creates the output directories -->
    <target name="prepare">
        <mkdir dir="${dir.build}"/>
        <mkdir dir="${dir.dist}"/>
    </target>

    <!-- Removes the build and dist directories. -->
    <target name="clean" description="Remove all generated files.">
        <delete dir="${dir.build}"/>
    </target>

    <!-- Compile all source code to the build directory. -->
    <target name="compile" depends="clean,prepare" description="Compile all source code.">
        <javac srcdir="${dir.src}" destdir="${dir.build}" fork="yes">
         <classpath refid="project.class.path"/>
        </javac>
    </target>

    <!-- 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"
basedir="${dir.build}">
<manifest>
                <attribute name="Main-Class" value="IndexDriver"/>
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Sealed" value="false"/>
</manifest>
        </jar>
    </target>


</project>
Something went wrong with that request. Please try again.