Skip to content

Commit

Permalink
Remove some sysouts, also allow DependencyInstaller to resolve snapsh…
Browse files Browse the repository at this point in the history
…ots if no non-snapshot versions are found.
  • Loading branch information
lincolnthree committed Apr 25, 2013
1 parent 04ca738 commit 7ace7bb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,6 @@ public void visit(Addon instance)
addon.setRepository(repository);
addon.setStatus(AddonStatus.LOADED);

System.out.println("Loaded module " + module);
tree.depthFirst(new MarkLoadedAddonsDirtyVisitor(tree, addon));

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ else if (existingManaged != null)
List<Coordinate> versions = deps.resolveAvailableVersions(DependencyQueryBuilder.create(
dependency.getCoordinate()).setFilter(new NonSnapshotDependencyFilter()));

if (versions.isEmpty())
versions = deps.resolveAvailableVersions(DependencyQueryBuilder.create(
dependency.getCoordinate()));

if (!versions.isEmpty())
toInstall = DependencyBuilder.create(dependency).setVersion(
versions.get(versions.size() - 1).getVersion());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,5 @@ public void initialize(@Observes PostStartup event)
HintsLookup hints = new HintsLookup(environment);
hints.setInputType(FileResource.class, InputTypes.FILE_PICKER);
hints.setInputType(DirectoryResource.class, InputTypes.FILE_PICKER);
System.out.println("Initialized Resources InputType Hints");
}
}

0 comments on commit 7ace7bb

Please sign in to comment.