@Override public File getFile() throws IOException { File file = this.file; if (file != null) { return file; } file = super.getFile(); this.file = file; return file; }
@Override public File getFile() throws IOException { File file = this.file; if (file != null) { return file; } file = super.getFile(); this.file = file; return file; }
protected File getWorkingDirectory() { if (this.uri.startsWith("file:")) { try { return new UrlResource(StringUtils.cleanPath(this.uri)).getFile(); } catch (Exception e) { throw new IllegalStateException( "Cannot convert uri to file: " + this.uri); } } return this.basedir; }
private Git copyFromLocalRepository() throws IOException { Git git; File remote = new UrlResource(StringUtils.cleanPath(getUri())).getFile(); Assert.state(remote.isDirectory(), "No directory at " + getUri()); File gitDir = new File(remote, ".git"); Assert.state(gitDir.exists(), "No .git at " + getUri()); Assert.state(gitDir.isDirectory(), "No .git directory at " + getUri()); git = this.gitFactory.getGitByOpen(remote); return git; }
if (ResourceUtils.isJarURL(mapperLocation.getURL())) { String key = new UrlResource(ResourceUtils.extractJarFileURL(mapperLocation.getURL())) .getFile().getPath(); fileSet.add(key); if (JAR_MAPPER.get(key) != null) {
@Override public File getFile() throws IOException { File file = this.file; if (file != null) { return file; } file = super.getFile(); this.file = file; return file; }
@Override public File getFile() throws IOException { File file = this.file; if (file != null) { return file; } file = super.getFile(); this.file = file; return file; }
private File getWorkingDirectory() { if (this.uri.startsWith("file:")) { try { return (new UrlResource(StringUtils.cleanPath(this.uri))).getFile(); } catch (Exception var2) { throw new IllegalStateException("Cannot convert uri to file: " + this.uri); } } else { return this.basedir; } }
private Git copyFromLocalRepository() throws IOException { Git git; File remote = new UrlResource(StringUtils.cleanPath(getUri())).getFile(); Assert.state(remote.isDirectory(), "No directory at " + getUri()); File gitDir = new File(remote, ".git"); Assert.state(gitDir.exists(), "No .git at " + getUri()); Assert.state(gitDir.isDirectory(), "No .git directory at " + getUri()); git = this.gitFactory.getGitByOpen(remote); return git; }
if (ResourceUtils.isJarURL(mapperLocation.getURL())) { String key = new UrlResource(ResourceUtils.extractJarFileURL(mapperLocation.getURL())) .getFile().getPath(); fileSet.add(key); if (JAR_MAPPER.get(key) != null) {
private static File getFileForLastModifiedCheck(UrlResource resource) throws IOException { URL url = resource.getURL(); if (ResourceUtils.isJarURL(url)) { URL actualUrl = ResourceUtils.extractJarFileURL(url); return ResourceUtils.getFile(actualUrl); } else { return resource.getFile(); } }