MCPcopy Index your code
hub / github.com/apache/tomcat / resolveFile

Method resolveFile

java/org/apache/jasper/JspC.java:1933–1940  ·  view source on GitHub ↗

Resolves the relative or absolute pathname correctly in both Ant and command-line situations. If Ant launched us, we should use the basedir of the current project to resolve relative paths. See Bugzilla 35571. @param s The file @return The file resolved

(final String s)

Source from the content-addressed store, hash-verified

1931 * @return The file resolved
1932 */
1933 protected File resolveFile(final String s) {
1934 if (getProject() == null) {
1935 // Note FileUtils.getFileUtils replaces FileUtils.newFileUtils in Ant 1.6.3
1936 return FileUtils.getFileUtils().resolveFile(null, s);
1937 } else {
1938 return FileUtils.getFileUtils().resolveFile(getProject().getBaseDir(), s);
1939 }
1940 }
1941
1942 private Reader openWebxmlReader(File file) throws IOException {
1943 FileInputStream fis = new FileInputStream(file);

Callers 5

setUrirootMethod · 0.95
setOutputDirMethod · 0.95
setWebXmlIncludeMethod · 0.95
setWebFragmentXmlMethod · 0.95
setWebXmlMethod · 0.95

Calls 2

getProjectMethod · 0.80
getBaseDirMethod · 0.45

Tested by

no test coverage detected