Home
last modified time | relevance | path

Searched refs:toPath (Results 1 – 25 of 114) sorted by relevance

12345

/external/turbine/javatests/com/google/turbine/main/
DMainTest.java56 Path sourcesa = temporaryFolder.newFile("sourcesa.jar").toPath(); in sourceJarClash()
61 Path sourcesb = temporaryFolder.newFile("sourcesb.jar").toPath(); in sourceJarClash()
66 Path output = temporaryFolder.newFile("output.jar").toPath(); in sourceJarClash()
82 Path src = temporaryFolder.newFile("package-info.jar").toPath(); in packageInfo()
85 Path output = temporaryFolder.newFile("output.jar").toPath(); in packageInfo()
101 Path srcjar = temporaryFolder.newFile("lib.srcjar").toPath(); in packageInfoSrcjar()
107 Path output = temporaryFolder.newFile("output.jar").toPath(); in packageInfoSrcjar()
140 Path srcjar = temporaryFolder.newFile("lib.srcjar").toPath(); in moduleInfos()
148 Path src = temporaryFolder.newFile("module-info.java").toPath(); in moduleInfos()
151 Path output = temporaryFolder.newFile("output.jar").toPath(); in moduleInfos()
[all …]
/external/mockftpserver/tags/2.0-rc1/src/main/java/org/mockftpserver/fake/command/
DRntoCommandHandler.java43 String toPath = getRealPath(session, command.getRequiredParameter(0)); in handle() local
47 … verifyFileSystemCondition(!getFileSystem().isDirectory(toPath), toPath, "filesystem.isDirectory"); in handle()
50 String parentPath = getFileSystem().getParent(toPath); in handle()
54 getFileSystem().rename(fromPath, toPath); in handle()
57 sendReply(session, ReplyCodes.RNTO_OK, "rnto", list(fromPath, toPath)); in handle()
/external/mockftpserver/tags/2.0/src/main/java/org/mockftpserver/fake/command/
DRntoCommandHandler.java43 String toPath = getRealPath(session, command.getRequiredParameter(0)); in handle() local
47 … verifyFileSystemCondition(!getFileSystem().isDirectory(toPath), toPath, "filesystem.isDirectory"); in handle()
50 String parentPath = getFileSystem().getParent(toPath); in handle()
54 getFileSystem().rename(fromPath, toPath); in handle()
57 sendReply(session, ReplyCodes.RNTO_OK, "rnto", list(fromPath, toPath)); in handle()
/external/mockftpserver/tags/2.0-rc3/MockFtpServer/src/main/java/org/mockftpserver/fake/command/
DRntoCommandHandler.java43 String toPath = getRealPath(session, command.getRequiredParameter(0)); in handle() local
47 … verifyFileSystemCondition(!getFileSystem().isDirectory(toPath), toPath, "filesystem.isDirectory"); in handle()
50 String parentPath = getFileSystem().getParent(toPath); in handle()
54 getFileSystem().rename(fromPath, toPath); in handle()
57 sendReply(session, ReplyCodes.RNTO_OK, "rnto", list(fromPath, toPath)); in handle()
/external/mockftpserver/tags/2.0-rc1/MockFtpServer/src/main/java/org/mockftpserver/fake/command/
DRntoCommandHandler.java43 String toPath = getRealPath(session, command.getRequiredParameter(0)); in handle() local
47 … verifyFileSystemCondition(!getFileSystem().isDirectory(toPath), toPath, "filesystem.isDirectory"); in handle()
50 String parentPath = getFileSystem().getParent(toPath); in handle()
54 getFileSystem().rename(fromPath, toPath); in handle()
57 sendReply(session, ReplyCodes.RNTO_OK, "rnto", list(fromPath, toPath)); in handle()
/external/mockftpserver/tags/2.1/src/main/java/org/mockftpserver/fake/command/
DRntoCommandHandler.java43 String toPath = getRealPath(session, command.getRequiredParameter(0)); in handle() local
47 … verifyFileSystemCondition(!getFileSystem().isDirectory(toPath), toPath, "filesystem.isDirectory"); in handle()
50 String parentPath = getFileSystem().getParent(toPath); in handle()
55 getFileSystem().rename(fromPath, toPath); in handle()
58 sendReply(session, ReplyCodes.RNTO_OK, "rnto", list(fromPath, toPath)); in handle()
/external/mockftpserver/tags/2.2/src/main/java/org/mockftpserver/fake/command/
DRntoCommandHandler.java43 String toPath = getRealPath(session, command.getRequiredParameter(0)); in handle() local
47 … verifyFileSystemCondition(!getFileSystem().isDirectory(toPath), toPath, "filesystem.isDirectory"); in handle()
50 String parentPath = getFileSystem().getParent(toPath); in handle()
55 getFileSystem().rename(fromPath, toPath); in handle()
58 sendReply(session, ReplyCodes.RNTO_OK, "rnto", list(fromPath, toPath)); in handle()
/external/mockftpserver/tags/2.0.1/src/main/java/org/mockftpserver/fake/command/
DRntoCommandHandler.java43 String toPath = getRealPath(session, command.getRequiredParameter(0)); in handle() local
47 … verifyFileSystemCondition(!getFileSystem().isDirectory(toPath), toPath, "filesystem.isDirectory"); in handle()
50 String parentPath = getFileSystem().getParent(toPath); in handle()
55 getFileSystem().rename(fromPath, toPath); in handle()
58 sendReply(session, ReplyCodes.RNTO_OK, "rnto", list(fromPath, toPath)); in handle()
/external/mockftpserver/tags/2.3/src/main/java/org/mockftpserver/fake/command/
DRntoCommandHandler.java43 String toPath = getRealPath(session, command.getRequiredParameter(0)); in handle() local
47 … verifyFileSystemCondition(!getFileSystem().isDirectory(toPath), toPath, "filesystem.isDirectory"); in handle()
50 String parentPath = getFileSystem().getParent(toPath); in handle()
55 getFileSystem().rename(fromPath, toPath); in handle()
58 sendReply(session, ReplyCodes.RNTO_OK, "rnto", list(fromPath, toPath)); in handle()
/external/mockftpserver/tags/2.5/src/main/java/org/mockftpserver/fake/command/
DRntoCommandHandler.java43 String toPath = getRealPath(session, command.getRequiredParameter(0)); in handle() local
47 … verifyFileSystemCondition(!getFileSystem().isDirectory(toPath), toPath, "filesystem.isDirectory"); in handle()
50 String parentPath = getFileSystem().getParent(toPath); in handle()
55 getFileSystem().rename(fromPath, toPath); in handle()
58 sendReply(session, ReplyCodes.RNTO_OK, "rnto", list(fromPath, toPath)); in handle()
/external/mockftpserver/tags/2.0.2/src/main/java/org/mockftpserver/fake/command/
DRntoCommandHandler.java43 String toPath = getRealPath(session, command.getRequiredParameter(0)); in handle() local
47 … verifyFileSystemCondition(!getFileSystem().isDirectory(toPath), toPath, "filesystem.isDirectory"); in handle()
50 String parentPath = getFileSystem().getParent(toPath); in handle()
55 getFileSystem().rename(fromPath, toPath); in handle()
58 sendReply(session, ReplyCodes.RNTO_OK, "rnto", list(fromPath, toPath)); in handle()
/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/fake/command/
DRntoCommandHandler.java43 String toPath = getRealPath(session, command.getRequiredParameter(0)); in handle() local
47 … verifyFileSystemCondition(!getFileSystem().isDirectory(toPath), toPath, "filesystem.isDirectory"); in handle()
50 String parentPath = getFileSystem().getParent(toPath); in handle()
55 getFileSystem().rename(fromPath, toPath); in handle()
58 sendReply(session, ReplyCodes.RNTO_OK, "rnto", list(fromPath, toPath)); in handle()
/external/mockftpserver/tags/2.4/src/main/java/org/mockftpserver/fake/command/
DRntoCommandHandler.java43 String toPath = getRealPath(session, command.getRequiredParameter(0)); in handle() local
47 … verifyFileSystemCondition(!getFileSystem().isDirectory(toPath), toPath, "filesystem.isDirectory"); in handle()
50 String parentPath = getFileSystem().getParent(toPath); in handle()
55 getFileSystem().rename(fromPath, toPath); in handle()
58 sendReply(session, ReplyCodes.RNTO_OK, "rnto", list(fromPath, toPath)); in handle()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/examples/
DParameterizedExpanderTest.java74 try (OutputStream o = Files.newOutputStream(dummy.toPath())) { in setUp()
78 .createArchiveOutputStream(format, Files.newOutputStream(archive.toPath()))) { in setUp() argument
109 try (InputStream i = new BufferedInputStream(Files.newInputStream(archive.toPath()))) { in inputStreamVersion()
117 try (InputStream i = new BufferedInputStream(Files.newInputStream(archive.toPath()))) { in inputStreamVersionWithAutoDetection()
125 try (SeekableByteChannel c = FileChannel.open(archive.toPath(), StandardOpenOption.READ)) { in channelVersion()
133 try (InputStream i = new BufferedInputStream(Files.newInputStream(archive.toPath())); in archiveInputStreamVersion()
151 try (InputStream is = Files.newInputStream(new File(resultDir, fileName).toPath())) { in assertHelloWorld() argument
DExpanderTest.java75 try (InputStream i = new BufferedInputStream(Files.newInputStream(archive.toPath()))) { in sevenZInputStreamVersion()
83 try (InputStream i = new BufferedInputStream(Files.newInputStream(archive.toPath()))) { in sevenZInputStreamVersionWithAutoDetection()
91 try (SeekableByteChannel c = FileChannel.open(archive.toPath(), StandardOpenOption.READ)) { in sevenZChannelVersion()
157 try (OutputStream o = Files.newOutputStream(dummy.toPath())) { in setup7z()
180 try (OutputStream o = Files.newOutputStream(dummy.toPath())) { in setupZip()
184 .createArchiveOutputStream("zip", Files.newOutputStream(archive.toPath()))) { in setupZip() argument
204 try (OutputStream o = Files.newOutputStream(dummy.toPath())) { in setupZip()
208 .createArchiveOutputStream("zip", Files.newOutputStream(archive.toPath()))) { in setupZip() argument
227 try (InputStream is = Files.newInputStream(new File(resultDir, fileName).toPath())) { in assertHelloWorld() argument
DParameterizedArchiverTest.java76 try (OutputStream os = Files.newOutputStream(new File(dir, "a/b/d.txt").toPath())) { in setUp() argument
79 try (OutputStream os = Files.newOutputStream(new File(dir, "a/b/c/e.txt").toPath())) { in setUp() argument
93 try (OutputStream os = Files.newOutputStream(target.toPath())) { in outputStreamVersion()
101 try (SeekableByteChannel c = FileChannel.open(target.toPath(), StandardOpenOption.WRITE, in channelVersion()
110 try (OutputStream os = Files.newOutputStream(target.toPath()); in archiveStreamVersion()
118 try (InputStream is = Files.newInputStream(target.toPath()); in verifyContent()
DSevenZArchiverTest.java48 try (OutputStream os = Files.newOutputStream(new File(dir, "a/b/d.txt").toPath())) { in setUp() argument
51 try (OutputStream os = Files.newOutputStream(new File(dir, "a/b/c/e.txt").toPath())) { in setUp() argument
65 try (OutputStream os = Files.newOutputStream(target.toPath())) { in outputStreamVersion()
72 try (SeekableByteChannel c = FileChannel.open(target.toPath(), StandardOpenOption.WRITE, in channelVersion()
82 try (SeekableByteChannel c = FileChannel.open(target.toPath(), StandardOpenOption.WRITE, in unknownFormat()
/external/mockftpserver/tags/2.x_Before_IDEA/src/main/groovy/org/mockftpserver/fake/command/
DRntoCommandHandler.groovy45 def toPath = getRealPath(session, getRequiredParameter(command))
48 verifyForNewFile(!fileSystem.isDirectory(toPath), toPath)
49 verifyForNewFile(fileSystem.rename(fromPath, toPath), toPath)
/external/mockftpserver/tags/2.4/src/main/java/org/mockftpserver/fake/filesystem/
DAbstractFakeFileSystem.java256 public void rename(String fromPath, String toPath) { in rename() argument
257 Assert.notNull(toPath, "toPath"); in rename()
262 if (exists(toPath)) { in rename()
263 throw new FileSystemException(toPath, "filesystem.alreadyExists"); in rename()
267 String normalizedToPath = normalize(toPath); in rename()
275 throw new FileSystemException(toPath, "filesystem.renameFailed"); in rename()
467 protected void renamePath(FileSystemEntry entry, String toPath) { in renamePath() argument
469 String normalizedTo = normalize(toPath); in renamePath()
/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/fake/filesystem/
DAbstractFakeFileSystem.java256 public void rename(String fromPath, String toPath) { in rename() argument
257 Assert.notNull(toPath, "toPath"); in rename()
262 if (exists(toPath)) { in rename()
263 throw new FileSystemException(toPath, "filesystem.alreadyExists"); in rename()
267 String normalizedToPath = normalize(toPath); in rename()
275 throw new FileSystemException(toPath, "filesystem.renameFailed"); in rename()
467 protected void renamePath(FileSystemEntry entry, String toPath) { in renamePath() argument
469 String normalizedTo = normalize(toPath); in renamePath()
/external/mockftpserver/tags/2.5/src/main/java/org/mockftpserver/fake/filesystem/
DAbstractFakeFileSystem.java256 public void rename(String fromPath, String toPath) { in rename() argument
257 Assert.notNull(toPath, "toPath"); in rename()
262 if (exists(toPath)) { in rename()
263 throw new FileSystemException(toPath, "filesystem.alreadyExists"); in rename()
267 String normalizedToPath = normalize(toPath); in rename()
275 throw new FileSystemException(toPath, "filesystem.renameFailed"); in rename()
467 protected void renamePath(FileSystemEntry entry, String toPath) { in renamePath() argument
469 String normalizedTo = normalize(toPath); in renamePath()
/external/mockftpserver/tags/2.3/src/main/java/org/mockftpserver/fake/filesystem/
DAbstractFakeFileSystem.java255 public void rename(String fromPath, String toPath) { in rename() argument
256 Assert.notNull(toPath, "toPath"); in rename()
261 if (exists(toPath)) { in rename()
262 throw new FileSystemException(toPath, "filesystem.alreadyExists"); in rename()
266 String normalizedToPath = normalize(toPath); in rename()
274 throw new FileSystemException(toPath, "filesystem.renameFailed"); in rename()
466 protected void renamePath(FileSystemEntry entry, String toPath) { in renamePath() argument
468 String normalizedTo = normalize(toPath); in renamePath()
/external/mockftpserver/tags/2.2/src/main/java/org/mockftpserver/fake/filesystem/
DAbstractFakeFileSystem.java255 public void rename(String fromPath, String toPath) { in rename() argument
256 Assert.notNull(toPath, "toPath"); in rename()
261 if (exists(toPath)) { in rename()
262 throw new FileSystemException(toPath, "filesystem.alreadyExists"); in rename()
266 String normalizedToPath = normalize(toPath); in rename()
274 throw new FileSystemException(toPath, "filesystem.renameFailed"); in rename()
466 protected void renamePath(FileSystemEntry entry, String toPath) { in renamePath() argument
468 String normalizedTo = normalize(toPath); in renamePath()
/external/turbine/javatests/com/google/turbine/zip/
DZipTest.java66 Path path = temporaryFolder.newFile("test.jar").toPath(); in compression()
79 Path path = temporaryFolder.newFile("test.jar").toPath(); in testEntries()
126 Path path = temporaryFolder.newFile("test.jar").toPath(); in attributes()
144 Path path = temporaryFolder.newFile("test.jar").toPath(); in zipFileCommentsAreSupported()
155 Path path = temporaryFolder.newFile("test.jar").toPath(); in malformedComment()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/examples/
DArchiver.java72 try (SeekableByteChannel c = FileChannel.open(target.toPath(), StandardOpenOption.WRITE, in create()
78 try (OutputStream o = Files.newOutputStream(target.toPath())) { in create()
144 … try (InputStream in = new BufferedInputStream(Files.newInputStream(source.toPath()))) { in create()
177 … try (InputStream in = new BufferedInputStream(Files.newInputStream(source.toPath()))) { in create()

12345