- Sort Score
- Num 10 results
- Language All
Results 1 - 5 of 5 for expandPath (0.05 seconds)
-
src/test/java/org/codelibs/fess/thumbnail/impl/BaseThumbnailGeneratorTest.java
} @Test public void test_expandPath() { // Test expandPath method generator = new TestThumbnailGenerator(); // Test without mappings assertEquals("path/to/file", generator.expandPath("path/to/file")); assertNull(generator.expandPath(null)); // Test with exact match mappings (expandPath only replaces exact matches)Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Feb 04 14:24:39 GMT 2026 - 17.1K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/thumbnail/impl/BaseThumbnailGenerator.java
/** * Expands a file path using the file path mapping. * @param value The original path value. * @return The expanded path or the original value if no mapping exists. */ protected String expandPath(final String value) { if (value != null && filePathMap.containsKey(value)) { return filePathMap.get(value); } return value; } /**Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Nov 28 16:29:12 GMT 2025 - 13.4K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/thumbnail/impl/CommandGenerator.java
final String outputPath = outputFile.getAbsolutePath(); final List<String> cmdList = new ArrayList<>(); for (final String value : commandList) { cmdList.add(expandPath(value.replace("${url}", tempPath) .replace("${outputFile}", outputPath) .replace("${mimetype}", mimeType != null ? mimeType : ""))); }
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jan 01 12:47:47 GMT 2026 - 16.6K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/thumbnail/impl/CommandGeneratorTest.java
assertTrue("Long commands should be settable", true); } // Test path expansion logic @Test public void test_path_expansion() throws Exception { // Test the expandPath functionality indirectly through variable replacement final String testCommand = "convert ${url} -resize 100x100 ${outputFile}"; final String tempPath = "/tmp/source.pdf";
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 27.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/thumbnail/impl/EmptyGeneratorTest.java
assertEquals("test/path", emptyGenerator.expandPath("test/path")); assertNull(emptyGenerator.expandPath(null)); // Test with file path mappings emptyGenerator.filePathMap.put("${path}/test", "/usr/bin/test"); assertEquals("/usr/bin/test", emptyGenerator.expandPath("${path}/test")); assertEquals("other/path", emptyGenerator.expandPath("other/path")); } @Test
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 6.5K bytes - Click Count (0)