Buck: Make gwt_module() rule more pythonic

gwt_module() rule is a normal java_library() rule with optional
xml description of the GWT module included in resources list. The
current implementation of this rule maps hard coded all parameters
from gwt_module() to java_library().  This is not future proof, as
java_library() may become additional parameters, like provided_deps
recently and the implementation must be extended.

This change provides alternative implementation that copy parameter
list in generic way, adding GWT xml to resources list on the fly.

Inspired-By: Michael Bolin <mbolin@fb.com>
Change-Id: I7f1ee1d6b3e142f14a199e80dea4e91817b5c7d5
1 file changed