[antlr-interest] PreservingFileWriter
Bogdan Mitu
bogdan_mt at yahoo.com
Tue Jun 11 02:14:16 PDT 2002
Hi Ric,
The new PreservingFileWriter (java version) is not always deleting the
temporary files. I use WinXP, jdk1.3/1.4, ANTLR 2.7.2a1/a2. It seems that
the statement tmp_file.deleteOnExit(); is not enough. I added code to
explicitely delete tmp files at the end, and it's OK for me now:
finally {
...
if( tmp_file != null )
{
try { tmp_file.delete(); }
catch( Exception e ) { ; }
}
}
Attached is the source code.
Regards,
Bogdan
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list