Skip to content

Commit

Permalink
Fix java_antlr_library target
Browse files Browse the repository at this point in the history
Testing Done:
with this local changes on my laptop, the failing target now passes.

[tw-mbp13-tdesai birdcage]$ ./pants goal list ./eventbus/thrift/src/main/antlr/com/twitter/eventbus/thrift/tql/BUILD::
eventbus/thrift/src/main/antlr/com/twitter/eventbus/thrift/tql/BUILD:tql
[tw-mbp13-tdesai birdcage]$

Bugs closed: 215

Reviewed at https://rbcommons.com/s/twitter/r/503/
  • Loading branch information
tejal29 authored and Tejal Desai committed Jun 12, 2014
1 parent 8b3d4d5 commit 19a44f4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/python/pants/backend/codegen/targets/java_antlr_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ def __init__(self,
name,
sources,
provides=None,
dependencies=None,
excludes=None,
compiler='antlr3',
package=None):
package=None,
**kwargs):

"""
:param string name: The name of this target, which combined with this
Expand All @@ -42,12 +42,12 @@ def __init__(self,
Are spread among different files, this must be set as the package cannot be inferred.
"""

ExportableJvmLibrary.__init__(self,
name,
sources,
provides,
dependencies,
excludes)
super(JavaAntlrLibrary, self).__init__(self,
name=name,
sources=sources,
provides=provides,
excludes=excludes,
**kwargs)
self.add_labels('codegen')

if compiler not in ('antlr3', 'antlr4'):
Expand Down

0 comments on commit 19a44f4

Please sign in to comment.