Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 7 of 7 for setBuild (0.1 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. compat/maven-model/src/test/java/org/apache/maven/model/ModelTest.java

            Build build = new Build();
            build.setOutputDirectory("myOutputDirectory");
            model.setBuild(build);
            Build build2 = model.getBuild();
            assertNotNull(build2);
            assertEquals("myOutputDirectory", build2.getOutputDirectory());
            model.setBuild(null);
            assertNull(model.getBuild());
        }
    
        @Test
        void testEqualsNullSafe() {
            assertNotEquals(null, new Model());
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Dec 16 08:09:30 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  2. api/maven-api-core/src/test/java/org/apache/maven/api/SourceRootTest.java

            when(build.getOutputDirectory()).thenReturn("target/classes");
            when(build.getTestOutputDirectory()).thenReturn("target/test-classes");
    
            Project project = mock(Project.class);
            when(project.getBuild()).thenReturn(build);
            when(project.getBasedir()).thenReturn(Path.of("myproject"));
            when(project.getOutputDirectory(any(ProjectScope.class))).thenCallRealMethod();
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Sun Oct 26 17:22:14 GMT 2025
    - 2.9K bytes
    - Click Count (0)
  3. impl/maven-core/src/main/java/org/apache/maven/ReactorReader.java

                if (project.hasLifecyclePhase("test-compile")) {
                    return new File(project.getBuild().getTestOutputDirectory());
                }
            } else {
                String type = artifact.getProperty("type", "");
                File outputDirectory = new File(project.getBuild().getOutputDirectory());
    
                // Check if the project is being built during this session, and if we can expect any output.
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Dec 15 11:20:38 GMT 2025
    - 24.4K bytes
    - Click Count (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/Project.java

        @Nonnull
        Model getModel();
    
        /**
         * Shorthand method.
         *
         * @return the build element of the project model
         */
        @Nonnull
        default Build getBuild() {
            Build build = getModel().getBuild();
            return build != null ? build : Build.newInstance();
        }
    
        /**
         * Returns the path to the pom file for this project.
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Nov 07 13:11:07 GMT 2025
    - 15.3K bytes
    - Click Count (0)
  5. impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/DefaultConsumerPomBuilder.java

            Parent parent = model.getParent();
            if (parent != null) {
                model = model.withParent(parent.withRelativePath(null));
            }
            var projectSources = project.getBuild().getDelegate().getSources();
            if (SourceQueries.usesModuleSourceHierarchy(projectSources)) {
                // Dependencies are dispatched by maven-jar-plugin in the POM generated for each module.
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Mar 04 19:49:40 GMT 2026
    - 22.3K bytes
    - Click Count (0)
  6. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/concurrent/BuildPlanExecutor.java

                            .collect(Collectors.toSet());
                    for (BuildStep step : planSteps) {
                        MavenProject project = step.project;
                        for (Plugin plugin : project.getBuild().getPlugins()) {
                            for (PluginExecution execution : plugin.getExecutions()) {
                                for (String goal : execution.getGoals()) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Oct 16 06:12:36 GMT 2025
    - 55.1K bytes
    - Click Count (0)
  7. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/PluginUpgradeStrategy.java

                UpgradeContext context, Model effectiveModel, Map<String, PluginUpgrade> pluginUpgrades) {
            Set<String> pluginsNeedingUpgrade = new HashSet<>();
    
            Build build = effectiveModel.getBuild();
            if (build != null) {
                // Check build/plugins - these are the actual plugins used in the build
                for (Plugin plugin : build.getPlugins()) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 37K bytes
    - Click Count (0)
Back to Top