Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 49 for getBuild (0.06 sec)

  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());
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/DefaultProfileInjector.java

                    merger.mergeModelBase(builder, model, profile);
    
                    if (profile.getBuild() != null) {
                        Build build = model.getBuild() != null ? model.getBuild() : Build.newInstance();
                        Build.Builder bbuilder = Build.newBuilder(build);
                        merger.mergeBuildBase(bbuilder, build, profile.getBuild());
                        builder.build(bbuilder.build());
                    }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  3. compat/maven-model/src/test/java/org/apache/maven/model/SerializationTest.java

                model = new MavenXpp3Reader().read(is);
            }
    
            // Serialize an inner child here so that the BaseObject.childrenTracking is non null
            Build build = model.getBuild();
    
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            try (ObjectOutputStream oos = new ObjectOutputStream(baos)) {
                oos.writeObject(build);
            }
    
            Build build2;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/execution/DefaultBuildResumptionDataRepository.java

            Properties properties =
                    loadResumptionFile(Paths.get(rootProject.getBuild().getDirectory()));
            applyResumptionProperties(request, properties);
        }
    
        @Override
        public void removeResumptionData(MavenProject rootProject) {
            Path resumeProperties = Paths.get(rootProject.getBuild().getDirectory(), RESUME_PROPERTIES_FILENAME);
            try {
                Files.deleteIfExists(resumeProperties);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  5. compat/maven-model-builder/src/main/java/org/apache/maven/model/normalization/DefaultModelNormalizer.java

        }
    
        @Override
        public Model mergeDuplicates(Model model, ModelBuildingRequest request, ModelProblemCollector problems) {
            Model.Builder builder = Model.newBuilder(model);
    
            Build build = model.getBuild();
            if (build != null) {
                List<Plugin> plugins = build.getPlugins();
                Map<Object, Plugin> normalized = new LinkedHashMap<>(plugins.size() * 2);
    
                for (Plugin plugin : plugins) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  6. compat/maven-model/src/test/java/org/apache/maven/model/v4/ModelXmlTest.java

                    + "      </plugin>\n"
                    + "    </plugins>\n"
                    + "  </build>\n"
                    + "</project>";
    
            Model model = fromXml(xml);
            Plugin plugin = model.getBuild().getPlugins().get(0);
            XmlNode node = plugin.getConfiguration();
            assertNotNull(node);
            assertEquals("http://maven.apache.org/POM/4.0.0", node.getNamespaceUri());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/project/path/DefaultPathTranslator.java

        public void alignToBaseDirectory(Model model, File basedir) {
            if (basedir == null) {
                return;
            }
    
            Build build = model.getBuild();
    
            if (build != null) {
                build.setDirectory(alignToBaseDirectory(build.getDirectory(), basedir));
    
                build.setSourceDirectory(alignToBaseDirectory(build.getSourceDirectory(), basedir));
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  8. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProjectManager.java

            Project prj = nonNull(project, "project");
            if (nonNull(scope, "scope") == ProjectScope.MAIN) {
                return prj.getBuild().getResources();
            } else if (scope == ProjectScope.TEST) {
                return prj.getBuild().getTestResources();
            } else {
                throw new IllegalArgumentException("Unsupported scope " + scope);
            }
        }
    
        @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  9. impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/DefaultConsumerPomArtifactTransformer.java

                return;
            }
            if (Features.consumerPom(session.getUserProperties())) {
                Path buildDir =
                        project.getBuild() != null ? Paths.get(project.getBuild().getDirectory()) : null;
                if (buildDir != null) {
                    Files.createDirectories(buildDir);
                }
                Path consumer = buildDir != null
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8K bytes
    - Viewed (0)
  10. compat/maven-model-builder/src/main/java/org/apache/maven/model/plugin/DefaultPluginConfigurationExpander.java

        @Override
        public void expandPluginConfiguration(Model model, ModelBuildingRequest request, ModelProblemCollector problems) {
            Build build = model.getBuild();
    
            if (build != null) {
                expand(build.getPlugins());
    
                PluginManagement pluginManagement = build.getPluginManagement();
    
                if (pluginManagement != null) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.7K bytes
    - Viewed (0)
Back to top