The documentation had an example rule for a hypothetical compile of a .java file that would compile down to a .class file, but the example began with: rule '.java' => ... Since the extension after 'rule' is supposed to be the target extension rather than the source extension, it should begin with: rule '.class' => ...
Removed duplications in Rake::Backtrace::SUPPRESSED_PATHS
Made sure both areas of code were passing the same arguments to their prerequisites. Made the similar code look similar through some refactoring of variable names.
…ontext. Running rake with tracing on and executing multitasks would show a trace with multiple traces on a single line and other lines having multiple CRs. This is because #trace used IO#puts behind the scenes. IO#puts first calls #write with the string, followed by another #write with the CR. Because of the gap in-between calls, another thread could sneak in a CR or another string. The fix is to make sure calls to trace create a single string with a CR appended before calling IO#print. This will output a single string with a trailing CR in thread-safe way. Example output showing the error: ** Execute 98** Execute 68** Execute 69 ** Execute 74 ** Execute 78** Execute 81 ** Execute 84** Execute 100 ** Execute 89