Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for loadProperties (0.12 sec)

  1. compat/maven-embedder/src/test/java/org/apache/maven/cli/props/MavenPropertiesLoaderTest.java

            assertThrows(
                    NoSuchFileException.class, () -> MavenPropertiesLoader.loadProperties(p, mavenUserProps, null, false));
    
            Path another = propsPath.resolveSibling("another.properties");
            Files.writeString(another, "bar = chti${java.version}\n");
            MavenPropertiesLoader.loadProperties(p, mavenUserProps, null, false);
            assertEquals("chti11z", p.getProperty("fro"));
        }
    
        @Test
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  2. compat/maven-embedder/src/main/java/org/apache/maven/cli/props/MavenPropertiesLoader.java

        public static final String OVERRIDE_PREFIX =
                "maven.override."; // prefix that marks that system property should override defaults.
    
        public static void loadProperties(
                java.util.Properties properties, Path path, Function<String, String> callback, boolean escape)
                throws IOException {
            MavenProperties sp = new MavenProperties(false);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/BaseParser.java

            } else {
                mavenConf = context.installationDirectory.resolve("");
            }
            Path propertiesFile = mavenConf.resolve("maven.properties");
            MavenPropertiesLoader.loadProperties(userProperties, propertiesFile, callback, false);
    
            // CLI specified properties are most dominant
            userProperties.putAll(userSpecifiedProperties);
    
            return toMap(userProperties);
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  4. compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java

            } else {
                mavenConf = fileSystem.getPath("");
            }
            Path propertiesFile = mavenConf.resolve("maven.properties");
            MavenPropertiesLoader.loadProperties(userProperties, propertiesFile, callback, false);
    
            // ----------------------------------------------------------------------
            // I'm leaving the setting of system properties here as not to break
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 76.8K bytes
    - Viewed (0)
Back to top