Browse Source

make this work even when my cygwin-based svn checks out files in \n but my JVM thinks line.separator = \r\n

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@448640 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 19 years ago
parent
commit
307ac84b87
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      src/etc/testcases/taskdefs/input.xml

+ 6
- 6
src/etc/testcases/taskdefs/input.xml View File

@@ -58,11 +58,11 @@
<input message="Press Return key to continue..." addproperty="test">
<handler type="greedy" />
</input>
<loadfile srcFile="input.stdin" property="input" />
<fail message="$${test} = ${test}">
<condition>
<not>
<equals arg1="${test}"
arg2="foo${line.separator}bar${line.separator}" />
<equals arg1="${test}" arg2="${input}" />
</not>
</condition>
</fail>
@@ -72,11 +72,11 @@
<input message="Press Return key to continue..." addproperty="test">
<handler classname="org.apache.tools.ant.input.GreedyInputHandler" />
</input>
<loadfile srcFile="input.stdin" property="input" />
<fail message="$${test} = ${test}">
<condition>
<not>
<equals arg1="${test}"
arg2="foo${line.separator}bar${line.separator}" />
<equals arg1="${test}" arg2="${input}" />
</not>
</condition>
</fail>
@@ -90,11 +90,11 @@
<input message="Press Return key to continue..." addproperty="test">
<handler refid="greedy" />
</input>
<loadfile srcFile="input.stdin" property="input" />
<fail message="$${test} = ${test}">
<condition>
<not>
<equals arg1="${test}"
arg2="foo${line.separator}bar${line.separator}" />
<equals arg1="${test}" arg2="${input}" />
</not>
</condition>
</fail>


Loading…
Cancel
Save