Author: thejas Date: Wed Apr 28 00:09:15 2010 New Revision: 938733 URL: http://svn.apache.org/viewvc?rev=938733&view=rev Log: PIG-1390 Provide a target to generate eclipse-related classpath and files
Added: hadoop/pig/trunk/.eclipse.templates/ hadoop/pig/trunk/.eclipse.templates/.classpath hadoop/pig/trunk/.eclipse.templates/.project hadoop/pig/trunk/.eclipse.templates/README.txt Modified: hadoop/pig/trunk/CHANGES.txt hadoop/pig/trunk/build.xml Added: hadoop/pig/trunk/.eclipse.templates/.classpath URL: http://svn.apache.org/viewvc/hadoop/pig/trunk/.eclipse.templates/.classpath?rev=938733&view=auto ============================================================================== --- hadoop/pig/trunk/.eclipse.templates/.classpath (added) +++ hadoop/pig/trunk/.eclipse.templates/.classpath Wed Apr 28 00:09:15 2010 @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="UTF=8"?> +<classpath> + <classpathentry exported="true" kind="src" path="lib-src/bzip2"/> + <classpathentry exported="true" kind="src" path="lib-src/shock"/> + <classpathentry exported="true" kind="src" path="src-gen"/> + <classpathentry exported="true" kind="src" path="contrib/owl/java/main"/> + <classpathentry exported="true" kind="src" path="contrib/owl/java/test"/> + <classpathentry exported="true" kind="src" path="contrib/piggybank/java/src/main/java"/> + <classpathentry exported="true" kind="src" path="contrib/piggybank/java/src/test/java"/> + <classpathentry exported="true" kind="src" path="contrib/zebra/src/java"/> + <classpathentry exported="true" kind="src" path="contrib/zebra/src/test"/> + <classpathentry exported="true" kind="src" path="src"/> + <classpathentry exported="true" kind="src" path="test"/> + <classpathentry exported="true" kind="src" path="tutorial/src"/> + <classpathentry exported="true" kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> + <classpathentry exported="true" kind="var" path="ANT_HOME/lib/ant.jar"/> + <classpathentry exported="true" kind="lib" path="build/ivy/lib/Pig/jackson-core-asl-1.0.1.jar"/> + <classpathentry exported="true" kind="lib" path="build/ivy/lib/Pig/jackson-mapper-asl-1.0.1.jar"/> + <classpathentry exported="true" kind="lib" path="build/ivy/lib/Pig/javacc-4.2.jar"/> + <classpathentry exported="true" kind="lib" path="build/ivy/lib/Pig/javacc.jar"/> + <classpathentry exported="true" kind="lib" path="build/ivy/lib/Pig/jline-0.9.94.jar"/> + <classpathentry exported="true" kind="lib" path="build/ivy/lib/Pig/joda-time-1.6.jar"/> + <classpathentry exported="true" kind="lib" path="build/ivy/lib/Pig/jsch-0.1.38.jar"/> + <classpathentry exported="true" kind="lib" path="build/ivy/lib/Pig/junit-4.5.jar"/> + <classpathentry exported="true" kind="lib" path="lib/hadoop20.jar"/> + <classpathentry exported="true" kind="lib" path="lib/hbase-0.20.0.jar"/> + <classpathentry exported="true" kind="lib" path="lib/hbase-0.20.0-test.jar"/> + <classpathentry exported="true" kind="lib" path="lib/zookeeper-hbase-1329.jar"/> + <classpathentry exported="true" kind="output" path="build/classes"/> +</classpath> Added: hadoop/pig/trunk/.eclipse.templates/.project URL: http://svn.apache.org/viewvc/hadoop/pig/trunk/.eclipse.templates/.project?rev=938733&view=auto ============================================================================== --- hadoop/pig/trunk/.eclipse.templates/.project (added) +++ hadoop/pig/trunk/.eclipse.templates/.project Wed Apr 28 00:09:15 2010 @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>@PROJECT@</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> Added: hadoop/pig/trunk/.eclipse.templates/README.txt URL: http://svn.apache.org/viewvc/hadoop/pig/trunk/.eclipse.templates/README.txt?rev=938733&view=auto ============================================================================== --- hadoop/pig/trunk/.eclipse.templates/README.txt (added) +++ hadoop/pig/trunk/.eclipse.templates/README.txt Wed Apr 28 00:09:15 2010 @@ -0,0 +1,2 @@ +This directory contains templates for generating Eclipse files to configure +Eclipse for Pig development. Modified: hadoop/pig/trunk/CHANGES.txt URL: http://svn.apache.org/viewvc/hadoop/pig/trunk/CHANGES.txt?rev=938733&r1=938732&r2=938733&view=diff ============================================================================== --- hadoop/pig/trunk/CHANGES.txt (original) +++ hadoop/pig/trunk/CHANGES.txt Wed Apr 28 00:09:15 2010 @@ -24,6 +24,8 @@ INCOMPATIBLE CHANGES IMPROVEMENTS +PIG-1390: Provide a target to generate eclipse-related classpath and files (chaitk via thejas) + PIG-1384: Adding contrib javadoc to main Pig javadoc (daijy) PIG-1320: final documentation updates for Pig 0.7.0 (chandec via olgan) Modified: hadoop/pig/trunk/build.xml URL: http://svn.apache.org/viewvc/hadoop/pig/trunk/build.xml?rev=938733&r1=938732&r2=938733&view=diff ============================================================================== --- hadoop/pig/trunk/build.xml (original) +++ hadoop/pig/trunk/build.xml Wed Apr 28 00:09:15 2010 @@ -196,6 +196,7 @@ <mkdir dir="${test.build.classes}" /> <mkdir dir="${src.gen.dot.parser.dir}" /> <mkdir dir="${src.gen.textdata.parser.dir}" /> + <move file="${ivy.lib.dir}/javacc-${javacc.version}.jar" tofile="${javacc.home}/javacc.jar"/> <tstamp> <format property="timestamp" pattern="MMM dd yyyy, HH:mm:ss" /> </tstamp> @@ -232,12 +233,27 @@ <delete dir="${build.dir}" /> <delete dir="${src.gen.dot.parser.dir}" /> </target> + + <target name="eclipse-files" depends="init, ivy-buildJar" + description="Generate files for Eclipse"> + <pathconvert property="eclipse.project"> + <path path="${basedir}"/> + <regexpmapper from="^.*/([^/]+)$$" to="\1" handledirsep="yes"/> + </pathconvert> + <copy todir="." overwrite="true"> + <fileset dir=".eclipse.templates"> + <exclude name="**/README.txt"/> + </fileset> + <filterset> + <filter token="PROJECT" value="${eclipse.project}"/> + </filterset> + </copy> + </target> <!-- ================================================================== --> <!-- Java Compiler Compiler, generate Parsers --> <!-- ================================================================== --> <target name="cc-compile" depends="init, ivy-compile" description="Create and Compile Parser"> - <move file="${ivy.lib.dir}/javacc-${javacc.version}.jar" tofile="${javacc.home}/javacc.jar"/> <jjtree target="${src.dir}/org/apache/pig/impl/logicalLayer/parser/QueryParser.jjt" outputdirectory="${src.gen.query.parser.dir}" javacchome="${javacc.home}" /> <javacc target="${src.gen.query.parser.dir}/QueryParser.jj" outputdirectory="${src.gen.query.parser.dir}" javacchome="${javacc.home}" /> <javacc target="${src.dir}/org/apache/pig/tools/pigscript/parser/PigScriptParser.jj" outputdirectory="${src.gen.script.parser.dir}" javacchome="${javacc.home}" />