src/java/fr/jayasoft/ivy/Ivy.java
/**
     * Resolves the module identified by the given mrid with its dependencies if transitive is set to true. 
     */
Resolves the module identified by the given mrid with its dependencies if transitive is set to true.
Resolves the module identified by the given mrid with its dependencies if transitive is set to true .
public ResolveReport resolve(final ModuleRevisionId mrid, String[] confs, boolean transitive, boolean changing, File cache, Date date, boolean validate, boolean useCacheOnly, boolean useOrigin, Filter artifactFilter) throws ParseException, IOException {
		DefaultModuleDescriptor md;
		if (confs.length == 1 && confs[0].equals("*")) {
			ResolvedModuleRevision rmr = findModule(mrid);
			if (rmr == null) {
				md = DefaultModuleDescriptor.newCallerInstance(mrid, confs, transitive, changing);
				return new ResolveReport(md){
					public boolean hasError() {
						return true;
					}
					public List getProblemMessages() {
						return Arrays.asList(new String[] {"module not found: "+mrid});
					}
				};
			} else {
				confs = rmr.getDescriptor().getConfigurationsNames();
				md = DefaultModuleDescriptor.newCallerInstance(ModuleRevisionId.newInstance(mrid, rmr.getId().getRevision()), confs, transitive, changing);
			}
		} else {
			md = DefaultModuleDescriptor.newCallerInstance(mrid, confs, transitive, changing);
		}
		return resolve(md, new String[] {"*"}, cache, date, validate, useCacheOnly, true, useOrigin, true, true, artifactFilter);
	}
public ResolveReport resolve ( final ModuleRevisionId mrid , String [ ] confs , boolean transitive , boolean changing , File cache , Date date , boolean validate , boolean useCacheOnly , boolean useOrigin , Filter artifactFilter ) throws ParseException , IOException { DefaultModuleDescriptor md ; if ( confs . length == 1 && confs [ 0 ] . equals ( "*" ) ) { ResolvedModuleRevision rmr = findModule ( mrid ) ; if ( rmr == null ) { md = DefaultModuleDescriptor . newCallerInstance ( mrid , confs , transitive , changing ) ; return new ResolveReport ( md ) { public boolean hasError ( ) { return true ; } public List getProblemMessages ( ) { return Arrays . asList ( new String [ ] { "module not found: " + mrid } ) ; } } ; } else { confs = rmr . getDescriptor ( ) . getConfigurationsNames ( ) ; md = DefaultModuleDescriptor . newCallerInstance ( ModuleRevisionId . newInstance ( mrid , rmr . getId ( ) . getRevision ( ) ) , confs , transitive , changing ) ; } } else { md = DefaultModuleDescriptor . newCallerInstance ( mrid , confs , transitive , changing ) ; } return resolve ( md , new String [ ] { "*" } , cache , date , validate , useCacheOnly , true , useOrigin , true , true , artifactFilter ) ; }
Resolves the module identified by the given mrid with its dependencies if transitive is set to true.
Resolves the module identified by the given mrid with its dependencies if transitive is set to true .