All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nz.net.osnz.common.jawr.JawrResourceUtil.groovy Maven / Gradle / Ivy

The newest version!
package nz.net.osnz.common.jawr

/**
 *
 * @author Kefeng Deng ([email protected])
 */
public class JawrResourceUtil {

	private JawrResourceUtil() {
		// Cannot be instantiated
	}

	public static boolean isJawrResourceFile(String resourcePath) {
		return "META-INF/jawr.properties".equals(resourcePath) ||
				"WEB-INF/jawr.properties".equals(resourcePath) ||
				"META-INF/resources/WEB-INF/jawr.properties".equals(resourcePath) ||
				(resourcePath.endsWith(".properties") &&
						(
								resourcePath.startsWith("META-INF/jawr-") ||
								resourcePath.startsWith("META-INF/jawr.") ||
								resourcePath.startsWith("WEB-INF/jawr-") ||
								resourcePath.startsWith("WEB-INF/jawr.") ||
								resourcePath.startsWith("META-INF/resources/WEB-INF/jawr-") ||
								resourcePath.startsWith("META-INF/resources/WEB-INF/jawr.")
						)
				)
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy