ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 52030] Javac Task looses source files when forked and special characters exists in the class name
Date Mon, 31 Oct 2011 12:15:56 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=52030

--- Comment #5 from Divan Mostert <divan.mostert@c24.biz> 2011-10-31 12:15:56 UTC ---
It does indeed look like the file was correctly picked up from using
@/tmp/files. However, the new JVM  does seem to ignore the encoding setting
when it is trying access the file at the given location.

I had to force writing out the Java classes with a specific encoding like so:
writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file),
Charset.forName("UTF-8")));

You'd have to be doing the same/similar when reading files in.

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

Mime
View raw message