- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for getResourceAsFile (0.21 sec)
-
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) -
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) -
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) -
fess-crawler-lasta/src/test/java/org/codelibs/fess/crawler/CrawlerTest.java
} finally { server.stop(); } } public void test_execute_file_maxCount() throws Exception { final File targetFile = ResourceUtil.getResourceAsFile("test"); String path = targetFile.getAbsolutePath(); if (!path.startsWith("/")) { path = "/" + path.replace('\\', '/'); } final String url = "file:" + path;
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:47:32 UTC 2024 - 11.9K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerTest.java
} finally { server.stop(); } } public void test_execute_file_maxCount() throws Exception { final File targetFile = ResourceUtil.getResourceAsFile("test"); String path = targetFile.getAbsolutePath(); if (!path.startsWith("/")) { path = "/" + path.replace('\\', '/'); } final String url = "file:" + path;
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 18K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/ResourceUtil.java
* * @param path * リソースのパス。{@literal null}や空文字列であってはいけません * @return ファイル * @see #getResourceAsFile(String, String) */ public static File getResourceAsFile(final String path) { assertArgumentNotEmpty("path", path); return getResourceAsFile(path, null); } /** * リソースをファイルとして返します。 * * @param path
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 15.8K bytes - Viewed (0) -
apache-maven/src/main/appended-resources/META-INF/LICENSE.vm
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Tue Jun 04 06:45:16 UTC 2024 - 4.1K bytes - Viewed (0) -
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) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/XmlTransformerTest.java
+ "<field name=\"tel\">090-xxxx-xxxx</field>\n"// + "</doc>"; final ResponseData responseData = new ResponseData(); responseData.setResponseBody(ResourceUtil.getResourceAsFile("extractor/test.xml"), false); responseData.setCharSet(Constants.UTF_8); final ResultData resultData = xmlTransformer.transform(responseData);
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 13.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/util/UpgradeUtil.java
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 9.1K bytes - Viewed (0)