Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for setSources (0.2 sec)

  1. compat/maven-builder-support/src/test/java/org/apache/maven/building/DefaultProblemCollectorTest.java

            DefaultProblemCollector collector = new DefaultProblemCollector(null);
    
            collector.add(null, "PROBLEM1", -1, -1, null);
    
            collector.setSource("SOURCE_PROBLEM2");
            collector.add(null, "PROBLEM2", -1, -1, null);
    
            collector.setSource("SOURCE_PROBLEM3");
            collector.add(null, "PROBLEM3", -1, -1, null);
    
            assertEquals("", collector.getProblems().get(0).getSource());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelProblemCollector.java

                InputLocation location,
                Exception exception);
    
        void add(ModelProblem problem);
    
        ModelBuilderException newModelBuilderException();
    
        void setSource(String location);
    
        void setSource(Model model);
    
        String getSource();
    
        void setRootModel(Model model);
    
        Model getRootModel();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Sat Sep 28 09:03:24 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  3. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/PluginDescriptor.java

            this.setComponents(clone(original.getMojos(), this));
            this.setId(original.getId());
            this.setIsolatedRealm(original.isIsolatedRealm());
            this.setSource(original.getSource());
            this.setDependencies(original.getDependencies());
            this.setDependencyNode(original.getDependencyNode());
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  4. compat/maven-toolchain-builder/src/test/java/org/apache/maven/toolchain/building/ToolchainsBuildingExceptionTest.java

                    e.getMessage());
        }
    
        @Test
        void testUnknownPosition() {
            ProblemCollector problemCollector = ProblemCollectorFactory.newInstance(null);
            problemCollector.setSource("SOURCE");
            problemCollector.add(Problem.Severity.ERROR, "MESSAGE", -1, -1, new Exception());
            ToolchainsBuildingException e = new ToolchainsBuildingException(problemCollector.getProblems());
            assertEquals(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  5. compat/maven-builder-support/src/main/java/org/apache/maven/building/ProblemCollector.java

         * their source, but the next messages will use the new source.
         *
         * @param source a source
         */
        void setSource(String source);
    
        /**
         *
         * @return the collected Problems, never {@code null}
         */
        List<Problem> getProblems();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  6. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java

            profileActivationContext.setProjectProperties(inputModel.getDelegate().getProperties());
            problems.setSource(inputModel);
            List<Profile> activePomProfiles =
                    profileSelector.getActiveProfiles(inputModel.getProfiles(), profileActivationContext, problems);
    
            // model normalization
            problems.setSource(inputModel);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 83.6K bytes
    - Viewed (0)
  7. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelProblemCollector.java

        }
    
        @Override
        public List<ModelProblem> getProblems() {
            return problems;
        }
    
        public void setSource(String source) {
            this.source = source;
            this.sourceModel = null;
        }
    
        public void setSource(Model source) {
            this.sourceModel = source;
            this.source = null;
    
            if (rootModel == null) {
                rootModel = source;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  8. compat/maven-settings-builder/src/main/java/org/apache/maven/settings/building/DefaultSettingsProblemCollector.java

            this.problems = (problems != null) ? problems : new ArrayList<>();
        }
    
        public List<SettingsProblem> getProblems() {
            return problems;
        }
    
        public void setSource(String source) {
            this.source = source;
        }
    
        @Override
        public void add(SettingsProblem.Severity severity, String message, int line, int column, Exception cause) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  9. compat/maven-builder-support/src/main/java/org/apache/maven/building/DefaultProblemCollector.java

            this.problems = (problems != null) ? problems : new ArrayList<>();
        }
    
        @Override
        public List<Problem> getProblems() {
            return problems;
        }
    
        @Override
        public void setSource(String source) {
            this.source = source;
        }
    
        @Override
        public void add(Problem.Severity severity, String message, int line, int column, Exception cause) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  10. compat/maven-compat/src/main/java/org/apache/maven/profiles/ProfilesConversionUtils.java

        public static Profile convertFromProfileXmlProfile(org.apache.maven.profiles.Profile profileXmlProfile) {
            Profile profile = new Profile();
    
            profile.setId(profileXmlProfile.getId());
    
            profile.setSource("profiles.xml");
    
            org.apache.maven.profiles.Activation profileActivation = profileXmlProfile.getActivation();
    
            if (profileActivation != null) {
                Activation activation = new Activation();
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top