mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-30 00:54:06 +02:00
Changed the way to save generated module build.xml to avoid incorrect file name generated on Linux
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1091 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
452e6c77be
commit
991d660b95
@ -16,6 +16,8 @@ import java.util.LinkedHashMap;
|
|||||||
import java.util.LinkedHashSet;
|
import java.util.LinkedHashSet;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
import java.io.FileOutputStream;
|
||||||
|
import java.io.OutputStreamWriter;
|
||||||
|
|
||||||
import javax.xml.parsers.DocumentBuilder;
|
import javax.xml.parsers.DocumentBuilder;
|
||||||
import javax.xml.parsers.DocumentBuilderFactory;
|
import javax.xml.parsers.DocumentBuilderFactory;
|
||||||
@ -211,7 +213,8 @@ public class ModuleBuildFileGenerator {
|
|||||||
// generate all directory path
|
// generate all directory path
|
||||||
//
|
//
|
||||||
(new File(file.getParent())).mkdirs();
|
(new File(file.getParent())).mkdirs();
|
||||||
Result result = new StreamResult(file);
|
FileOutputStream outputStream = new FileOutputStream(file);
|
||||||
|
Result result = new StreamResult(new OutputStreamWriter(outputStream));
|
||||||
|
|
||||||
//
|
//
|
||||||
// Write the DOM document to the file
|
// Write the DOM document to the file
|
||||||
|
Loading…
x
Reference in New Issue
Block a user