Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 180 for script2 (0.11 seconds)

  1. src/test/java/org/codelibs/fess/job/impl/ScriptExecutorTest.java

            // Setup test script engine
            scriptEngineFactory.add("test", testScriptEngine);
    
            // Execute script
            String scriptType = "test";
            String script = "test script content";
            Object result = scriptExecutor.execute(scriptType, script);
    
            // Verify result
            assertEquals("processed: test script content", result);
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 10.5K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/script/groovy/GroovyEngine.java

        }
    
        /**
         * Evaluates a Groovy script template with the provided parameters.
         *
         * <p>This method caches compiled Script classes per script text.
         * Each evaluation creates a new Script instance to ensure thread-safe binding isolation.
         * The DI container is automatically injected into the binding map as "container".</p>
         *
         * @param template the Groovy script to evaluate (null-safe, returns null if empty)
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 14:36:23 GMT 2026
    - 11.9K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/script/groovy/GroovyEngineTest.java

            final Map<String, Object> params = new HashMap<>();
            final String script = "def map = [name: 'Alice', age: 30]; return map.name + ' is ' + map.age";
            assertEquals("Alice is 30", groovyEngine.evaluate(script, params));
        }
    
        // ===== Multi-line Script Tests =====
    
        /**
         * Test that multi-line scripts work
         */
        @Test
        public void test_evaluate_multilineScript() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 15 06:03:38 GMT 2026
    - 29.1K bytes
    - Click Count (0)
  4. .teamcity/src/main/kotlin/configurations/LightweightChecks.kt

                }
    
                steps {
                    script {
                        name = "CHECK_USED_WRAPPER"
                        scriptContent =
                            """
                            set -eu
                            "$defaultJavaBinary" .teamcity/scripts/FindCommits.java ${model.branch.branchName} | \
                            "$defaultJavaBinary" .teamcity/scripts/CheckWrapper.java
                            """.trimIndent()
    
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Fri Jan 23 03:29:32 GMT 2026
    - 3.9K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/job/JobExecutor.java

            // Default constructor
        }
    
        /**
         * Executes a script with the specified script type and content.
         *
         * @param scriptType the type of script to execute
         * @param script the script content to execute
         * @return the result of script execution
         */
        public abstract Object execute(String scriptType, String script);
    
        /**
         * Initiates shutdown of the job executor.
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/job/PythonJob.java

        public PythonJob() {
            super();
        }
    
        /** The Python script filename to execute */
        protected String filename;
    
        /** List of command-line arguments to pass to the Python script */
        protected List<String> argList = new ArrayList<>();
    
        /**
         * Sets the Python script filename to execute.
         *
         * @param filename the Python script filename (relative to WEB-INF/env/python/resources)
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 8.2K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/job/JobExecutorTest.java

            // Test scripts with special characters
            Object result = jobExecutor.execute("test", "script with\nnewline");
            assertEquals("Executed: test script with\nnewline", result);
    
            result = jobExecutor.execute("test", "script with\ttab");
            assertEquals("Executed: test script with\ttab", result);
    
            result = jobExecutor.execute("test", "script with \"quotes\"");
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 9.4K bytes
    - Click Count (0)
  8. .teamcity/scripts/CheckWrapper.java

    import java.util.*;
    import java.util.concurrent.*;
    import java.util.regex.*;
    import java.util.stream.*;
    
    /**
     * TeamCity helper script to validate that each commit in a PR uses only released Gradle versions in the wrapper.
     *
     * Usage (Java 11+ single-file source execution):
     *   java .teamcity/scripts/CheckWrapper.java < commits.txt
     *
     * Reads commit SHAs from stdin (one per line), checks wrapper per commit.
     */
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Tue Jan 20 03:53:25 GMT 2026
    - 6.4K bytes
    - Click Count (0)
  9. .teamcity/scripts/FindCommits.java

    import java.util.Arrays;
    import java.util.List;
    import java.util.Objects;
    import java.util.stream.Collectors;
    
    /**
     * TeamCity helper script that prints the list of commits in the current PR (one SHA per line).
     *
     * Usage (Java 11+ single-file source execution):
     *   java .teamcity/scripts/FindCommits.java <target_branch_name>
     *
     * Commit range logic:
     * - Uses origin/<target_branch_name> as the target
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Tue Jan 20 03:53:25 GMT 2026
    - 5.5K bytes
    - Click Count (0)
  10. docs/fr/README.md

    ## Ingest
    
     - [Logger](https://github.com/codelibs/fess-ingest-logger)
     - [NDJSON](https://github.com/codelibs/fess-ingest-ndjson)
    
    ## Scripts
    
     - [Groovy](https://github.com/codelibs/fess-script-groovy)
     - [OGNL](https://github.com/codelibs/fess-script-ognl)
    
    ## Informations de Développement
    
    ### Récupérer le Code Source
    
    1. Clonez le dépôt Fess :
        ```
        $ cd ~/workspace
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Tue Nov 11 22:42:32 GMT 2025
    - 7.9K bytes
    - Click Count (0)
Back to Top