hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom White (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HADOOP-1228) Eclipse project files
Date Wed, 06 Feb 2008 15:53:08 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-1228?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Tom White updated HADOOP-1228:

    Attachment: hadoop-1228.patch

Here's a patch (hadoop-1228.patch) that takes a different approach. It stores template files
in a directory called .eclipse.templates, and there is an ant task to copy the files to the
right place for Eclipse to find them. Since the .classpath, .project and other Eclipse files
are not checked into subversion, it's possible to tweak your Eclipse set up without seeing
modified flags. In particular, you can check out multiple copies of Hadoop into the same workspace
with different names.

To use it:

1. Set up an ANT_HOME Classpath Variable in Preferences. (This is a global Eclipse setting
so you only need to do this once.)
2. Checkout Hadoop.
3. Apply this patch.
4. Run the generate-eclipse-files ant target.
5. Refresh the project.
6. Select Project | Build Project.

If folks find this useful we could check it in.

> Eclipse project files
> ---------------------
>                 Key: HADOOP-1228
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1228
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: build
>            Reporter: Albert Strasheim
>            Priority: Minor
>         Attachments: .classpath, .project, eclipse.patch, hadoop-1228.patch, hadoop-eclipse.zip
> I've created Eclipse project files for Hadoop (to be attached). I've found them very
useful for exploring Hadoop and running the unit tests.
> The project files can be included in the source repository to make it easy to import
Hadoop into Eclipse.
> A few features:
> - Eclipse automatically calls the Ant build to generate some of the necessary source
> - Single unit tests can be run from inside Eclipse
> - Basic Java code style formatter settings for the Hadoop conventions (still needs some
> The following VM arguments must be specified in the run configuration to get unit tests
to run:
> -Xms256m -Xmx256m -Dtest.build.data=${project_loc}\build\test\data
> Some of the unit tests don't run yet, possibly due to some missing VM flags, the fact
that I'm running Windows, or some other reason(s).
> - Specify native library location(s) once I investigate building of Hadoop's native library
> - Get all the unit tests to run

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

View raw message