08ea694499
Cross cell support in Buck is considered as experimental feature, with number of open issues: [1], [2], [3]. Moreover, to make Maven Central machinery work, it was needed to create symbolic links in source tree. That broke `buck targets` feature. Remove it for now, and re-consider to add it later. [1] https://github.com/facebook/buck/issues/656 [2] https://github.com/facebook/buck/issues/658 [3] https://github.com/facebook/buck/issues/717 Bug: Issue 3954 Change-Id: Ic621a07771f926001df181b46b2169e214ce208a
65 lines
1.3 KiB
Python
65 lines
1.3 KiB
Python
SRC = 'src/main/java/org/eclipse/jgit/'
|
|
|
|
gwt_module(
|
|
name = 'client',
|
|
srcs = [
|
|
SRC + 'diff/Edit_JsonSerializer.java',
|
|
SRC + 'diff/ReplaceEdit.java',
|
|
],
|
|
gwt_xml = SRC + 'JGit.gwt.xml',
|
|
deps = [
|
|
'//lib:gwtjsonrpc',
|
|
':Edit',
|
|
],
|
|
provided_deps = ['//lib/gwt:user'],
|
|
visibility = ['PUBLIC'],
|
|
)
|
|
|
|
gwt_module(
|
|
name = 'Edit',
|
|
srcs = [':jgit_edit_src'],
|
|
deps = [':edit_src'],
|
|
visibility = ['PUBLIC'],
|
|
)
|
|
|
|
prebuilt_jar(
|
|
name = 'edit_src',
|
|
binary_jar = ':jgit_edit_src',
|
|
)
|
|
|
|
genrule(
|
|
name = 'jgit_edit_src',
|
|
cmd = 'unzip -qd $TMP $(location //lib/jgit/org.eclipse.jgit:jgit_src) ' +
|
|
'org/eclipse/jgit/diff/Edit.java;' +
|
|
'cd $TMP;' +
|
|
'zip -Dq $OUT org/eclipse/jgit/diff/Edit.java',
|
|
out = 'edit.src.zip',
|
|
)
|
|
|
|
java_library(
|
|
name = 'server',
|
|
srcs = [
|
|
SRC + 'diff/EditDeserializer.java',
|
|
SRC + 'diff/ReplaceEdit.java',
|
|
SRC + 'internal/storage/file/WindowCacheStatAccessor.java',
|
|
SRC + 'lib/ObjectIdSerialization.java',
|
|
],
|
|
deps = [
|
|
'//lib:gson',
|
|
'//lib/jgit/org.eclipse.jgit:jgit',
|
|
],
|
|
visibility = ['PUBLIC'],
|
|
)
|
|
|
|
java_test(
|
|
name = 'jgit_patch_tests',
|
|
srcs = glob(['src/test/java/**/*.java']),
|
|
deps = [
|
|
':server',
|
|
'//lib/jgit/org.eclipse.jgit:jgit',
|
|
'//lib:junit',
|
|
],
|
|
source_under_test = [':server'],
|
|
visibility = ['//tools/eclipse:classpath'],
|
|
)
|