bazel: put source jars in the same package.
This lets us associate the jar and the src jar in the java_import() declaration, so IDE plugins could understand how artifacts and source are connected. Classpath generation for Eclipse IDE was adjusted to reflect the changed location of the source artifact. Change-Id: I2cf9c6db3ad4b648457f2ac8d380c3771b4a3ee2
This commit is contained in:

committed by
David Ostrovsky

parent
9875c00ed9
commit
c1a6976b50
@@ -27,12 +27,12 @@ gwt_module(
|
||||
genrule2(
|
||||
name = 'jgit_edit_src',
|
||||
cmd = ' && '.join([
|
||||
'unzip -qd $$TMP $(location @jgit//src) ' +
|
||||
'unzip -qd $$TMP $(location @jgit//jar:src) ' +
|
||||
'org/eclipse/jgit/diff/Edit.java',
|
||||
'cd $$TMP',
|
||||
'zip -Dq $$ROOT/$@ org/eclipse/jgit/diff/Edit.java',
|
||||
]),
|
||||
tools = ['@jgit//src'],
|
||||
tools = ['@jgit//jar:src'],
|
||||
outs = [ 'edit.srcjar' ],
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user