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:
jwang36 2006-07-25 08:13:58 +00:00
parent 452e6c77be
commit 991d660b95
1 changed files with 4 additions and 1 deletions

View File

@ -16,6 +16,8 @@ import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.Map;
import java.util.Set;
import java.io.FileOutputStream;
import java.io.OutputStreamWriter;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
@ -211,7 +213,8 @@ public class ModuleBuildFileGenerator {
// generate all directory path
//
(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