src/java/fr/jayasoft/ivy/ant/IvyBuildList.java
/**
     * Adds the current node to the toKeep collection and then processes the each of the direct dependencies
     * of this node that appear in the moduleIdMap (indicating that the dependency is part of this BuildList)
     *
     * @param node the node to be processed
     * @param toKeep the set of ModuleDescriptors that should be kept
     * @param moduleIdMap reference mapping of moduleId to ModuleDescriptor that are part of the BuildList
     */
Adds the current node to the toKeep collection and then processes the each of the direct dependencies
of this node that appear in the moduleIdMap (indicating that the dependency is part of this BuildList)

@param node the node to be processed
@param toKeep the set of ModuleDescriptors that should be kept
@param moduleIdMap reference mapping of moduleId to ModuleDescriptor that are part of the BuildList
Adds the current node to the toKeep collection and then processes the each of the direct dependencies of this node that appear in the moduleIdMap ( indicating that the dependency is part of this BuildList ) @param node the node to be processed @param toKeep the set of ModuleDescriptors that should be kept @param moduleIdMap reference mapping of moduleId to ModuleDescriptor that are part of the BuildList
private void processFilterNodeFromRoot(ModuleDescriptor node, Set toKeep, Map moduleIdMap) {
        toKeep.add(node);
        DependencyDescriptor[] deps = node.getDependencies();
        for (int i=0; i<deps.length; i++) {
            ModuleId id = deps[i].getDependencyId();
            if (moduleIdMap.get(id) != null) {
                processFilterNodeFromRoot((ModuleDescriptor) moduleIdMap.get(id), toKeep, moduleIdMap);
            }
        }
    }
private void processFilterNodeFromRoot ( ModuleDescriptor node , Set toKeep , Map moduleIdMap ) { toKeep . add ( node ) ; DependencyDescriptor [ ] deps = node . getDependencies ( ) ; for ( int i = 0 ; i < deps . length ; i ++ ) { ModuleId id = deps [ i ] . getDependencyId ( ) ; if ( moduleIdMap . get ( id ) != null ) { processFilterNodeFromRoot ( ( ModuleDescriptor ) moduleIdMap . get ( id ) , toKeep , moduleIdMap ) ; } } }
Adds the current node to the toKeep collection and then processes the each of the direct dependencies
 of this node that appear in the moduleIdMap (indicating that the dependency is part of this BuildList)
Adds the current node to the toKeep collection and then processes the each of the direct dependencies of this node that appear in the moduleIdMap ( indicating that the dependency is part of this BuildList )