Skip to content

Commit

Permalink
Fix rule type propagation
Browse files Browse the repository at this point in the history
  • Loading branch information
Gautam Korlam committed Jun 23, 2017
1 parent 03e1038 commit 04a7a28
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ final class JavaLibraryRuleComposer extends JvmBuckRuleComposer {
}

new JavaLibraryRule(
ruleType,
src(target),
["PUBLIC"],
deps,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ final class JavaTestRuleComposer extends JvmBuckRuleComposer {
}

new JavaTestRule(
ruleType,
test(target),
["PUBLIC"],
deps,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import com.uber.okbuck.core.model.jvm.TestOptions
class JavaLibraryRule extends JavaRule {

JavaLibraryRule(
RuleType ruleType,
String name,
List<String> visibility,
List<String> deps,
Expand All @@ -19,8 +20,7 @@ class JavaLibraryRule extends JavaRule {
List<String> postprocessClassesCommands,
List<String> options,
List<String> testTargets,
Set<String> extraOpts,
RuleType ruleType = RuleType.JAVA_LIBRARY) {
Set<String> extraOpts) {

super(
ruleType,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class JavaTestRule extends JavaRule {
private static final List<String> JAVA_TEST_LABELS = ['unit', 'java']

JavaTestRule(
RuleType ruleType,
String name,
List<String> visibility,
List<String> deps,
Expand All @@ -22,7 +23,6 @@ class JavaTestRule extends JavaRule {
List<String> options,
TestOptions testOptions,
Set<String> extraOpts,
RuleType ruleType = RuleType.JAVA_TEST,
List<String> testLabels = JAVA_TEST_LABELS) {
super(
ruleType,
Expand Down

0 comments on commit 04a7a28

Please sign in to comment.