Bug 1289467 part 1. Example codegen generation should print out which files it generated, so it's easy to examine them. r=qdot
authorBoris Zbarsky <bzbarsky@mit.edu>
Wed, 27 Jul 2016 11:05:35 -0400
changeset 306902 f20718aff21591372d40a336c34bd8181dde950f
parent 306901 9e9fcc1feac2dc2717bbb051e6c48e78cf80251a
child 306903 22f5e81b758715d7396272bb786deb2ea0e19c68
push id30891
push usercbook@mozilla.com
push dateThu, 28 Jul 2016 15:52:34 +0000
treeherderautoland@54eb32559af3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersqdot
bugs1289467
milestone50.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1289467 part 1. Example codegen generation should print out which files it generated, so it's easy to examine them. r=qdot
dom/bindings/mozwebidlcodegen/__init__.py
--- a/dom/bindings/mozwebidlcodegen/__init__.py
+++ b/dom/bindings/mozwebidlcodegen/__init__.py
@@ -302,17 +302,21 @@ class WebIDLCodegenManager(LoggingMixin)
         return result
 
     def generate_example_files(self, interface):
         """Generates example files for a given interface."""
         from Codegen import CGExampleRoot
 
         root = CGExampleRoot(self.config, interface)
 
-        return self._maybe_write_codegen(root, *self._example_paths(interface))
+        example_paths = self._example_paths(interface)
+        for path in example_paths:
+            print "Generating %s" % path
+
+        return self._maybe_write_codegen(root, *example_paths)
 
     def _parse_webidl(self):
         import WebIDL
         from Configuration import Configuration
 
         self.log(logging.INFO, 'webidl_parse',
                  {'count': len(self._input_paths)},
                  'Parsing {count} WebIDL files.')