ensureResolved(isHaltonfailure(), isUseOrigin(), isTransitive(), getOrganisation(), getModule(), getProperty(_conf, ivy, "ivy.resolved.configurations"));
if (!orgAndModSetManually) { ensureResolved(isHaltonfailure(), isUseOrigin(), isTransitive(), getOrganisation(), getModule(), getProperty(_conf, ivy, "ivy.resolved.configurations")); }
    protected void prepareAndCheck() {        Ivy ivy = getIvyInstance();                _organisation = getProperty(_organisation, ivy, "ivy.organisation");        _module = getProperty(_module, ivy, "ivy.module");        if (isInline()) {        	_conf = _conf == null ? "*" : _conf;            if (_organisation == null) {                throw new BuildException("no organisation provided for ivy cache task in inline mode: It can either be set explicitely via the attribute 'organisation' or via 'ivy.organisation' property");            }            if (_module == null) {                throw new BuildException("no module name provided for ivy cache task in inline mode: It can either be set explicitely via the attribute 'module' or via 'ivy.module' property");            }        	String[] toResolve = getConfsToResolve(getOrganisation(), getModule()+"-caller", _conf, true);        	if (toResolve.length > 0) {        		        		Message.verbose("using inline mode to resolve "+getOrganisation()+" "+getModule()+" "+getRevision()+" ("+StringUtils.join(toResolve, ", ")+")");        		IvyResolve resolve = createResolve(isHaltonfailure(), isUseOrigin());        		resolve.setOrganisation(getOrganisation());        		resolve.setModule(getModule());        		resolve.setRevision(getRevision());        		resolve.setInline(true);        		resolve.setConf(_conf);        		resolve.execute();        	} else {        		Message.verbose("inline resolve already done for "+getOrganisation()+" "+getModule()+" "+getRevision()+" ("+_conf+")");        	}        	if ("*".equals(_conf)) {        		_conf = StringUtils.join(getResolvedConfigurations(getOrganisation(), getModule()+"-caller", true), ", ");        	}        } else {                	Message.debug("using standard ensure resolved");        	ensureResolved(isHaltonfailure(), isUseOrigin(), isTransitive(), getOrganisation(), getModule(), getProperty(_conf, ivy, "ivy.resolved.configurations"));        		        _conf = getProperty(_conf, ivy, "ivy.resolved.configurations");	        if ("*".equals(_conf)) {	            _conf = getProperty(ivy, "ivy.resolved.configurations");	            if (_conf == null) {	                throw new BuildException("bad conf provided for ivy cache task: * can only be used with a prior call to <resolve/>");	            }	        }        }        _organisation = getProperty(_organisation, ivy, "ivy.organisation");        _module = getProperty(_module, ivy, "ivy.module");        if (_organisation == null) {            throw new BuildException("no organisation provided for ivy cache task: It can either be set explicitely via the attribute 'organisation' or via 'ivy.organisation' property or a prior call to <resolve/>");        }        if (_module == null) {            throw new BuildException("no module name provided for ivy cache task: It can either be set explicitely via the attribute 'module' or via 'ivy.module' property or a prior call to <resolve/>");        }        if (_conf == null) {            throw new BuildException("no conf provided for ivy cache task: It can either be set explicitely via the attribute 'conf' or via 'ivy.resolved.configurations' property or a prior call to <resolve/>");        }        if (_cache == null) {            _cache = ivy.getDefaultCache();        }                _artifactFilter = FilterHelper.getArtifactTypeFilter(_type);    }