ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 49756] New: Copy doesn't support string resources
Date Mon, 16 Aug 2010 16:49:25 GMT

           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

I tried to use

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

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.
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:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message