Community
Participate
Working Groups
Build: N20050506 When using the batch compiler -log option with a file name that has no extension at all, like my_output, the resulting file is empty, and the console is not fed either. Note: behavior with my my_output.txt, my_output.xml and my_output.other_ext all OK (that is, log into the file, as XML for .xml files and text for others, and print the log as text to console). (Trivial) workaround is to always use log file names that have an extension.
Fixed and released in HEAD. Changes in org.eclipse.jdt.internal.compiler.batch.Main.Logger.setLog(String). No test added for the batch compiler.
Created attachment 21104 [details] Batch test case This batch test case shows that the log option now works as expected with .xml, .txt and no extension files. (This patch also includes test cases related to #92398 and superceedes the matching patches there.)
Verified for 3.1 M7 using build I20050512-2035 + jdt.core HEAD.
Created attachment 21415 [details] Batch test case Supersedes previous patch because of changes initiated for https://bugs.eclipse.org/bugs/show_bug.cgi?id=92398. Note that only part of it directly addresses this bug.