001    package org.apache.maven.project;
002    
003    /*
004     * Licensed to the Apache Software Foundation (ASF) under one
005     * or more contributor license agreements.  See the NOTICE file
006     * distributed with this work for additional information
007     * regarding copyright ownership.  The ASF licenses this file
008     * to you under the Apache License, Version 2.0 (the
009     * "License"); you may not use this file except in compliance
010     * with the License.  You may obtain a copy of the License at
011     *
012     *  http://www.apache.org/licenses/LICENSE-2.0
013     *
014     * Unless required by applicable law or agreed to in writing,
015     * software distributed under the License is distributed on an
016     * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
017     * KIND, either express or implied.  See the License for the
018     * specific language governing permissions and limitations
019     * under the License.
020     */
021    
022    import java.util.Date;
023    import java.util.Properties;
024    
025    import org.apache.maven.artifact.repository.ArtifactRepository;
026    import org.apache.maven.profiles.ProfileManager;
027    
028    @Deprecated
029    public class DefaultProjectBuilderConfiguration
030        implements ProjectBuilderConfiguration
031    {
032    
033        private ProfileManager globalProfileManager;
034    
035        private ArtifactRepository localRepository;
036    
037        private Properties userProperties;
038    
039        private Properties executionProperties = System.getProperties();
040    
041        private Date buildStartTime;
042    
043        public DefaultProjectBuilderConfiguration()
044        {
045        }
046    
047        public ProjectBuilderConfiguration setGlobalProfileManager( ProfileManager globalProfileManager )
048        {
049            this.globalProfileManager = globalProfileManager;
050            return this;
051        }
052    
053        public ProfileManager getGlobalProfileManager()
054        {
055            return globalProfileManager;
056        }
057    
058        public ProjectBuilderConfiguration setLocalRepository( ArtifactRepository localRepository )
059        {
060            this.localRepository = localRepository;
061            return this;
062        }
063    
064        public ArtifactRepository getLocalRepository()
065        {
066            return localRepository;
067        }
068    
069        public ProjectBuilderConfiguration setUserProperties( Properties userProperties )
070        {
071            this.userProperties = userProperties;
072            return this;
073        }
074    
075        public Properties getUserProperties()
076        {
077            if ( userProperties == null )
078            {
079                userProperties = new Properties();
080            }
081    
082            return userProperties;
083        }
084    
085        public Properties getExecutionProperties()
086        {
087            return executionProperties;
088        }
089    
090        public ProjectBuilderConfiguration setExecutionProperties( Properties executionProperties )
091        {
092            this.executionProperties = executionProperties;
093            return this;
094        }
095    
096        public Date getBuildStartTime()
097        {
098            return buildStartTime;
099        }
100    
101        public ProjectBuilderConfiguration setBuildStartTime( Date buildStartTime )
102        {
103            this.buildStartTime = buildStartTime;
104            return this;
105        }
106    
107    }