title: How to display all java compiler warnings in ant script?
body: <p>I have two fold questions, </p>
  
  <ol>
  <li>Are all the warning displayed in Eclipse under Problems view from Java compiler?</li>
  <li>If so, how can I list them with javac ant task? I have tried -Xlint:all and -Xmaxwarns 10000 as described <a href="https://stackoverflow.com/questions/12213923/java-ant-script-does-not-show-warnings">here</a> but no luck, it just display some of them but not all I see in eclipse.</li>
  </ol>
  
  <p>I need this to fail a build if warnings go up with TeamCity, if you have better and easier suggestions please share.</p>
  
  <p>Thanks.</p>