Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for getResourceAsFile (0.18 sec)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/impl/RuleManagerImplTest.java

        }
    
        public void test_getRule_sitemaps1() {
            final ResponseData responseData = new ResponseData();
            responseData.setUrl("http://www.example.com/sitemap1.xml");
            File file = ResourceUtil.getResourceAsFile("sitemaps/sitemap1.xml");
            responseData.setResponseBody(file, false);
            final Rule rule = ruleManager.getRule(responseData);
            assertNotNull(rule);
            assertEquals("sitemapsRule", rule.getRuleId());
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/impl/SitemapsRuleTest.java

            File file = ResourceUtil.getResourceAsFile("sitemaps/sitemap1.xml");
            responseData.setResponseBody(file, false);
            return responseData;
        }
    
        private ResponseData getTestData2_OK() {
            final ResponseData responseData = new ResponseData();
            responseData.setUrl("http://example.com/sitemap.xml.gz");
            File file = ResourceUtil.getResourceAsFile("sitemaps/sitemap1.xml.gz");
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/fs/FileSystemClientTest.java

                    .singleton("fsClient", FileSystemClient.class);
            fsClient = container.getComponent("fsClient");
        }
    
        public void test_doGet_dir() {
            final File file = ResourceUtil.getResourceAsFile("test");
            String path = file.getAbsolutePath();
            if (!path.startsWith("/")) {
                path = "/" + path.replace('\\', '/');
            }
            try {
                fsClient.doGet("file://" + path);
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 8K bytes
    - Viewed (0)
  4. apache-maven/src/main/appended-resources/META-INF/LICENSE.vm

    #*    *##end
    #*    *###
    #*    *### copy license file to lib/$artifactId.license
    #*    *##set ( $licFile = $directory + '/' + $project.artifact.artifactId + '.license' )
    #*    *##set ( $downloaded = $locator.getResourceAsFile( "licenses/${spdx}.txt", "licenses/${licFile}" ) )
    
    #*    *### add dependency info to output
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Tue Jun 04 06:45:16 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/util/ResourceUtil.java

            final Path confPath = getConfPath(names);
            if (Files.exists(confPath)) {
                return confPath;
            }
            return org.codelibs.core.io.ResourceUtil.getResourceAsFile(String.join("/", names)).toPath();
        }
    
        public static Path getClassesPath(final String... names) {
            return getPath("WEB-INF/", "classes", names);
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Oct 24 08:52:32 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/util/UpgradeUtil.java

            final String aliasConfigPath = indexConfigPath + "/" + indexName + "/alias/" + aliasName + ".json";
            try {
                final File aliasConfigFile = org.codelibs.core.io.ResourceUtil.getResourceAsFile(aliasConfigPath);
                if (aliasConfigFile.exists()) {
                    final String source = FileUtil.readUTF8(aliasConfigFile);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 9.1K bytes
    - Viewed (0)
Back to top