All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.kuali.common.deploy.DeployProjectContext Maven / Gradle / Ivy

The newest version!
package org.kuali.common.deploy;

import java.util.ArrayList;
import java.util.List;

import org.kuali.common.deploy.config.DeployProjectConstants;
import org.kuali.common.util.Str;

/**
 * @deprecated
 */
@Deprecated
public class DeployProjectContext extends org.kuali.common.util.DefaultProjectContext {

	private static final String ARTIFACT_ID = DeployProjectConstants.ARTIFACT_ID;
	private static final List LOCATIONS = getLocations();

	public DeployProjectContext() {
		super(ARTIFACT_ID, new ArrayList(LOCATIONS));
	}

	private static final List getLocations() {
		List locations = new ArrayList();

		// Added for backwards compatibility reasons only
		locations.add("classpath:org/kuali/common/kuali-impex-producer/sql/schema.properties");
		locations.add("classpath:org/kuali/common/kuali-impex-producer/sql/mpx.properties");
		// Added for backwards compatibility reasons only

		locations.add("classpath:" + Str.getPath(org.kuali.common.util.MavenConstants.KUALI_COMMON_GROUP_ID) + "/deploy/deploy.properties");
		locations.add("classpath:" + Str.getPath(org.kuali.common.util.MavenConstants.KUALI_COMMON_GROUP_ID) + "/deploy/driver.properties");
		locations.add("classpath:${project.groupId.path}/deploy.properties");
		locations.add("classpath:${project.groupId.path}/${project.artifactId}.properties");
		locations.add("classpath:${project.groupId.path}/env${deploy.env}.properties");
		return locations;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy