hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Douglas (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-7248) Have a way to automatically update Eclipse .classpath file when new libs are added to the classpath through Ivy for 0.20-* based sources
Date Wed, 11 May 2011 02:43:47 GMT

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

Chris Douglas updated HADOOP-7248:
----------------------------------

      Resolution: Fixed
    Hadoop Flags: [Reviewed]
          Status: Resolved  (was: Patch Available)

I took a closer look at the patch, and came across this section:

{noformat}
+  <condition property="ant-eclipse.jar.exists">
+    <available file="${build.dir}/lib/ant-eclipse-1.0-jvm1.2.jar"/>
+  </condition>
+
+  <target name="ant-eclipse-download" unless="ant-eclipse.jar.exists"
+          description="Downloads the ant-eclipse binary.">
+    <get src="http://downloads.sourceforge.net/project/ant-eclipse/ant-eclipse/1.0/ant-eclipse-1.0.bin.tar.bz2"
+         dest="${build.dir}/ant-eclipse-1.0.bin.tar.bz2" usetimestamp="false" />
+
+    <untar src="${build.dir}/ant-eclipse-1.0.bin.tar.bz2"
+           dest="${build.dir}" compression="bzip2">
+      <patternset>
+        <include name="lib/ant-eclipse-1.0-jvm1.2.jar"/>
+      </patternset>
+    </untar>
+    <delete file="${build.dir}/ant-eclipse-1.0.bin.tar.bz2" />
+  </target>
{noformat}

Installing this jar into the maven cache would not only avoid downloading it so often, but
it would also make the eclipse target valid when building offline. However, it looks like
HADOOP-6407 (and related issues) made the same choice, so this can be a separate issue.

I committed this to the 20-security branch.

> Have a way to automatically update Eclipse .classpath file when new libs are added to
the classpath through Ivy for 0.20-* based sources
> ----------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-7248
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7248
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: build
>    Affects Versions: 0.20.3
>            Reporter: Konstantin Boudnik
>            Assignee: Thomas Graves
>            Priority: Minor
>             Fix For: 0.20.205.0
>
>         Attachments: C7248-1.patch, HADOOP-7248-branch-20-security.patch
>
>
> Backport HADOOP-6407 into 0.20 based source trees

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message