Add -log-filter option to the zinc task

Review Request #2315 — Created June 3, 2015 and submitted — Latest diff uploaded

zundel
pants
zundel/zinc-add-log-filter
1612, 1631
6b00b1a...
pants-reviews
fkorotkov, stuhood

Add the -log-filter option to the zinc task to perform the same function as -Tnowarnregex for the Compiler class used under jmake

Tested by putting my updated zinc jar into place in BUILD.tools and updating pants.ini with:

+[compile.zinc-java]
+enabled: True
+
+args: [
+    '-fork-java',
+    '-log-filter', '.*X500.*',
+    '-java-only', '-C-encoding', '-CUTF-8',
+  ]

Then compiling the simple hello world target as modified in https://github.com/pantsbuild/pants/issues/1612. The lines containing the string X500 were omitted from the output.

Loading...