Here you can find the source of loadGradleResource(String fileName)
Parameter | Description |
---|---|
fileName | a parameter |
public static File loadGradleResource(String fileName)
//package com.java2s; //License from project: Academic Free License import java.io.File; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class Main { public static Logger LOGGER = LoggerFactory.getLogger("StaticLogger"); /**/* w ww. ja v a 2 s. com*/ * This can load a gradle resource, such as a .properties file. * * @param fileName * @return */ public static File loadGradleResource(String fileName) { File junitFile = new File(fileName); if (junitFile.exists()) { LOGGER.info("The file '" + junitFile.getAbsolutePath() + "' exists."); } else { LOGGER.info("Problem loading Gradle resource: " + junitFile.getAbsolutePath()); } return junitFile; } }