ensureResolved(isHaltonfailure(), isTransitive(), getOrganisation(), getModule());
Message.debug("using standard ensure resolved"); ensureResolved(isHaltonfailure(), 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 (_org != null && getResolvedDescriptor(_org, _name+"-caller", true) == null) {        	IvyResolve resolve = createResolve(isHaltonfailure());        	resolve.setOrg(_org);        	resolve.setName(_name);        	resolve.setRev(_rev);        	String conf = _conf == null ? "*" : _conf;        	resolve.setConf(conf);        	resolve.execute();        	    		_conf = "default"; // this will now be used as the configurations needed to be put in the path.        } else {                	ensureResolved(isHaltonfailure(), isTransitive(), getOrganisation(), getModule());        		        _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 (_cache == null) {            _cache = ivy.getDefaultCache();        }                if (_organisation == null && _org == 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 && _org == 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/>");        }        _artifactFilter = FilterHelper.getArtifactTypeFilter(_type);    }