ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 49756] New: Copy doesn't support string resources
Date Mon, 16 Aug 2010 16:49:25 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49756

           Summary: Copy doesn't support string resources
           Product: Ant
           Version: 1.8.1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: notifications@ant.apache.org
        ReportedBy: info_issues.apache.org@nmhq.net


I tried to use

    <copy tofile="${dir}/somefile">
        <first>
            <sort>
                <exists/>
                <resources>
                    <fileset file="${dir}/somefile"/>
                    <string value="default contents"/>
                </resources>
            </sort>
        </first>
    </copy>

within a macrofed to conditionally generate somefile in ${dir} if it doesn't
exists already. This fails in the <string> case with the error message" Only
FileSystem resources are supported when concatenating files."

Strangely, when using <concat> instead of <copy>, the <string> case works.
But
the <fileset> case then fails, because <concat> isn't capable of copying a file
onto itself ("Destination resource ... was specified as an input resource").

I can't use properties to control the condition because it's in a macrodef, and
the properties would persist between macro invocations.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message