title: Running Closure Compiler to get warning messages
body: <p>I'm using Closure Compiler running on my local machine to generate client files. I'm also using the online closure tool at <a href="http://closure-compiler.appspot.com/home" rel="nofollow noreferrer">http://closure-compiler.appspot.com/home</a> to check my work: I paste my JavaScript code, press compile and if there's a warning the compiler shows me the warnings with the actual lines and line numbers.</p>
  
  <p>I'm wondering if it's possible to get the same output using the local version of Closure Compiler. This is the code I use to compile the files and get the compiled JavaScript but this time, I want the warnings:</p>
  
  <pre><code>System.IO.File.WriteAllText(FileNameInput, TheJS);
  
  string JavaArgument = "-jar ClosureCompiler/compiler.jar --js ClosureCompiler/initial" + FileNameSuffix + ".js --js_output_file ClosureCompiler/compiled" + FileNameSuffix + ".js --compilation_level ADVANCED_OPTIMIZATIONS --externs ExternalFiles/JqueryExtern.js";
  
  System.Diagnostics.Process clientProcess = new System.Diagnostics.Process();
  
  clientProcess.StartInfo.FileName = "java.exe";
  clientProcess.StartInfo.Arguments = JavaArgument;
  clientProcess.StartInfo.CreateNoWindow = true;
  clientProcess.StartInfo.UseShellExecute = false;
  clientProcess.StartInfo.WorkingDirectory = HttpRuntime.AppDomainAppPath;
  
  clientProcess.Start();
  clientProcess.WaitForExit();
  
  string TheOutputScript = System.IO.File.ReadAllText(FileNameOutput);
  </code></pre>
  
  <p>What do I need to change?</p>