ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Damberger <Michael.Damber...@web.de>
Subject ANTLR task produces illegal unicode escape sequence
Date Thu, 12 Sep 2002 10:49:30 GMT
antlr2.5 puts the path of the grammar-file that was passed as a command line arg
into a javadoc comment of the generated sourcefile,
e.g.:
/*
 * ANTLR-generated file resulting from grammar ...\unc.g
 */

the problem is that on windows systems using backslashes (from java.io.File.toString())
leads to compiler failure in the generated source when \u is used (illegal unicode escape
sequence) 
I don't know if this problem is fixed in newer antlr-versions,
but as I'm forced to use version 2.5 it would be nice to have a little change in
org.apache.tools.ant.taskdefs.optional.ANTLR.execute()
->
commandline.createArgument().setValue(target.toString().replace('\\','/'));


Michael



______________________________________________________________________________
Die clevere Geldreserve: der DiBa-Privatkredit. Funktioniert wie ein Dispo, 
ist aber viel g√ľnstiger! Alle Infos: http://diba.web.de/?mc=021104


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


Mime
View raw message