HADOOP-7305. Eclipse project files are incomplete. Contributed by Niels Basjes

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1146912 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Eli Collins 2011-07-14 22:27:15 +00:00
parent 4ea4eeca75
commit 4f0dba4142
2 changed files with 26 additions and 5 deletions

View File

@ -264,6 +264,8 @@ Trunk (unreleased changes)
HADOOP-7443. Add CRC32C as another DataChecksum implementation (todd)
HADOOP-7305. Eclipse project files are incomplete. (Niels Basjes via eli)
OPTIMIZATIONS
HADOOP-7333. Performance improvement in PureJavaCrc32. (Eric Caspole

View File

@ -1714,6 +1714,25 @@
<target name="eclipse"
depends="init,ant-eclipse-download,ivy-retrieve-common,ivy-retrieve-test,compile-core-test"
description="Create eclipse project files">
<property environment="env"/>
<!-- Locate the tools.jar which is part of the JDK -->
<condition property="jdk.tools.jar" value="${env.JDK_HOME}/lib/tools.jar">
<available file="${env.JDK_HOME}/lib/tools.jar"/>
</condition>
<condition property="jdk.tools.jar" value="${env.JAVA_HOME}/lib/tools.jar">
<available file="${env.JAVA_HOME}/lib/tools.jar"/>
</condition>
<condition property="jdk.tools.jar" value="${java.home}/../lib/tools.jar">
<available file="${java.home}/../lib/tools.jar"/>
</condition>
<!-- The tools.jar from the JDK is called classes.jar on OS X. -->
<condition property="jdk.tools.jar" value="${java.home}/bundle/Classes/classes.jar">
<available file="${java.home}/bundle/Classes/classes.jar"/>
</condition>
<pathconvert property="eclipse.project">
<path path="${basedir}"/>
<regexpmapper from="^.*/([^/]+)$$" to="\1" handledirsep="yes"/>
@ -1737,7 +1756,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" />
<library path="${jdk.tools.jar}" exported="false" />
</classpath>
</eclipse>
</target>