src/com/esotericsoftware/scar/Scar.java
static public String resolvePath (String fileName) {
		if (fileName == null) return null;

		String foundFile;
		while (true) {
			foundFile = canonical(fileName);
			if (fileExists(foundFile)) break;

			foundFile = new File(SCAR_HOME, fileName).getPath();
			if (fileExists(foundFile)) break;

			foundFile = new File(JAVA_HOME, "bin/" + fileName).getPath();
			if (fileExists(foundFile)) break;

			foundFile = fileName;
			break;
		}
		if (TRACE) trace("scar", "Path \"" + fileName + "\" resolved to: " + foundFile);
		return foundFile;
	}
/** Returns the full path for the specified file name in the current working directory, the {@link #SCAR_HOME}, and the bin
	 * directory of {@link #JAVA_HOME}. */
Returns the full path for the specified file name in the current working directory, the  #SCAR_HOME, and the bin
directory of  #JAVA_HOME.
Returns the full path for the specified file name in the current working directory the #SCAR_HOME and the bin directory of #JAVA_HOME .
static public String resolvePath (String fileName) {
		if (fileName == null) return null;
		String foundFile;
		while (true) {
			foundFile = canonical(fileName);
			if (fileExists(foundFile)) break;
			foundFile = new File(SCAR_HOME, fileName).getPath();
			if (fileExists(foundFile)) break;
			foundFile = new File(JAVA_HOME, "bin/" + fileName).getPath();
			if (fileExists(foundFile)) break;
			foundFile = fileName;
			break;
		}
		if (TRACE) trace("scar", "Path \"" + fileName + "\" resolved to: " + foundFile);
		return foundFile;
	}
static public String resolvePath ( String fileName ) { if ( fileName == null ) return null ; String foundFile ; while ( true ) { foundFile = canonical ( fileName ) ; if ( fileExists ( foundFile ) ) break ; foundFile = new File ( SCAR_HOME , fileName ) . getPath ( ) ; if ( fileExists ( foundFile ) ) break ; foundFile = new File ( JAVA_HOME , "bin/" + fileName ) . getPath ( ) ; if ( fileExists ( foundFile ) ) break ; foundFile = fileName ; break ; } if ( TRACE ) trace ( "scar" , "Path \"" + fileName + "\" resolved to: " + foundFile ) ; return foundFile ; }
Returns the full path for the specified file name in the current working directory, the {@link #SCAR_HOME}, and the bin
 directory of {@link #JAVA_HOME}.
Returns the full path for the specified file name in the current working directory the { @link #SCAR_HOME } and the bin directory of { @link #JAVA_HOME } .