소스 검색

Fix bug #363587
* Driver.cs: Use Report.Message for emitting messages.
* Report.cs (AssembleFile): Honor 'quiet'.
Patch from Andrea Carlo Ornstein <[email protected]>

svn path=/trunk/mcs/; revision=96334

Ankit Jain 18 년 전
부모
커밋
18f6ec7b66
3개의 변경된 파일11개의 추가작업 그리고 2개의 파일을 삭제
  1. 7 0
      mcs/ilasm/ChangeLog
  2. 2 2
      mcs/ilasm/Driver.cs
  3. 2 0
      mcs/ilasm/Report.cs

+ 7 - 0
mcs/ilasm/ChangeLog

@@ -1,3 +1,10 @@
+2008-02-21  Ankit Jain  <[email protected]>
+
+	Fix bug #363587
+	* Driver.cs: Use Report.Message for emitting messages.
+	* Report.cs (AssembleFile): Honor 'quiet'.
+	Patch from Andrea Carlo Ornstein <[email protected]>
+
 2008-02-07  Gert Driesen  <[email protected]>
 
 	* Driver.cs: Removed crazy logic prevent debug symbol from being

+ 2 - 2
mcs/ilasm/Driver.cs

@@ -33,7 +33,7 @@ namespace Mono.ILASM {
                         DriverMain driver = new DriverMain (args);
                         if (!driver.Run ())
                                 return 1;
-                        Console.WriteLine ("Operation completed successfully");
+                        Report.Message ("Operation completed successfully");
                         return 0;
                 }
 
@@ -104,7 +104,7 @@ namespace Mono.ILASM {
 
                                 try {
 					if (sn != null) {
-						Console.WriteLine ("Signing assembly with the specified strongname keypair");
+						Report.Message ("Signing assembly with the specified strongname keypair");
 						return Sign (output_file);
 					}
                                 } catch {

+ 2 - 0
mcs/ilasm/Report.cs

@@ -44,6 +44,8 @@ namespace Mono.ILASM {
                 public static void AssembleFile (string file, string listing,
                                           string target, string output)
                 {
+                        if (quiet)
+                                return;
                         Console.WriteLine ("Assembling '{0}' , {1}, to {2} --> '{3}'", file,
                                            GetListing (listing), target, output);
                         Console.WriteLine ();