001    package org.kuali.common.deploy;
002    
003    import java.util.ArrayList;
004    import java.util.List;
005    
006    import org.kuali.common.deploy.config.DeployProjectConstants;
007    import org.kuali.common.util.Str;
008    
009    /**
010     * @deprecated
011     */
012    @Deprecated
013    public class DeployProjectContext extends org.kuali.common.util.DefaultProjectContext {
014    
015            private static final String ARTIFACT_ID = DeployProjectConstants.ARTIFACT_ID;
016            private static final List<String> LOCATIONS = getLocations();
017    
018            public DeployProjectContext() {
019                    super(ARTIFACT_ID, new ArrayList<String>(LOCATIONS));
020            }
021    
022            private static final List<String> getLocations() {
023                    List<String> locations = new ArrayList<String>();
024    
025                    // Added for backwards compatibility reasons only
026                    locations.add("classpath:org/kuali/common/kuali-impex-producer/sql/schema.properties");
027                    locations.add("classpath:org/kuali/common/kuali-impex-producer/sql/mpx.properties");
028                    // Added for backwards compatibility reasons only
029    
030                    locations.add("classpath:" + Str.getPath(org.kuali.common.util.MavenConstants.KUALI_COMMON_GROUP_ID) + "/deploy/deploy.properties");
031                    locations.add("classpath:" + Str.getPath(org.kuali.common.util.MavenConstants.KUALI_COMMON_GROUP_ID) + "/deploy/driver.properties");
032                    locations.add("classpath:${project.groupId.path}/deploy.properties");
033                    locations.add("classpath:${project.groupId.path}/${project.artifactId}.properties");
034                    locations.add("classpath:${project.groupId.path}/env${deploy.env}.properties");
035                    return locations;
036            }
037    
038    }