ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 32862] - Translate task does not skip the esc chars
Date Wed, 29 Dec 2004 22:38:15 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32862>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32862


antoine@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Additional Comments From antoine@apache.org  2004-12-29 23:38 -------
<echoproperties/> is not appropriate to generate resource bundles for the
translate task.

Property files contain escape sequences in values, and they have all non ascii
characters represented as \u escapes. Resource bundles can be encoded in any
encoded and are not limited to ascii values.

you can use the echo or the concat task to create your resource bundle if you
know in advance the properties you want to replace.

try this
<echo file="${dist}/ant/ant.properties">
#generated resource bundle
TOMCAT.GLOBAL.JDBC.DRIVER=${TOMCAT.GLOBAL.JDBC.DRIVER}
# other properties you need
TOMCAT.DATABASE.NAME=${TOMCAT.DATABASE.NAME}
</echo>

instead of <echoproperties/>
I am closing your bug report as invalid.

Cheers,
Antoine

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message