View Javadoc
1   package org.kuali.common.deploy;
2   
3   import java.util.ArrayList;
4   import java.util.List;
5   
6   import org.kuali.common.deploy.config.DeployProjectConstants;
7   import org.kuali.common.util.Str;
8   
9   /**
10   * @deprecated
11   */
12  @Deprecated
13  public class DeployProjectContext extends org.kuali.common.util.DefaultProjectContext {
14  
15  	private static final String ARTIFACT_ID = DeployProjectConstants.ARTIFACT_ID;
16  	private static final List<String> LOCATIONS = getLocations();
17  
18  	public DeployProjectContext() {
19  		super(ARTIFACT_ID, new ArrayList<String>(LOCATIONS));
20  	}
21  
22  	private static final List<String> getLocations() {
23  		List<String> locations = new ArrayList<String>();
24  
25  		// Added for backwards compatibility reasons only
26  		locations.add("classpath:org/kuali/common/kuali-impex-producer/sql/schema.properties");
27  		locations.add("classpath:org/kuali/common/kuali-impex-producer/sql/mpx.properties");
28  		// Added for backwards compatibility reasons only
29  
30  		locations.add("classpath:" + Str.getPath(org.kuali.common.util.MavenConstants.KUALI_COMMON_GROUP_ID) + "/deploy/deploy.properties");
31  		locations.add("classpath:" + Str.getPath(org.kuali.common.util.MavenConstants.KUALI_COMMON_GROUP_ID) + "/deploy/driver.properties");
32  		locations.add("classpath:${project.groupId.path}/deploy.properties");
33  		locations.add("classpath:${project.groupId.path}/${project.artifactId}.properties");
34  		locations.add("classpath:${project.groupId.path}/env${deploy.env}.properties");
35  		return locations;
36  	}
37  
38  }