Author: olga
Date: Fri Jun 20 09:27:05 2008
New Revision: 669974

URL: http://svn.apache.org/viewvc?rev=669974&view=rev
Log:
PIG-271: added tutorial to svn

Added:
    incubator/pig/trunk/tutorial/
    incubator/pig/trunk/tutorial/build.xml   (with props)
    incubator/pig/trunk/tutorial/data/
    incubator/pig/trunk/tutorial/data/excite-small.log   (with props)
    incubator/pig/trunk/tutorial/data/excite.log.bz2   (with props)
    incubator/pig/trunk/tutorial/scripts/
    incubator/pig/trunk/tutorial/scripts/script1-hadoop.pig   (with props)
    incubator/pig/trunk/tutorial/scripts/script1-local.pig   (with props)
    incubator/pig/trunk/tutorial/scripts/script2-hadoop.pig   (with props)
    incubator/pig/trunk/tutorial/scripts/script2-local.pig   (with props)
    incubator/pig/trunk/tutorial/src/
    incubator/pig/trunk/tutorial/src/org/
    incubator/pig/trunk/tutorial/src/org/apache/
    incubator/pig/trunk/tutorial/src/org/apache/pig/
    incubator/pig/trunk/tutorial/src/org/apache/pig/tutorial/
    incubator/pig/trunk/tutorial/src/org/apache/pig/tutorial/ExtractHour.java
    incubator/pig/trunk/tutorial/src/org/apache/pig/tutorial/NGramGenerator.java
    incubator/pig/trunk/tutorial/src/org/apache/pig/tutorial/NonURLDetector.java
    incubator/pig/trunk/tutorial/src/org/apache/pig/tutorial/ScoreGenerator.java
    incubator/pig/trunk/tutorial/src/org/apache/pig/tutorial/ToLower.java
    incubator/pig/trunk/tutorial/src/org/apache/pig/tutorial/TutorialTest.java
    incubator/pig/trunk/tutorial/src/org/apache/pig/tutorial/TutorialUtil.java
Modified:
    incubator/pig/trunk/CHANGES.txt

Modified: incubator/pig/trunk/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/incubator/pig/trunk/CHANGES.txt?rev=669974&r1=669973&r2=669974&view=diff
==============================================================================
--- incubator/pig/trunk/CHANGES.txt (original)
+++ incubator/pig/trunk/CHANGES.txt Fri Jun 20 09:27:05 2008
@@ -323,3 +323,5 @@
 
     PIG-255: make non-default constructors work for algebraic functions
     (ajaygarg via olgan)
+
+    PIG-271: added tutorial to SVN (olgan)

Added: incubator/pig/trunk/tutorial/build.xml
URL: 
http://svn.apache.org/viewvc/incubator/pig/trunk/tutorial/build.xml?rev=669974&view=auto
==============================================================================
--- incubator/pig/trunk/tutorial/build.xml (added)
+++ incubator/pig/trunk/tutorial/build.xml Fri Jun 20 09:27:05 2008
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<project basedir="." default="tar" name="pigudf">
+    <!-- javac properties -->
+    <property name="javac.version" value="1.5" />
+
+    <!-- build properties -->
+    <property name="build.dir" value="${basedir}/build" />
+    <property name="build.classes" value="${build.dir}/classes" />
+    <property name="pigjar" value="../pig.jar" />
+    <property name="tar.file" value="${build.dir}/pigtutorial.tar" />
+    <property name="tar.dir" value="${build.dir}/output" />
+    <property name="tar.dir.final" value="${tar.dir}/pigtmp" />
+    <property name="zip.file" value="pigtutorial.tar.gz"/>
+    <property name="tutorialjar" value="${tar.dir.final}/tutorial.jar" />
+    <property name="src.dir" value="src/org/apache/pig/tutorial" />
+    <property name="data.dir" value="data" />
+    <property name="scripts.dir" value="scripts" />
+
+    <path id="tutorial.classpath">
+        <pathelement location="${build.classes}"/>
+        <pathelement location="${pigjar}"/>
+    </path>
+
+    <target name="init">
+        <mkdir dir="${build.dir}"/>
+        <mkdir dir="${build.classes}"/>
+        <mkdir dir="${tar.dir}"/>
+        <mkdir dir="${tar.dir.final}"/>
+    </target>
+    <target name="clean">
+        <delete dir="build"/>
+    </target>
+    <target depends="jar" name="cp" description="prepare tar creation">
+        <echo> *** Preparing tar creation ***</echo>
+        <copy includeemptydirs="false" todir="${tar.dir.final}">
+        <fileset dir="${data.dir}"/>
+        <fileset dir="${scripts.dir}"/>
+        <fileset file="${pigjar}"/>
+        </copy>
+    </target>
+    <target depends="init" name="compile" description="compiles tutorial udfs">
+        <echo> *** Compiling Tutorial files ***</echo>
+        <javac srcdir="${src.dir}" destdir="${build.classes}" 
source="${javac.version}"
+        target="${javac.version}">
+            <classpath refid="tutorial.classpath"/>
+        </javac>
+    </target>
+    <target depends="compile" name="jar" description="create tutorial jar 
file">
+        <echo> *** Creating tutorial.jar ***</echo>
+      <jar destfile="${tutorialjar}">
+        <fileset dir="${build.classes}"/>
+      </jar>
+    </target>
+    <target depends="cp" name="tar" description="constract tutorial tar file">
+        <echo> *** Creating tutorial.jar ***</echo>
+        <tar destfile="${tar.file}" basedir="${tar.dir}" />
+        <gzip zipfile="${zip.file}" src="${tar.file}"/>
+    </target>
+</project>

Propchange: incubator/pig/trunk/tutorial/build.xml
------------------------------------------------------------------------------
    svn:executable = *


Reply via email to