You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2004/12/29 23:38:15 UTC

DO NOT REPLY [Bug 32862] - Translate task does not skip the esc chars

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