Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
zhztheplayer committed Dec 19, 2024
1 parent 183c023 commit 18b594f
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
*/
package org.apache.gluten.utils;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
Expand All @@ -33,6 +36,9 @@
* and then modified for Gluten's use.
*/
public class ResourceUtil {

private static final Logger LOG = LoggerFactory.getLogger(ResourceUtil.class);

/**
* Get a collection of resource paths by the input RegEx pattern.
*
Expand All @@ -52,6 +58,10 @@ public static List<String> getResources(final Pattern pattern) {
private static void getResources(
final String element, final Pattern pattern, final List<String> buffer) {
final File file = new File(element);
if (!file.exists()) {
LOG.info("Skip non-existing classpath: {}", element);
return;
}
if (file.isDirectory()) {
getResourcesFromDirectory(file, file, pattern, buffer);
} else {
Expand Down

0 comments on commit 18b594f

Please sign in to comment.