Permalink
Switch branches/tags
Find file
Fetching contributors…
Cannot retrieve contributors at this time
61 lines (50 sloc) 1.94 KB
<?xml version="1.0" encoding="UTF-8"?>
<!-- ======================================================================
2009/09/06 22:05:47
project Hadoop Ruby
description
fujibee
====================================================================== -->
<project name="build JRuby map reduce" default="jar">
<property environment="env" />
<property name="hadoop.home" value="${env.HADOOP_HOME}" />
<property name="jruby.home" value="${env.JRUBY_HOME}" />
<property name="version" value="0.0.2" />
<property name="src.dir" value="${basedir}/src/java" />
<property name="build.dir" value="${basedir}/build" />
<property name="dist.dir" value="${basedir}/dist" />
<property name="hadoop.version" value="0.19.2" />
<property name="hadoop.jar" value="${hadoop.home}/hadoop-${hadoop.version}-core.jar" />
<property name="jruby.jar" value="jruby.jar" />
<target name="jar" depends="clean,compile">
<mkdir dir="${dist.dir}" />
<jar jarfile="${dist.dir}/hadoop-ruby.jar" basedir="${build.dir}">
<manifest>
<section name="org/apache/hadoop/ruby">
<attribute name="Implementation-Title" value="Hadoop-Ruby" />
<attribute name="Implementation-Version" value="${version}" />
<attribute name="Implementation-Vendor" value="" />
</section>
</manifest>
</jar>
</target>
<target name="compile">
<echo message="${hadoop.jar}" />
<mkdir dir="${build.dir}" />
<javac srcdir="${src.dir}" destdir="${build.dir}">
<classpath>
<fileset dir="${hadoop.home}">
<include name="*.jar" />
<include name="lib/*.jar" />
</fileset>
<fileset dir="${jruby.home}">
<include name="lib/${jruby.jar}" />
</fileset>
</classpath>
</javac>
</target>
<target name="clean">
<delete dir="${build.dir}" />
<delete dir="${dist.dir}" />
</target>
</project>