import org.gradle.util.GFileUtils; //导入方法依赖的package包/类
public Iterator resolveToOutputProperties() {
Object unpackedPaths = GFileUtils.unpack(paths);
if (unpackedPaths == null) {
return Iterators.emptyIterator();
} else if (unpackedPaths instanceof Map) {
final Iterator extends Map.Entry, ?>> iterator = ((Map, ?>) unpackedPaths).entrySet().iterator();
return new AbstractIterator() {
@Override
protected TaskOutputFilePropertySpec computeNext() {
if (iterator.hasNext()) {
Map.Entry, ?> entry = iterator.next();
Object key = entry.getKey();
if (key == null) {
throw new IllegalArgumentException(String.format("Mapped output property '%s' has null key", getPropertyName()));
}
String id = key.toS