diff options
author | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2015-06-15 18:38:53 +0300 |
---|---|---|
committer | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2015-06-15 18:38:53 +0300 |
commit | 48d2982670e7751f8b07435e1e4a3ec201171da2 (patch) | |
tree | c9b0f1775a2c404593392777a26b248fa4b45989 /main/src/addins/MonoDevelop.Autotools | |
parent | 749a8267913f6556a05ffd23d4d969c7ef55e484 (diff) | |
parent | c6e26973775e0125ac215397710f2f4b04f61197 (diff) |
Merge remote-tracking branch 'origin/master' into roslyn
Diffstat (limited to 'main/src/addins/MonoDevelop.Autotools')
-rw-r--r-- | main/src/addins/MonoDevelop.Autotools/SolutionDeployer.cs | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/main/src/addins/MonoDevelop.Autotools/SolutionDeployer.cs b/main/src/addins/MonoDevelop.Autotools/SolutionDeployer.cs index 16d1bd6081..52b20478f1 100644 --- a/main/src/addins/MonoDevelop.Autotools/SolutionDeployer.cs +++ b/main/src/addins/MonoDevelop.Autotools/SolutionDeployer.cs @@ -261,15 +261,11 @@ namespace MonoDevelop.Autotools string fileName = Path.Combine (solution_dir, "autogen.sh"); - StreamWriter writer = new StreamWriter( fileName ); - - Stream stream = context.GetTemplateStream ("autogen.sh.template"); - StreamReader reader = new StreamReader(stream); - - templateEngine.Process(reader, writer); - - reader.Close(); - writer.Close(); + using (StreamWriter writer = new StreamWriter( fileName )) + using (Stream stream = context.GetTemplateStream ("autogen.sh.template")) + using (StreamReader reader = new StreamReader (stream)) { + templateEngine.Process (reader, writer); + } context.AddGeneratedFile (fileName); |