Skip to content

Commit

Permalink
Revert changes to depmap, since it needs different behavior.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stu Hood committed Feb 16, 2015
1 parent c52c5aa commit 84e74c6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/python/pants/backend/jvm/tasks/depmap.py
Expand Up @@ -273,10 +273,12 @@ def get_target_type(target):
return Depmap.SourceRootTypes.SOURCE

def get_transitive_jars(jar_lib):
jars = []
if ivy_info:
jars = map(lambda m: m.ref, ivy_info.get_modules_for_jar_library(jar_lib, memo=ivy_jar_memo))
return OrderedSet(jars)
if not ivy_info:
return OrderedSet()
transitive_jars = OrderedSet()
for jar in jar_lib.jar_dependencies:
transitive_jars.update(ivy_info.get_jars_for_ivy_module(jar, memo=ivy_jar_memo))
return transitive_jars

info = {
'targets': [],
Expand Down

0 comments on commit 84e74c6

Please sign in to comment.