Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 281 for SetProperty (1.15 sec)

  1. guava-tests/test/com/google/common/reflect/ClassPathTest.java

        }
        String oldPathSeparator = PATH_SEPARATOR.value();
        String oldClassPath = JAVA_CLASS_PATH.value();
        System.setProperty(PATH_SEPARATOR.key(), ":");
        System.setProperty(
            JAVA_CLASS_PATH.key(),
            Joiner.on(":")
                .join(
                    "relative/path/to/some.jar",
                    "/absolute/path/to/some.jar",
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 21:00:51 UTC 2025
    - 25.7K bytes
    - Viewed (0)
  2. 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
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Dec 17 16:17:01 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  3. impl/maven-core/src/test/java/org/apache/maven/MavenLifecycleParticipantTest.java

                }
    
                project.getModel().addDependency(dependency);
            }
    
            @Override
            public void afterSessionStart(MavenSession session) {
                session.getUserProperties().setProperty("injected", "bar");
            }
        }
    
        public static class InjectReactorDependency extends AbstractMavenLifecycleParticipant {
            @Override
            public void afterProjectsRead(MavenSession session) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6K bytes
    - Viewed (0)
  4. impl/maven-cli/src/main/java/org/apache/maven/cling/props/MavenPropertiesLoader.java

            substitute(sp, callback);
            sp.forEach(properties::setProperty);
        }
    
        public static void substitute(MavenProperties props, UnaryOperator<String> callback) {
            for (Enumeration<?> e = props.propertyNames(); e.hasMoreElements(); ) {
                String name = (String) e.nextElement();
                String value = props.getProperty(name);
                if (value == null) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jan 24 17:29:44 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  5. 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
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Jan 30 23:29:13 UTC 2025
    - 12K bytes
    - Viewed (0)
  6. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java

                        .forEach(k -> System.setProperty(k.getKey(), k.getValue()));
            } else {
                protoSession.getUserProperties().entrySet().stream()
                        .filter(k -> context.pushedUserProperties.contains(k.getKey()) || !sys.contains(k.getKey()))
                        .forEach(k -> System.setProperty(k.getKey(), k.getValue()));
            }
        }
    
        /**
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Oct 28 13:01:07 UTC 2025
    - 43.2K bytes
    - Viewed (0)
  7. 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()) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  8. 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() {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Jul 17 07:40:49 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  9. 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));
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Mar 21 04:56:21 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  10. 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 = """
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Oct 21 12:17:55 UTC 2025
    - 6.8K bytes
    - Viewed (0)
Back to top