*/
package org.sonar.api.resources;
+import com.google.common.collect.Lists;
+
+import java.util.Collection;
+import java.util.List;
+
/**
* @TODO Actually this class incorrectly named, because provides information not about project, but about Java project.
* And seems that only core plugins use this class.
}
return null;
}
+
+ /**
+ * @since 2.7
+ */
+ public static List<java.io.File> toIoFiles(Collection<InputFile> inputFiles) {
+ List<java.io.File> files = Lists.newArrayList();
+ for (InputFile inputFile : inputFiles) {
+ files.add(inputFile.getFile());
+ }
+ return files;
+ }
}