1 package org.kuali.common.deploy; 2 3 import java.util.ArrayList; 4 import java.util.List; 5 6 import org.kuali.common.util.DefaultProjectContext; 7 import org.kuali.common.util.MavenConstants; 8 import org.kuali.common.util.Str; 9 10 public class DeployProjectContext extends DefaultProjectContext { 11 12 private static final String ARTIFACT_ID = "kuali-deploy"; 13 private static final List<String> LOCATIONS = getLocations(); 14 15 public DeployProjectContext() { 16 super(ARTIFACT_ID, new ArrayList<String>(LOCATIONS)); 17 } 18 19 private static final List<String> getLocations() { 20 List<String> locations = new ArrayList<String>(); 21 locations.add("classpath:" + Str.getPath(MavenConstants.KUALI_COMMON_GROUP_ID) + "/deploy/deploy.properties"); 22 locations.add("classpath:" + Str.getPath(MavenConstants.KUALI_COMMON_GROUP_ID) + "/deploy/driver.properties"); 23 locations.add("classpath:${project.groupId.path}/deploy.properties"); 24 locations.add("classpath:${project.groupId.path}/${project.artifactId}.properties"); 25 locations.add("classpath:${project.groupId.path}/env${deploy.env}.properties"); 26 return locations; 27 } 28 29 }