Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 36 for setProject (0.09 sec)

  1. compat/maven-compat/src/test/java/org/apache/maven/project/inheritance/t03/ProjectInheritanceTest.java

            File pom0Basedir = pom0.getParentFile();
    
            File pom1 = new File(pom0Basedir, "p1/pom.xml");
    
            // load everything...
            MavenProject project0 = getProject(pom0);
            MavenProject project1 = getProject(pom1);
    
            assertEquals(pom0Basedir, project1.getParent().getBasedir());
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultEvent.java

        }
    
        @Override
        public Session getSession() {
            return session;
        }
    
        @Override
        public Optional<Project> getProject() {
            return Optional.ofNullable(session.getProject(delegate.getProject()));
        }
    
        @Override
        public Optional<MojoExecution> getMojoExecution() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  3. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/JapicmpTask.java

        }
    
        public void richReport(Action<? super RichReport> configureAction) {
            if (!getRichReport().isPresent()) {
                RichReport richReport = getProject().getObjects().newInstance(RichReport.class);
                DirectoryProperty buildDirectory = getProject().getLayout().getBuildDirectory();
                richReport.getDestinationDir().convention(buildDirectory.dir("reports"));
                getRichReport().set(richReport);
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Apr 26 10:58:32 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  4. compat/maven-compat/src/test/java/org/apache/maven/project/inheritance/t12scm/ProjectInheritanceTest.java

            File pom1 = new File(pom0Basedir, "modules/p1/pom.xml");
    
            // load the child project, which inherits from p0...
            MavenProject project0 = getProject(pom0);
            MavenProject project1 = getProject(pom1);
    
            System.out.println("\n\n");
            System.out.println("Parent SCM URL is: " + project0.getScm().getUrl());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProjectManager.java

                    ((DefaultProject) project).getProject().getRemoteProjectRepositories(), session::getRemoteRepository));
        }
    
        @Override
        public List<RemoteRepository> getRemotePluginRepositories(Project project) {
            return Collections.unmodifiableList(new MappedList<>(
                    ((DefaultProject) project).getProject().getRemotePluginRepositories(), session::getRemoteRepository));
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  6. compat/maven-compat/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java

                throw e;
            }
        }
    
        protected MavenProject getProject(File pom) throws Exception {
            ProjectBuildingRequest configuration = new DefaultProjectBuildingRequest();
            configuration.setLocalRepository(getLocalRepository());
            initRepoSession(configuration);
    
            return projectBuilder.build(pom, configuration).getProject();
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  7. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProjectBuilder.java

                    }
    
                    @Nonnull
                    @Override
                    public Optional<Project> getProject() {
                        return Optional.ofNullable(session.getProject(res.getProject()));
                    }
    
                    @Nonnull
                    @Override
                    public Collection<BuilderProblem> getProblems() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8K bytes
    - Viewed (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java

            ProjectBuildingRequest request = injectSession(toRequest(configuration));
    
            try {
                return projectBuilder.build(pom, request).getProject();
            } catch (ProjectBuildingException e) {
                throw transformError(e);
            }
        }
    
        // This is used by the SITE plugin.
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  9. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProject.java

            } finally {
                Thread.currentThread().setContextClassLoader(ttcl);
            }
        }
    
        public InternalMavenSession getSession() {
            return session;
        }
    
        public MavenProject getProject() {
            return project;
        }
    
        @Nonnull
        @Override
        public String getGroupId() {
            return project.getGroupId();
        }
    
        @Nonnull
        @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  10. api/maven-api-core/src/main/java/org/apache/maven/api/Event.java

        Session getSession();
    
        /**
         * Gets the current project (if any).
         *
         * @return the current project or {@code empty()} if not applicable
         */
        @Nonnull
        Optional<Project> getProject();
    
        /**
         * Gets the current mojo execution (if any).
         *
         * @return the current mojo execution or {@code empty()} if not applicable
         */
        @Nonnull
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Thu Mar 23 05:29:39 UTC 2023
    - 2.1K bytes
    - Viewed (0)
Back to top