File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -255,7 +255,16 @@ abstract class CompilerTest extends DottyTest {
255
255
processFileDir(sourceFile, { sf =>
256
256
if (extensionsToCopy.contains(sf.extension)) {
257
257
dest.parent.jfile.mkdirs
258
- FileManager .copyFile(sourceFile.jfile, dest.jfile)
258
+ println(" copying " + sf.toString + " with default codec " + sf.creationCodec)
259
+ val contents = try { sf.slurp } catch {
260
+ case e : Throwable => println(" ==================\n =======BOOM=======\n ==================\n failed slurping file " + sf.toString); " "
261
+ }
262
+ dest.toFile.writeAll(" /* ==========================================\n " ,
263
+ " * ========= AUTOMATICALLY GENERATED ========\n " ,
264
+ " * ========= DO NOT EDIT THIS FILE ==========\n " ,
265
+ " * ==========================================\n " ,
266
+ " * Original: " + sf.toString + " */\n\n " ,
267
+ contents)
259
268
} else {
260
269
log(s " WARNING: ignoring $sf" )
261
270
}
You can’t perform that action at this time.
0 commit comments