hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Todd Lipcon <t...@cloudera.com>
Subject Re: Eclipse target
Date Wed, 18 May 2011 23:27:53 GMT
Hi Niels,

Yes, I have to do this same thing manually every time I re-run "ant eclipse".

So, it seems like we should add it to the eclipse target, like you
said. Feel free to file a JIRA and patch!

-Todd

On Wed, May 18, 2011 at 2:24 PM, Niels Basjes <Niels@basjes.nl> wrote:
> When I checkout common, run ant eclipse and then open eclipse I get this error:
>
> The type com.sun.javadoc.RootDoc cannot be resolved. It is indirectly
> referenced from required .class
> files   ExcludePrivateAnnotationsJDiffDoclet.java       /common/src/java/org/apache/hadoop/classification/tools
line
> 1       Java Problem
>
> The problem is that the tools.jar is missing during build.
>
> Now I'm extremely novice when it come to the ant build.xml but I think
> I solved the problem by ensuring the tools.jar is added to the eclipse
> project files (i.e. the .classpath file).
> My question to you all: is this the correct solution? Is it worth
> submitting as a patch?
>
> diff --git build.xml build.xml
> index 26ccfa0..168b34f 100644
> --- build.xml
> +++ build.xml
> @@ -1571,6 +1571,7 @@
>         <library pathref="ivy-test.classpath" exported="false" />
>         <variable path="ANT_HOME/lib/ant.jar" exported="false" />
>         <library path="${conf.dir}" exported="false" />
> +        <library path="${java.home}/../lib/tools.jar" exported="false" />
>       </classpath>
>     </eclipse>
>   </target>
>
>
>
>
> --
> Met vriendelijke groeten,
>
> Niels Basjes
>



-- 
Todd Lipcon
Software Engineer, Cloudera

Mime
View raw message