Claudio Miranda
unread,Aug 11, 2009, 10:32:13 AM8/11/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dev-ivybeans
I want to sort the libraries as specified on issue #52
Does the code below play anything useful ? I tried to sort it, but
nothing happened
Looking at the source code, class
com.googlecode.ivybeans.module.nodes.ScopeNode.ScopesChildren (inner
class)
line 96
final Collection<ArtifactInfo> artifacts =
resolvedIvyLibrary.getArtifacts();
I did
Collections.sort((List<ArtifactInfo>) artifacts, new
Comparator<ArtifactInfo>() {
public int compare(ArtifactInfo o1, ArtifactInfo o2) {
return o1.getName().compareTo(o2.getName());
}
});
Does anyone have a hint where should I change the code to display the
libraries, sorted by name ?
Thanks
Claudio