Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for getAppType (0.05 seconds)

  1. src/main/java/org/codelibs/fess/util/ResourceUtil.java

         * This is used to determine the deployment environment (e.g., "docker").
         *
         * @return the application type string, or empty string if not set
         */
        public static String getAppType() {
            final String appType = System.getenv(FESS_APP_TYPE);
            if (StringUtil.isNotBlank(appType)) {
                return appType;
            }
            return StringUtil.EMPTY;
        }
    
        /**
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 14.1K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/util/ResourceUtilTest.java

            String originalAppType = System.getenv("FESS_APP_TYPE");
    
            // Since we can't modify environment variables directly,
            // we test the current behavior
            String appType = ResourceUtil.getAppType();
            assertNotNull(appType);
            // appType should be either empty string or the actual env value
            assertTrue(appType.isEmpty() || appType.length() > 0);
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 11.8K bytes
    - Click Count (0)
Back to Top