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)
| 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); |
no test coverage detected