forked from facebook/buck
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDEFS
56 lines (54 loc) · 1.26 KB
/
DEFS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# This is a quick hack to make it so that all Java rules build using Java 7.
# TODO(mbolin): Find a less hacky way to do this, likely something in .buckconfig.
original_java_library = java_library
def java_library(
name,
srcs=[],
resources=[],
export_deps=False,
source='7',
target='7',
proguard_config=None,
deps=[],
visibility=[],
):
original_java_library(
name=name,
srcs=srcs,
resources=resources,
export_deps=export_deps,
source=source,
target=target,
proguard_config=proguard_config,
deps=deps,
visibility=visibility,
)
original_java_test = java_test
def java_test(
name,
srcs=[],
labels=[],
resources=[],
source='7',
target='7',
vm_args=[],
source_under_test=[],
contacts=[],
deps=[],
visibility=[],
):
original_java_test(
name=name,
srcs=srcs,
labels=labels,
resources=resources,
source=source,
target=target,
# Add -XX:-UseSplitVerifier by default to work around:
# http://arihantwin.blogspot.com/2012/08/getting-error-illegal-local-variable.html
vm_args=['-XX:-UseSplitVerifier'] + vm_args,
source_under_test=source_under_test,
contacts=contacts,
deps=deps,
visibility=visibility,
)