hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thejas M Nair (JIRA)" <j...@apache.org>
Subject [jira] Commented: (PIG-1390) Provide a target to generate eclipse-related classpath and files
Date Tue, 27 Apr 2010 00:27:34 GMT

    [ https://issues.apache.org/jira/browse/PIG-1390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12861183#action_12861183
] 

Thejas M Nair commented on PIG-1390:
------------------------------------

I had to make some changes after applying the patch to get things working for me. 

I removed "test/org/apache/pig/test" from the sources, because "test" is already present .
Before I removed it was getting eclipse error saying something like 'could not add this dir
because "pig/test" is already there'.

13a14
>       <classpathentry kind="src" path="test/org/apache/pig/test"/>

Some of the jars from "lib/" dir were missing . These libs also need to be exported so that
pig (org.apache.pig.Main) can be run from eclipse.
The classes were not being generated by eclipse into build/eclipse-classes . I had to change
"output" to build/classes to fix the class-not-found exception I was getting when I tried
running org/apache/pig/Main.java from eclipse . 
15,29c16,26
<       <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-test.jar"/>
<       <classpathentry exported="true" kind="lib" path="lib/hbase-0.20.0.jar"/>
<       <classpathentry exported="true" kind="lib" path="lib/zookeeper-hbase-1329.jar"/>
<       <classpathentry kind="output" path="build/classes"/>
---
>       <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
>       <classpathentry kind="var" path="ANT_HOME/lib/ant.jar"/>
>       <classpathentry kind="lib" path="build/ivy/lib/Pig/jackson-core-asl-1.0.1.jar"/>
>       <classpathentry kind="lib" path="build/ivy/lib/Pig/jackson-mapper-asl-1.0.1.jar"/>
>       <classpathentry kind="lib" path="build/ivy/lib/Pig/javacc-4.2.jar"/>
>       <classpathentry kind="lib" path="build/ivy/lib/Pig/javacc.jar"/>
>       <classpathentry kind="lib" path="build/ivy/lib/Pig/jline-0.9.94.jar"/>
>       <classpathentry kind="lib" path="build/ivy/lib/Pig/joda-time-1.6.jar"/>
>       <classpathentry kind="lib" path="build/ivy/lib/Pig/jsch-0.1.38.jar"/>
>       <classpathentry kind="lib" path="build/ivy/lib/Pig/junit-4.5.jar"/>
>       <classpathentry kind="output" path="build/eclipse-classes"/>

I also noticed that if the project is added to eclipse after 'ant eclipse-files' is run, it
has problems with seeing the files under src-gen . But that is probably just something that
needs to be documented. 
I tried all this on Eclipse Version: 3.4.2 on a mac .

Can you please try out these changes and see if it works for you ? 

> Provide a target to generate eclipse-related classpath and files
> ----------------------------------------------------------------
>
>                 Key: PIG-1390
>                 URL: https://issues.apache.org/jira/browse/PIG-1390
>             Project: Pig
>          Issue Type: Improvement
>          Components: build
>    Affects Versions: 0.7.0, 0.8.0
>            Reporter: V.V.Chaitanya Krishna
>            Assignee: V.V.Chaitanya Krishna
>             Fix For: 0.8.0
>
>         Attachments: PIG-1390-2.patch, PIG-eclipse_support.patch
>
>
> Currently, after checking out from svn repository, there is no provision to auto-generate
eclipse-related classpath and files , which could help in import into eclipse directly.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message