Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 151 - 160 of 163 for getProperty (0.06 seconds)

  1. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProjectManager.java

        }
    
        @Override
        public void setProperty(@Nonnull Project project, @Nonnull String key, String value) {
            Properties properties = getMavenProject(project).getProperties();
            if (value == null) {
                properties.remove(key);
            } else {
                properties.setProperty(key, value);
            }
        }
    
        @Override
        @Nonnull
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Dec 17 16:17:01 GMT 2025
    - 10.9K bytes
    - Click Count (0)
  2. api/maven-api-core/src/main/java/org/apache/maven/api/services/ProjectManager.java

        /**
         * {@return an immutable map of the project properties}.
         *
         * @param project the project for which to get the properties
         *
         * @see #setProperty(Project, String, String)
         */
        @Nonnull
        Map<String, String> getProperties(@Nonnull Project project);
    
        /**
         * Set a given project property. Properties set through this method are only valid
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Jan 30 23:29:13 GMT 2025
    - 12K bytes
    - Click Count (0)
  3. compat/maven-model-builder/src/test/java/org/apache/maven/model/profile/activation/PropertyProfileActivatorTest.java

            Profile p = Profile.newBuilder().activation(a).build();
    
            return p;
        }
    
        private Properties newProperties(String key, String value) {
            Properties props = new Properties();
            props.setProperty(key, value);
            return props;
        }
    
        @Test
        void testNullSafe() throws Exception {
            Profile p = Profile.newInstance();
    
            assertActivation(false, p, newContext(null, null));
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Mar 21 04:56:21 GMT 2025
    - 5.7K bytes
    - Click Count (0)
  4. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvn/MavenInvokerTestSupport.java

    import org.codehaus.plexus.classworlds.ClassWorld;
    
    import static org.junit.jupiter.api.Assertions.assertEquals;
    
    public abstract class MavenInvokerTestSupport {
        static {
            System.setProperty(
                    "library.jline.path",
                    Path.of("target/dependency/org/jline/nativ").toAbsolutePath().toString());
        }
    
        public static final String POM_STRING = """
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Oct 21 12:17:55 GMT 2025
    - 6.8K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java

        // cause system property.  This allows us to run with both settings of the property in one jvm
        // without resorting to even crazier hacks to reset static final boolean fields.
        System.setProperty("guava.concurrent.generate_cancellation_cause", "true");
        String concurrentPackage = SettableFuture.class.getPackage().getName();
        classReloader =
            new URLClassLoader(ClassPathUtil.getClassPathUrls()) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 6.2K bytes
    - Click Count (0)
  6. impl/maven-core/src/main/java/org/apache/maven/configuration/internal/EnhancedConfigurationConverter.java

                    valueType = getClassForImplementationHint(null, element, loader);
                } catch (final ComponentConfigurationException e) {
                    valueType = null;
                }
                helper.setProperty(bean, propertyName, valueType, element);
            }
        }
    
        /**
         * Clear all caches. Useful for testing or memory management.
         */
        public static void clearCaches() {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Jul 17 07:40:49 GMT 2025
    - 6.2K bytes
    - Click Count (0)
  7. impl/maven-core/src/test/java/org/apache/maven/internal/transformation/impl/ConsumerPomBuilderTest.java

                    .getMavenSession()
                    .getRequest();
            request.setRootDirectory(Paths.get("src/test/resources/consumer/simple"));
            request.getUserProperties().setProperty("changelist", "MNG6957");
    
            Path file = Paths.get("src/test/resources/consumer/simple/simple-parent/simple-weather/pom.xml");
    
            ModelBuilder.ModelBuilderSession mbs = modelBuilder.newSession();
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Nov 06 18:32:25 GMT 2025
    - 7.2K bytes
    - Click Count (0)
  8. samples/guide/src/main/java/okhttp3/recipes/kt/WiresharkExample.kt

        val randomRegex = "\"random\"\\s+:\\s+\"([^\"]+)\"".toRegex()
    
        fun register() {
          // Enable JUL logging for SSL events, must be activated early or via -D option.
          System.setProperty("javax.net.debug", "")
          logger =
            Logger
              .getLogger("javax.net.ssl")
              .apply {
                level = Level.FINEST
                useParentHandlers = false
              }
        }
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat May 10 11:15:14 GMT 2025
    - 10.9K bytes
    - Click Count (0)
  9. compat/maven-model-builder/src/test/java/org/apache/maven/model/profile/activation/JdkVersionProfileActivatorTest.java

            Profile p = Profile.newBuilder().activation(a).build();
    
            return p;
        }
    
        private Properties newProperties(String javaVersion) {
            Properties props = new Properties();
            props.setProperty("java.version", javaVersion);
            return props;
        }
    
        @Test
        void testNullSafe() throws Exception {
            Profile p = Profile.newInstance();
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jan 10 07:09:12 GMT 2025
    - 9.1K bytes
    - Click Count (0)
  10. compat/maven-model-builder/src/test/java/org/apache/maven/model/validation/DefaultModelValidatorTest.java

                        @Serial
                        private static final long serialVersionUID = 1L;
    
                        {
                            setProperty("foo", "foo");
                            setProperty("bar", "foo");
                        }
                    }));
            assertViolations(result, 0, 0, 0);
        }
    
        @Test
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 33.9K bytes
    - Click Count (0)
Back to Top