Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
maven-model-builder-3.5.4.jar - Model Builder Module
maven-model-builder-3.5.4.jar is the JAR file for Apache Maven 3.5.4 Model Builder module.
Apache Maven is a software project management and comprehension tool.
JAR File Size and Download Location:
File: 2018-06-17 19:31 177426 lib\maven-model-builder-3.5.4.jar Download: Apache Maven Website
✍: FYIcenter.com
⏎ org/apache/maven/model/building/DefaultModelBuildingRequest.java
package org.apache.maven.model.building; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import java.io.File; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Properties; import org.apache.maven.model.Model; import org.apache.maven.model.Profile; import org.apache.maven.model.resolution.ModelResolver; import org.apache.maven.model.resolution.WorkspaceModelResolver; /** * Collects settings that control building of effective models. * * @author Benjamin Bentmann */ public class DefaultModelBuildingRequest implements ModelBuildingRequest { private Model rawModel; private File pomFile; private ModelSource modelSource; private int validationLevel = VALIDATION_LEVEL_STRICT; private boolean processPlugins; private boolean twoPhaseBuilding; private boolean locationTracking; private List<Profile> profiles; private List<String> activeProfileIds; private List<String> inactiveProfileIds; private Properties systemProperties; private Properties userProperties; private Date buildStartTime; private ModelResolver modelResolver; private ModelBuildingListener modelBuildingListener; private ModelCache modelCache; private WorkspaceModelResolver workspaceResolver; /** * Creates an empty request. */ public DefaultModelBuildingRequest() { } /** * Creates a shallow copy of the specified request. * * @param request The request to copy, must not be {@code null}. */ public DefaultModelBuildingRequest( ModelBuildingRequest request ) { setPomFile( request.getPomFile() ); setModelSource( request.getModelSource() ); setValidationLevel( request.getValidationLevel() ); setProcessPlugins( request.isProcessPlugins() ); setTwoPhaseBuilding( request.isTwoPhaseBuilding() ); setProfiles( request.getProfiles() ); setActiveProfileIds( request.getActiveProfileIds() ); setInactiveProfileIds( request.getInactiveProfileIds() ); setSystemProperties( request.getSystemProperties() ); setUserProperties( request.getUserProperties() ); setBuildStartTime( request.getBuildStartTime() ); setModelResolver( request.getModelResolver() ); setModelBuildingListener( request.getModelBuildingListener() ); setModelCache( request.getModelCache() ); } @Override public File getPomFile() { return pomFile; } @Override public DefaultModelBuildingRequest setPomFile( File pomFile ) { this.pomFile = ( pomFile != null ) ? pomFile.getAbsoluteFile() : null; return this; } @Override public synchronized ModelSource getModelSource() { if ( modelSource == null && pomFile != null ) { modelSource = new FileModelSource( pomFile ); } return modelSource; } @Override public DefaultModelBuildingRequest setModelSource( ModelSource modelSource ) { this.modelSource = modelSource; return this; } @Override public int getValidationLevel() { return validationLevel; } @Override public DefaultModelBuildingRequest setValidationLevel( int validationLevel ) { this.validationLevel = validationLevel; return this; } @Override public boolean isProcessPlugins() { return processPlugins; } @Override public DefaultModelBuildingRequest setProcessPlugins( boolean processPlugins ) { this.processPlugins = processPlugins; return this; } @Override public boolean isTwoPhaseBuilding() { return twoPhaseBuilding; } @Override public DefaultModelBuildingRequest setTwoPhaseBuilding( boolean twoPhaseBuilding ) { this.twoPhaseBuilding = twoPhaseBuilding; return this; } @Override public boolean isLocationTracking() { return locationTracking; } @Override public DefaultModelBuildingRequest setLocationTracking( boolean locationTracking ) { this.locationTracking = locationTracking; return this; } @Override public List<Profile> getProfiles() { if ( profiles == null ) { profiles = new ArrayList<>(); } return profiles; } @Override public DefaultModelBuildingRequest setProfiles( List<Profile> profiles ) { if ( profiles != null ) { this.profiles = new ArrayList<>( profiles ); } else { this.profiles = null; } return this; } @Override public List<String> getActiveProfileIds() { if ( activeProfileIds == null ) { activeProfileIds = new ArrayList<>(); } return activeProfileIds; } @Override public DefaultModelBuildingRequest setActiveProfileIds( List<String> activeProfileIds ) { if ( activeProfileIds != null ) { this.activeProfileIds = new ArrayList<>( activeProfileIds ); } else { this.activeProfileIds = null; } return this; } @Override public List<String> getInactiveProfileIds() { if ( inactiveProfileIds == null ) { inactiveProfileIds = new ArrayList<>(); } return inactiveProfileIds; } @Override public DefaultModelBuildingRequest setInactiveProfileIds( List<String> inactiveProfileIds ) { if ( inactiveProfileIds != null ) { this.inactiveProfileIds = new ArrayList<>( inactiveProfileIds ); } else { this.inactiveProfileIds = null; } return this; } @Override public Properties getSystemProperties() { if ( systemProperties == null ) { systemProperties = new Properties(); } return systemProperties; } @Override public DefaultModelBuildingRequest setSystemProperties( Properties systemProperties ) { if ( systemProperties != null ) { this.systemProperties = new Properties(); synchronized ( systemProperties ) { // avoid concurrentmodification if someone else sets/removes an unrelated system property this.systemProperties.putAll( systemProperties ); } } else { this.systemProperties = null; } return this; } @Override public Properties getUserProperties() { if ( userProperties == null ) { userProperties = new Properties(); } return userProperties; } @Override public DefaultModelBuildingRequest setUserProperties( Properties userProperties ) { if ( userProperties != null ) { this.userProperties = new Properties(); this.userProperties.putAll( userProperties ); } else { this.userProperties = null; } return this; } @Override public Date getBuildStartTime() { return buildStartTime; } @Override public ModelBuildingRequest setBuildStartTime( Date buildStartTime ) { this.buildStartTime = buildStartTime; return this; } @Override public ModelResolver getModelResolver() { return this.modelResolver; } @Override public DefaultModelBuildingRequest setModelResolver( ModelResolver modelResolver ) { this.modelResolver = modelResolver; return this; } @Override public ModelBuildingListener getModelBuildingListener() { return modelBuildingListener; } @Override public ModelBuildingRequest setModelBuildingListener( ModelBuildingListener modelBuildingListener ) { this.modelBuildingListener = modelBuildingListener; return this; } @Override public ModelCache getModelCache() { return this.modelCache; } @Override public DefaultModelBuildingRequest setModelCache( ModelCache modelCache ) { this.modelCache = modelCache; return this; } @Override public Model getRawModel() { return rawModel; } @Override public ModelBuildingRequest setRawModel( Model rawModel ) { this.rawModel = rawModel; return this; } @Override public WorkspaceModelResolver getWorkspaceModelResolver() { return workspaceResolver; } @Override public ModelBuildingRequest setWorkspaceModelResolver( WorkspaceModelResolver workspaceResolver ) { this.workspaceResolver = workspaceResolver; return this; } }
⏎ org/apache/maven/model/building/DefaultModelBuildingRequest.java
Or download all of them as a single archive file:
File name: maven-model-builder-3.5.4-src.zip File size: 146807 bytes Release date: 2018-06-17 Download
⇐ maven-settings-builder-3.5.4.jar - Maven Settings Builder Module
2023-06-19, 10492👍, 0💬
Popular Posts:
JDK 11 jdk.jdeps.jmod is the JMOD file for JDK 11 JDeps tool, which can be invoked by the "jdeps" co...
JRE 8 plugin.jar is the JAR file for JRE 8 Java Control Panel Plugin interface and tools. JRE (Java ...
io.jar is a component in iText Java library to provide input/output functionalities. iText Java libr...
How to read XML document from socket connections with the socket\DelayedInput.java provided in the A...
Apache Commons Lang 3 is the 3rd version of Apache Commons Lang, which provides a host of helper uti...