Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for newFileSystem (0.22 sec)

  1. android/guava-tests/test/com/google/common/io/MoreFilesTest.java

      private Path createTempFile() throws IOException {
        return Files.createTempFile(tempDir, "test", ".test");
      }
    
      public void testByteSource_size_ofDirectory() throws IOException {
        try (FileSystem fs = Jimfs.newFileSystem(Configuration.unix())) {
          Path dir = fs.getPath("dir");
          Files.createDirectory(dir);
    
          ByteSource source = MoreFiles.asByteSource(dir);
    
          assertThat(source.sizeIfKnown()).isAbsent();
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/MoreFilesTest.java

      private Path createTempFile() throws IOException {
        return Files.createTempFile(tempDir, "test", ".test");
      }
    
      public void testByteSource_size_ofDirectory() throws IOException {
        try (FileSystem fs = Jimfs.newFileSystem(Configuration.unix())) {
          Path dir = fs.getPath("dir");
          Files.createDirectory(dir);
    
          ByteSource source = MoreFiles.asByteSource(dir);
    
          assertThat(source.sizeIfKnown()).isAbsent();
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  3. compat/maven-embedder/src/test/java/org/apache/maven/cli/props/MavenPropertiesLoaderTest.java

    import static org.junit.jupiter.api.Assertions.assertThrows;
    
    class MavenPropertiesLoaderTest {
    
        @Test
        void testIncludes() throws Exception {
            FileSystem fs = Jimfs.newFileSystem(Configuration.unix());
    
            Path mavenHome = fs.getPath("/maven");
            Files.createDirectories(mavenHome);
            Path mavenConf = mavenHome.resolve("conf");
            Files.createDirectories(mavenConf);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  4. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvn/local/DefaultLocalMavenInvokerTest.java

            invoke(tempDir, Arrays.asList("clean", "verify"));
        }
    
        @Disabled("Until we move off fully from File")
        @Test
        void jimFs() throws Exception {
            try (FileSystem fs = Jimfs.newFileSystem(Configuration.unix())) {
                invoke(fs.getPath("/"), Arrays.asList("clean", "verify"));
            }
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  5. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/classanalysis/AnalyzeAndShade.kt

            val classGraph = classGraph()
    
            val jarUri = URI.create("jar:${jarFile.toPath().toUri()}")
            FileSystems.newFileSystem(jarUri, emptyMap<String, Any>()).use { jarFileSystem ->
                jarFileSystem.rootDirectories.forEach {
                    visitClassDirectory(it, classGraph, classesDir, manifestFile.toPath(), buildReceipt.toPath())
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Mon Oct 28 12:55:30 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  6. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvn/resident/DefaultResidentMavenInvokerTest.java

            invoke(tempDir, Arrays.asList("clean", "verify"));
        }
    
        @Disabled("Until we move off fully from File")
        @Test
        void jimFs() throws Exception {
            try (FileSystem fs = Jimfs.newFileSystem(Configuration.unix())) {
                invoke(fs.getPath("/"), Arrays.asList("clean", "verify"));
            }
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  7. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/ExtractGradleApiInfoTask.java

            URI uri = URI.create("jar:" + gradleRuntimeApiInfoJar.getAbsoluteFile().toURI());
            try (FileSystem fs = FileSystems.newFileSystem(uri, Collections.emptyMap())) {
                Path upgradedPropertiesJson = fs.getPath(UPGRADED_PROPERTIES_FILE);
                if (Files.exists(upgradedPropertiesJson)) {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Nov 22 22:15:41 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/io/MoreFilesFileTraverserTest.java

     *
     * @author Jens Nyman
     */
    
    public class MoreFilesFileTraverserTest extends TestCase {
    
      private Path rootDir;
    
      @Override
      public void setUp() throws IOException {
        rootDir = Jimfs.newFileSystem(Configuration.unix()).getPath("/tmp");
        Files.createDirectory(rootDir);
      }
    
      @Override
      public void tearDown() throws IOException {
        rootDir.getFileSystem().close();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 09 19:30:52 UTC 2018
    - 3.8K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/ds/DataStoreFactory.java

            final File[] jarFiles = ResourceUtil.getPluginJarFiles(PluginHelper.ArtifactType.DATA_STORE.getId());
            for (final File jarFile : jarFiles) {
                try (FileSystem fs = FileSystems.newFileSystem(jarFile.toPath(), ClassLoader.getSystemClassLoader())) {
                    final Path xmlPath = fs.getPath("fess_ds++.xml");
                    try (InputStream is = Files.newInputStream(xmlPath)) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  10. compat/maven-embedder/src/test/java/org/apache/maven/cli/MavenCliTest.java

            assertEquals(test, new DefaultRootLocator().findRoot(test.resolve("child")));
        }
    
        @Test
        public void testPropertiesInterpolation() throws Exception {
            FileSystem fs = Jimfs.newFileSystem(Configuration.windows());
    
            Path mavenHome = fs.getPath("C:\\maven");
            Files.createDirectories(mavenHome);
            Path mavenConf = mavenHome.resolve("conf");
            Files.createDirectories(mavenConf);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 30.3K bytes
    - Viewed (0)
Back to top