You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2015/06/15 19:17:34 UTC
[Bug 58038] New: $ parsing problem
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: notifications@ant.apache.org
Reporter: talk_to_deba@yahoo.com
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.
[Bug 58038] $ parsing problem
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58038
--- Comment #1 from Debasish <ta...@yahoo.com> ---
Created attachment 32824
--> https://bz.apache.org/bugzilla/attachment.cgi?id=32824&action=edit
Ant verson screenshot --version 1.7.1
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 58038] $ parsing problem
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58038
Stefan Bodewig <bo...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS| |All
Status|NEW |RESOLVED
Resolution|--- |WONTFIX
--- Comment #2 from Stefan Bodewig <bo...@apache.org> ---
This is Ant's documented default behaviour
http://ant.apache.org/manual/properties.html
You'll have to double each $ sign you want to keep. There is no workaround for
this except for custom PropertyHelpers which I think haven't been available for
1.7.1 (a long time ago, my memory may be failing on me).
--
You are receiving this mail because:
You are the assignee for the bug.