FAQ
[ 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 files
- Single unit tests can be run from inside Eclipse
- Basic Java code style formatter settings for the Hadoop conventions (still needs some work)
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).
TODO:
- 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.

Search Discussions

  • Tom White (JIRA) at Feb 6, 2008 at 3:53 pm
    [ https://issues.apache.org/jira/browse/HADOOP-1228?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Tom White updated HADOOP-1228:
    ------------------------------

    Status: Patch Available (was: Open)
    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 files
    - Single unit tests can be run from inside Eclipse
    - Basic Java code style formatter settings for the Hadoop conventions (still needs some work)
    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).
    TODO:
    - 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.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommon-dev @
categorieshadoop
postedFeb 6, '08 at 3:53p
activeFeb 6, '08 at 3:53p
posts2
users1
websitehadoop.apache.org...
irc#hadoop

1 user in discussion

Tom White (JIRA): 2 posts

People

Translate

site design / logo © 2022 Grokbase