Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Peyompian
committed
Aug 9, 2009
1 parent
2336f4d
commit 7570e35
Showing
309 changed files
with
27,072 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
K 25 | ||
svn:wc:ra_dav:version-url | ||
V 61 | ||
/repos/asf/!svn/ver/799485/hadoop/pig/trunk/contrib/piggybank | ||
END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
10 | ||
|
||
dir | ||
799616 | ||
http://svn.apache.org/repos/asf/hadoop/pig/trunk/contrib/piggybank | ||
http://svn.apache.org/repos/asf | ||
|
||
|
||
|
||
2009-07-31T01:40:53.366832Z | ||
799485 | ||
daijy | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
13f79535-47bb-0310-9956-ffa450edef68 | ||
|
||
java | ||
dir | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
K 25 | ||
svn:wc:ra_dav:version-url | ||
V 66 | ||
/repos/asf/!svn/ver/799485/hadoop/pig/trunk/contrib/piggybank/java | ||
END | ||
build.xml | ||
K 25 | ||
svn:wc:ra_dav:version-url | ||
V 76 | ||
/repos/asf/!svn/ver/799485/hadoop/pig/trunk/contrib/piggybank/java/build.xml | ||
END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
10 | ||
|
||
dir | ||
799616 | ||
http://svn.apache.org/repos/asf/hadoop/pig/trunk/contrib/piggybank/java | ||
http://svn.apache.org/repos/asf | ||
|
||
|
||
|
||
2009-07-31T01:40:53.366832Z | ||
799485 | ||
daijy | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
13f79535-47bb-0310-9956-ffa450edef68 | ||
|
||
lib | ||
dir | ||
|
||
src | ||
dir | ||
|
||
build.xml | ||
file | ||
|
||
|
||
|
||
|
||
2009-07-31T14:09:58.000000Z | ||
673ff50a0ea6bcf7b1ed91dad826d3d2 | ||
2009-07-31T01:40:53.366832Z | ||
799485 | ||
daijy | ||
has-props | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
6022 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
K 14 | ||
svn:executable | ||
V 1 | ||
* | ||
END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
<!-- | ||
Licensed to the Apache Software Foundation (ASF) under one or more | ||
contributor license agreements. See the NOTICE file distributed with | ||
this work for additional information regarding copyright ownership. | ||
The ASF licenses this file to You under the Apache License, Version 2.0 | ||
(the "License"); you may not use this file except in compliance with | ||
the License. You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
|
||
<project basedir="." default="jar" name="pigudf"> | ||
<!-- javac properties --> | ||
<property name="javac.debug" value="on" /> | ||
<property name="javac.level" value="source,lines,vars"/> | ||
<property name="javac.optimize" value="on" /> | ||
<property name="javac.deprecation" value="off" /> | ||
<property name="javac.version" value="1.5" /> | ||
<property name="javac.args" value="" /> | ||
<!-- TODO we should use warning... <property name="javac.args.warnings" value="-Xlint:unchecked" /> --> | ||
<property name="javac.args.warnings" value="" /> | ||
|
||
<!-- build properties --> | ||
<property name="build.dir" value="${basedir}/build" /> | ||
<property name="build.classes" value="${build.dir}/classes" /> | ||
<property name="build.docs" value="${build.dir}/docs" /> | ||
<property name="build.javadoc" value="${build.docs}/api" /> | ||
<property name="pigjar" value="../../../pig.jar" /> | ||
<property name="pigtest" value="../../../build/test/classes" /> | ||
<property name="udfjar" value="piggybank.jar" /> | ||
<property name="src.dir" value="src/main/java/org/apache/pig/piggybank" /> | ||
|
||
<!-- jar properties --> | ||
<property name=".javadoc" value="${build.docs}/api" /> | ||
|
||
<!-- test properties --> | ||
<property name="test.build.dir" value="${build.dir}/test" /> | ||
<property name="test.classes" value="${test.build.dir}/classes" /> | ||
<property name="test.logs" value="${test.build.dir}/logs" /> | ||
<property name="test.timeout" value="900000" /> | ||
<property name="test.junit.output.format" value="plain" /> | ||
<property name="test.src.dir" value="src/test/java" /> | ||
<property name="junit.hadoop.conf" value="${user.home}/pigtest/conf/"/> | ||
|
||
<path id="pigudf.classpath"> | ||
<pathelement location="${build.classes}"/> | ||
<pathelement location="${pigjar}"/> | ||
<pathelement location="${pigtest}"/> | ||
</path> | ||
|
||
<path id="test.classpath"> | ||
<pathelement location="${build.classes}"/> | ||
<pathelement location="${test.classes}"/> | ||
<pathelement location="${test.src.dir}"/> | ||
<pathelement location="${junit.hadoop.conf}" /> | ||
<path refid="pigudf.classpath"/> | ||
</path> | ||
|
||
<target name="init"> | ||
<mkdir dir="${build.dir}"/> | ||
<mkdir dir="${build.classes}"/> | ||
<mkdir dir="${test.build.dir}"/> | ||
<mkdir dir="${test.classes}"/> | ||
<mkdir dir="${build.javadoc}"/> | ||
</target> | ||
<target name="clean"> | ||
<delete dir="build"/> | ||
</target> | ||
<target depends="init" name="compile" description="compile all of the class files"> | ||
<echo> *** Compiling Pig UDFs ***</echo> | ||
<javac srcdir="${src.dir}" debug="${javac.debug}" debuglevel="${javac.level}" destdir="${build.classes}" source="${javac.version}" | ||
target="${javac.version}" optimize="${javac.optimize}" deprecation="${javac.deprecation}"> | ||
<compilerarg line="${javac.args} ${javac.args.warnings}" /> | ||
<classpath refid="pigudf.classpath"/> | ||
</javac> | ||
</target> | ||
<target depends="init,compile" name="jar" description="create the jar files"> | ||
<echo> *** Creating pigudf.jar ***</echo> | ||
<jar destfile="${udfjar}"> | ||
<fileset dir="build/classes"/> | ||
</jar> | ||
</target> | ||
<target depends="compile" name="compile-test"> | ||
<echo> *** Compiling UDF tests ***</echo> | ||
<javac srcdir="${test.src.dir}" debug="true" debuglevel="${debuglevel}" destdir="${test.classes}" source="${javac.version}" target="${javac.version}"> | ||
<classpath refid="pigudf.classpath"/> | ||
</javac> | ||
</target> | ||
<target depends="compile-test,jar" name="test"> | ||
<echo> *** Running UDF tests ***</echo> | ||
<delete dir="${test.logs}"/> | ||
<mkdir dir="${test.logs}"/> | ||
<junit printsummary="yes" haltonfailure="no" fork="yes" maxmemory="256m" dir="${basedir}" timeout="${test.timeout}" errorProperty="tests.failed" failureProperty="tests.failed"> | ||
<sysproperty key="hadoop.log.dir" value="${test.logs}"/> | ||
<classpath refid="test.classpath"/> | ||
<formatter type="${test.junit.output.format}" /> | ||
<batchtest fork="yes" todir="${test.logs}" unless="testcase"> | ||
<fileset dir="${test.src.dir}"> | ||
<include name="**/*Test*.java" /> | ||
</fileset> | ||
</batchtest> | ||
<batchtest fork="yes" todir="${test.logs}" if="testcase"> | ||
<fileset dir="${test.src.dir}" includes="**/${testcase}.java"/> | ||
</batchtest> | ||
</junit> | ||
<fail if="tests.failed">Tests failed!</fail> | ||
</target> | ||
<target depends="init" name="javadoc" | ||
description="build javadoc for all of the packages"> | ||
<echo> *** Creating Javadocs ***</echo> | ||
<javadoc destdir="build/javadoc" | ||
author="true"> | ||
<fileset dir="${src.dir}/evaluation" includes="**/*.java"/> | ||
<fileset dir="${src.dir}/storage" includes="**/*.java"/> | ||
<fileset dir="${src.dir}/filtering" includes="**/*.java"/> | ||
<fileset dir="${src.dir}/grouping" includes="**/*.java"/> | ||
<fileset dir="${src.dir}/comparison" includes="**/*.java"/> | ||
<classpath refid="pigudf.classpath"/> | ||
</javadoc> | ||
</target> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
<!-- | ||
Licensed to the Apache Software Foundation (ASF) under one or more | ||
contributor license agreements. See the NOTICE file distributed with | ||
this work for additional information regarding copyright ownership. | ||
The ASF licenses this file to You under the Apache License, Version 2.0 | ||
(the "License"); you may not use this file except in compliance with | ||
the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
|
||
<project basedir="." default="jar" name="pigudf"> | ||
<!-- javac properties --> | ||
<property name="javac.debug" value="on" /> | ||
<property name="javac.level" value="source,lines,vars"/> | ||
<property name="javac.optimize" value="on" /> | ||
<property name="javac.deprecation" value="off" /> | ||
<property name="javac.version" value="1.5" /> | ||
<property name="javac.args" value="" /> | ||
<!-- TODO we should use warning... <property name="javac.args.warnings" value="-Xlint:unchecked" /> --> | ||
<property name="javac.args.warnings" value="" /> | ||
|
||
<!-- build properties --> | ||
<property name="build.dir" value="${basedir}/build" /> | ||
<property name="build.classes" value="${build.dir}/classes" /> | ||
<property name="build.docs" value="${build.dir}/docs" /> | ||
<property name="build.javadoc" value="${build.docs}/api" /> | ||
<property name="pigjar" value="../../../pig.jar" /> | ||
<property name="pigtest" value="../../../build/test/classes" /> | ||
<property name="udfjar" value="piggybank.jar" /> | ||
<property name="src.dir" value="src/main/java/org/apache/pig/piggybank" /> | ||
|
||
<!-- jar properties --> | ||
<property name=".javadoc" value="${build.docs}/api" /> | ||
|
||
<!-- test properties --> | ||
<property name="test.build.dir" value="${build.dir}/test" /> | ||
<property name="test.classes" value="${test.build.dir}/classes" /> | ||
<property name="test.logs" value="${test.build.dir}/logs" /> | ||
<property name="test.timeout" value="900000" /> | ||
<property name="test.junit.output.format" value="plain" /> | ||
<property name="test.src.dir" value="src/test/java" /> | ||
<property name="junit.hadoop.conf" value="${user.home}/pigtest/conf/"/> | ||
|
||
<path id="pigudf.classpath"> | ||
<pathelement location="${build.classes}"/> | ||
<pathelement location="${pigjar}"/> | ||
<pathelement location="${pigtest}"/> | ||
</path> | ||
|
||
<path id="test.classpath"> | ||
<pathelement location="${build.classes}"/> | ||
<pathelement location="${test.classes}"/> | ||
<pathelement location="${test.src.dir}"/> | ||
<pathelement location="${junit.hadoop.conf}" /> | ||
<path refid="pigudf.classpath"/> | ||
</path> | ||
|
||
<target name="init"> | ||
<mkdir dir="${build.dir}"/> | ||
<mkdir dir="${build.classes}"/> | ||
<mkdir dir="${test.build.dir}"/> | ||
<mkdir dir="${test.classes}"/> | ||
<mkdir dir="${build.javadoc}"/> | ||
</target> | ||
<target name="clean"> | ||
<delete dir="build"/> | ||
</target> | ||
<target depends="init" name="compile" description="compile all of the class files"> | ||
<echo> *** Compiling Pig UDFs ***</echo> | ||
<javac srcdir="${src.dir}" debug="${javac.debug}" debuglevel="${javac.level}" destdir="${build.classes}" source="${javac.version}" | ||
target="${javac.version}" optimize="${javac.optimize}" deprecation="${javac.deprecation}"> | ||
<compilerarg line="${javac.args} ${javac.args.warnings}" /> | ||
<classpath refid="pigudf.classpath"/> | ||
</javac> | ||
</target> | ||
<target depends="init,compile" name="jar" description="create the jar files"> | ||
<echo> *** Creating pigudf.jar ***</echo> | ||
<jar destfile="${udfjar}"> | ||
<fileset dir="build/classes"/> | ||
</jar> | ||
</target> | ||
<target depends="compile" name="compile-test"> | ||
<echo> *** Compiling UDF tests ***</echo> | ||
<javac srcdir="${test.src.dir}" debug="true" debuglevel="${debuglevel}" destdir="${test.classes}" source="${javac.version}" target="${javac.version}"> | ||
<classpath refid="pigudf.classpath"/> | ||
</javac> | ||
</target> | ||
<target depends="compile-test,jar" name="test"> | ||
<echo> *** Running UDF tests ***</echo> | ||
<delete dir="${test.logs}"/> | ||
<mkdir dir="${test.logs}"/> | ||
<junit printsummary="yes" haltonfailure="no" fork="yes" maxmemory="256m" dir="${basedir}" timeout="${test.timeout}" errorProperty="tests.failed" failureProperty="tests.failed"> | ||
<sysproperty key="hadoop.log.dir" value="${test.logs}"/> | ||
<classpath refid="test.classpath"/> | ||
<formatter type="${test.junit.output.format}" /> | ||
<batchtest fork="yes" todir="${test.logs}" unless="testcase"> | ||
<fileset dir="${test.src.dir}"> | ||
<include name="**/*Test*.java" /> | ||
</fileset> | ||
</batchtest> | ||
<batchtest fork="yes" todir="${test.logs}" if="testcase"> | ||
<fileset dir="${test.src.dir}" includes="**/${testcase}.java"/> | ||
</batchtest> | ||
</junit> | ||
<fail if="tests.failed">Tests failed!</fail> | ||
</target> | ||
<target depends="init" name="javadoc" | ||
description="build javadoc for all of the packages"> | ||
<echo> *** Creating Javadocs ***</echo> | ||
<javadoc destdir="build/javadoc" | ||
author="true"> | ||
<fileset dir="${src.dir}/evaluation" includes="**/*.java"/> | ||
<fileset dir="${src.dir}/storage" includes="**/*.java"/> | ||
<fileset dir="${src.dir}/filtering" includes="**/*.java"/> | ||
<fileset dir="${src.dir}/grouping" includes="**/*.java"/> | ||
<fileset dir="${src.dir}/comparison" includes="**/*.java"/> | ||
<classpath refid="pigudf.classpath"/> | ||
</javadoc> | ||
</target> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
K 25 | ||
svn:wc:ra_dav:version-url | ||
V 70 | ||
/repos/asf/!svn/ver/733924/hadoop/pig/trunk/contrib/piggybank/java/lib | ||
END |
Oops, something went wrong.