Browse Source

-make encoding tests pass on windows

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@593032 13f79535-47bb-0310-9956-ffa450edef68
master
Kevin Jackson 17 years ago
parent
commit
3b9dfc6b06
1 changed files with 13 additions and 1 deletions
  1. +13
    -1
      src/tests/antunit/taskdefs/concat-test.xml

+ 13
- 1
src/tests/antunit/taskdefs/concat-test.xml View File

@@ -25,7 +25,7 @@
</au:assertTrue>
</target>

<target name="testStringEncoding">
<target name="testStringEncoding" if="os.unix">
<property name="br" value="${line.separator}" />
<concat destfile="encodeStringDest"
outputEncoding="utf-16">foo${br}bar${br}baz${br}</concat>
@@ -36,6 +36,18 @@
</resourcesmatch>
</au:assertTrue>
</target>
<target name="testStringEncodingWindows" if="os.windows">
<property name="br" value="${line.separator}" />
<concat destfile="encodeStringDest"
outputEncoding="utf-16">foo${br}bar${br}baz${br}</concat>
<au:assertTrue>
<resourcesmatch astext="true">
<file file="utf-16.expected.windows" />
<file file="encodeStringDest" />
</resourcesmatch>
</au:assertTrue>
</target>

<target name="testDoNotFixNestedText" description="Bugzilla 42369">
<au:assertTrue>


Loading…
Cancel
Save