https://issues.apache.org/bugzilla/show_bug.cgi?id=54672

            Bug ID: 54672
           Summary: fixlastline attribute doesn't work in tandem with
                    filterchain
           Product: Ant
           Version: 1.8.3
          Hardware: PC
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Core tasks
          Assignee: [email protected]
          Reporter: [email protected]
    Classification: Unclassified

the fixlastline attribute puts the newline after the first character of the
next file to concat if used with filterchain, see example below

---build.xml---
<concat destfile="${sqlscript.dir}/concated_files.sql" overwrite="true"
fixlastline="true">
    <filelist dir="${project.dir}">
        <file name="${sqlscript.dir}/file1.sql"/>
        <file name="${sqlscript.dir}/file2.sql"/>
    </filelist>
    <filterchain>
        <tokenfilter>
            <ignoreblank/>
        </tokenfilter>
    </filterchain>
</concat>

---file1.sql---
DELETE FROM "TABLE" WHERE PACKAGE_ID like '%package%'@
---file2.sql---
DROP SCHEMA SCHEMA1 cascade@
---concated_files.sql---
DELETE FROM "TABLE" WHERE PACKAGE_ID like '%package%'@D
ROP SCHEMA SCHEMA1 cascade@

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to