Skip to content
This repository has been archived by the owner on Dec 13, 2019. It is now read-only.

Commit

Permalink
Fix ivy resolve to handle those cases where no dependencies are resol…
Browse files Browse the repository at this point in the history
…ved.
  • Loading branch information
John Sirois committed Feb 13, 2012
1 parent 7093918 commit d5bde6e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/python/twitter/pants/tasks/ivy_resolve.py
Expand Up @@ -112,11 +112,12 @@ def is_classpath(t):
if changed_deps:
self._ivycachepath(self._ivy_xml, self._classpath_file, *targets)

with self._cachepath(self._classpath_file) as classpath:
with self.context.state('classpath', []) as cp:
for path in classpath:
for conf in self._confs:
cp.append((conf, path.strip()))
if os.path.exists(self._classpath_file):
with self._cachepath(self._classpath_file) as classpath:
with self.context.state('classpath', []) as cp:
for path in classpath:
for conf in self._confs:
cp.append((conf, path.strip()))

create_jardeps_for = self.context.products.isrequired('jar_dependencies')
if create_jardeps_for:
Expand Down

0 comments on commit d5bde6e

Please sign in to comment.