org.gradle.internal.nativeintegration.filesystem.FileSystem Java Examples
The following examples show how to use
org.gradle.internal.nativeintegration.filesystem.FileSystem.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: FallbackStat.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public int getUnixMode(File f) throws IOException { if (f.isDirectory()) { return FileSystem.DEFAULT_DIR_MODE; } else if (f.exists()) { return FileSystem.DEFAULT_FILE_MODE; } else { throw new FileNotFoundException(String.format("File '%s' not found.", f)); } }
Example #2
Source File: FallbackStat.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public int getUnixMode(File f) throws IOException { if (f.isDirectory()) { return FileSystem.DEFAULT_DIR_MODE; } else if (f.exists()) { return FileSystem.DEFAULT_FILE_MODE; } else { throw new FileNotFoundException(String.format("File '%s' not found.", f)); } }
Example #3
Source File: CompressFileOperationsImpl.java From gradle-plugins with MIT License | 5 votes |
public CompressFileOperationsImpl(ProjectInternal project) { fileOperations = project.getFileOperations(); temporaryFileProvider = project.getServices().get(TemporaryFileProvider.class); fileHasher = project.getServices().get(FileHasher.class); fileSystem = project.getServices().get(FileSystem.class); directoryFileTreeFactory = project.getServices().get(DirectoryFileTreeFactory.class); patternSetFactory = project.getServices().getFactory(PatternSet.class); }
Example #4
Source File: ZipFileTree.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public int getMode() { int unixMode = entry.getUnixMode() & 0777; if(unixMode == 0){ //no mode infos available - fall back to defaults if(isDirectory()){ unixMode = FileSystem.DEFAULT_DIR_MODE; }else{ unixMode = FileSystem.DEFAULT_FILE_MODE; } } return unixMode; }
Example #5
Source File: CompressFileOperationsImpl.java From gradle-plugins with MIT License | 5 votes |
public CompressFileOperationsImpl(ProjectInternal project) { fileOperations = project.getFileOperations(); temporaryFileProvider = project.getServices().get(TemporaryFileProvider.class); fileHasher = project.getServices().get(FileHasher.class); fileSystem = project.getServices().get(FileSystem.class); directoryFileTreeFactory = project.getServices().get(DirectoryFileTreeFactory.class); patternSetFactory = project.getServices().getFactory(PatternSet.class); }
Example #6
Source File: FileOrUriNotationParser.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public static NotationParser<Object, Object> create(FileSystem fileSystem) { return NotationParserBuilder .toType(Object.class) .typeDisplayName("a File or URI") .converter(new FileOrUriNotationParser(fileSystem)) .toComposite(); }
Example #7
Source File: FileOrUriNotationParser.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public static NotationParser<Object, Object> create(FileSystem fileSystem) { return NotationParserBuilder .toType(Object.class) .typeDisplayName("a File or URI") .converter(new FileOrUriNotationParser(fileSystem)) .toComposite(); }
Example #8
Source File: ZipFileTree.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public int getMode() { int unixMode = entry.getUnixMode() & 0777; if(unixMode == 0){ //no mode infos available - fall back to defaults if(isDirectory()){ unixMode = FileSystem.DEFAULT_DIR_MODE; }else{ unixMode = FileSystem.DEFAULT_FILE_MODE; } } return unixMode; }
Example #9
Source File: AbstractFileTreeElement.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public int getMode() { return isDirectory() ? FileSystem.DEFAULT_DIR_MODE : FileSystem.DEFAULT_FILE_MODE; }
Example #10
Source File: SettingsScopeServices.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
protected FileResolver createFileResolver() { return new BaseDirFileResolver(get(FileSystem.class), settings.getSettingsDir()); }
Example #11
Source File: TestFile.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public void createLink(String target) { NativeServices.getInstance().get(FileSystem.class).createSymbolicLink(this, new File(target)); }
Example #12
Source File: ProjectScopeServices.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
protected FileResolver createFileResolver() { return new BaseDirFileResolver(get(FileSystem.class), project.getProjectDir()); }
Example #13
Source File: AbstractFileResolver.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
protected AbstractFileResolver(FileSystem fileSystem) { this.fileSystem = fileSystem; this.fileNotationParser = FileOrUriNotationParser.create(fileSystem); }
Example #14
Source File: AbstractFileResolver.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public FileSystem getFileSystem() { return fileSystem; }
Example #15
Source File: DefaultFileLookup.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public DefaultFileLookup(FileSystem fileSystem) { this.fileSystem = fileSystem; fileResolver = new IdentityFileResolver(this.fileSystem); }
Example #16
Source File: DefaultFileLookup.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public FileSystem getFileSystem() { return fileSystem; }
Example #17
Source File: IdentityFileResolver.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public IdentityFileResolver(FileSystem fileSystem) { super(fileSystem); }
Example #18
Source File: CopySpecActionImpl.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public CopySpecActionImpl(CopyActionProcessingStreamAction action, Instantiator instantiator, FileSystem fileSystem) { this.action = action; this.instantiator = instantiator; this.fileSystem = fileSystem; }
Example #19
Source File: GlobalScopeServices.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
FileLookup createFileLookup(FileSystem fileSystem) { return new DefaultFileLookup(fileSystem); }
Example #20
Source File: CopyFileVisitorImpl.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public CopyFileVisitorImpl(CopySpecResolver spec, CopyActionProcessingStreamAction action, Instantiator instantiator, FileSystem fileSystem) { this.copySpecResolver = spec; this.action = action; this.instantiator = instantiator; this.fileSystem = fileSystem; }
Example #21
Source File: CopySpecBackedCopyActionProcessingStream.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public CopySpecBackedCopyActionProcessingStream(CopySpecInternal spec, Instantiator instantiator, FileSystem fileSystem) { this.spec = spec; this.instantiator = instantiator; this.fileSystem = fileSystem; }
Example #22
Source File: CopyActionExecuter.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public CopyActionExecuter(Instantiator instantiator, FileSystem fileSystem) { this.instantiator = instantiator; this.fileSystem = fileSystem; }
Example #23
Source File: FileOrUriNotationParser.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public FileOrUriNotationParser(FileSystem fileSystem) { this.fileSystem = fileSystem; }
Example #24
Source File: GlobalScopeServices.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
FileResolver createFileResolver(FileSystem fileSystem) { return new IdentityFileResolver(fileSystem); }
Example #25
Source File: BaseDirFileResolver.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public BaseDirFileResolver(FileSystem fileSystem, File baseDir) { super(fileSystem); assert baseDir.isAbsolute() : String.format("base dir '%s' is not an absolute file.", baseDir); this.baseDir = baseDir; }
Example #26
Source File: CopyActionExecuter.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public CopyActionExecuter(Instantiator instantiator, FileSystem fileSystem) { this.instantiator = instantiator; this.fileSystem = fileSystem; }
Example #27
Source File: AbstractFileResolver.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
protected AbstractFileResolver(FileSystem fileSystem) { this.fileSystem = fileSystem; this.fileNotationParser = FileOrUriNotationParser.create(fileSystem); }
Example #28
Source File: AbstractFileResolver.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public FileSystem getFileSystem() { return fileSystem; }
Example #29
Source File: DefaultFileLookup.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public DefaultFileLookup(FileSystem fileSystem) { this.fileSystem = fileSystem; fileResolver = new IdentityFileResolver(this.fileSystem); }
Example #30
Source File: DefaultFileLookup.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public FileSystem getFileSystem() { return fileSystem; }