https://bz.apache.org/bugzilla/show_bug.cgi?id=58038

            Bug ID: 58038
           Summary: $ parsing problem
           Product: Ant
           Version: 1.7.1
          Hardware: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Build Process
          Assignee: [email protected]
          Reporter: [email protected]

I have a properties file like this 

…
…
                     <xmltask source="${file.test-settings}"
dest="${file.test-settings}" report="${flag.xmltask.report}">
                            <attr path="/TestSettings" attr="UserName"
value="${TST_USERNAME}" />
                            <attr path="/TestSettings" attr="Password"
value="${TST_PASSWORD}" />
                            <attr path="/TestSettings" attr="Endpoint"
value="${TST_ENDPOINT_URL}" />
                     </xmltask>           
…

config.properties…

….
….
#Test Settings
TST_USERNAME="TESTUSER"
TST_PASSWORD="lo$$control"
TST_ENDPOINT_URL="https://testing.com";
…
…

Expected result…

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<Endpoint="https://testing.com"; Password="lo$$control" UserName="TESTUSER"/>


Final result…

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<Endpoint="https://testing.com"; Password="lo$control" UserName="TESTUSER"/>

I have tested different scenarios and if the properties file have 2$ . the
output have 1$ . It truncates 1$ sign , works fine with all other charecters ..

Input.properties
var1 = "!!@@##$$%%^^&&**(())"

<echo>${var1}</echo>
Result -- "!!@@##$%%^^&&**(())"
See the $ got truncated .

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

Reply via email to