Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for parseCommand (0.09 sec)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/CommandExtractorTest.java

            String cmd = "";
            final Map<String, String> params = new HashMap<String, String>();
            List<String> list = extractor.parseCommand(cmd, params);
            assertEquals(0, list.size());
    
            cmd = "test.sh";
            params.clear();
            list = extractor.parseCommand(cmd, params);
            assertEquals(1, list.size());
            assertEquals("test.sh", list.get(0));
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/CommandExtractor.java

            params.put("$INPUT_FILE", inputFile.getAbsolutePath());
            params.put("$OUTPUT_FILE", outputFile.getAbsolutePath());
    
            final List<String> cmdList = parseCommand(command, params);
            if (logger.isInfoEnabled()) {
                logger.info("Command: {}", cmdList);
            }
    
            final ProcessBuilder pb = new ProcessBuilder(cmdList);
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 13.6K bytes
    - Viewed (0)
Back to top