You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Hrishikesh (JIRA)" <ji...@apache.org> on 2008/01/07 20:26:34 UTC

[jira] Updated: (HADOOP-2537) make build process compatible with Ant 1.7.0

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

Hrishikesh updated HADOOP-2537:
-------------------------------

    Attachment: 2537.patch

Yes this looks like an ANT 1.7 "feature"


A *nix system will have a null device /dev/null. Add the null device to the list of files to be touched; this will make sure the touch task doesn't fail.

A proposed patch is attached


> make build process compatible with Ant 1.7.0
> --------------------------------------------
>
>                 Key: HADOOP-2537
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2537
>             Project: Hadoop
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 0.14.4
>            Reporter: Nigel Daley
>             Fix For: 0.16.0
>
>         Attachments: 2537.patch
>
>
> This section of build.xml behaves differently between Ant 1.6.5 and Ant 1.7.0:
> {code:xml}
>     <touch datetime="01/25/1971 2:00 pm">
>       <fileset dir="${conf.dir}" includes="**/*.template"/>
>       <fileset dir="${contrib.dir}" includes="**/*.template"/>
>     </touch>
> {code}
> In Ant 1.6.5, if the fileset is empty (which it is if you're building from a released tar.gz distribution) then this section silently passes.
> In Ant 1.7.0, if the fileset is empty, the following error is raised and the build stops:
> {quote}
> BUILD FAILED
> /home/ndaley/Downloads/hadoop-0.15.1/build.xml:151: Specify at least one source--a file or resource collection.
> {quote}

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