mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-31 12:24:10 -08:00
TeaVMTool: re-use already created file
This commit is contained in:
parent
f7f99b3c9f
commit
0068198abd
|
@ -460,7 +460,7 @@ public class TeaVMTool {
|
||||||
generatedFiles.add(outputFile);
|
generatedFiles.add(outputFile);
|
||||||
|
|
||||||
if (targetType == TeaVMTargetType.JAVASCRIPT) {
|
if (targetType == TeaVMTargetType.JAVASCRIPT) {
|
||||||
try (OutputStream output = new FileOutputStream(new File(targetDirectory, outputName), true)) {
|
try (OutputStream output = new FileOutputStream(outputFile, true)) {
|
||||||
try (Writer writer = new OutputStreamWriter(output, StandardCharsets.UTF_8)) {
|
try (Writer writer = new OutputStreamWriter(output, StandardCharsets.UTF_8)) {
|
||||||
additionalJavaScriptOutput(writer);
|
additionalJavaScriptOutput(writer);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user