diff options
author | jwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-07-25 08:13:58 +0000 |
---|---|---|
committer | jwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-07-25 08:13:58 +0000 |
commit | 991d660b95e9538308b0cc83eff319d584cb1b7a (patch) | |
tree | e0dfd6e4c983159cda0476f612ddfb34cbe1ef14 /Tools | |
parent | 452e6c77beecbcc92c89cfa241857c2f5bd534bf (diff) | |
download | edk2-platforms-991d660b95e9538308b0cc83eff319d584cb1b7a.tar.xz |
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
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/Source/GenBuild/org/tianocore/build/ModuleBuildFileGenerator.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Tools/Source/GenBuild/org/tianocore/build/ModuleBuildFileGenerator.java b/Tools/Source/GenBuild/org/tianocore/build/ModuleBuildFileGenerator.java index 08f49478ae..3e775e514e 100644 --- a/Tools/Source/GenBuild/org/tianocore/build/ModuleBuildFileGenerator.java +++ b/Tools/Source/GenBuild/org/tianocore/build/ModuleBuildFileGenerator.java @@ -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
|