001/** 002 * Copyright 2010-2013 The Kuali Foundation 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.kuali.ole.db.sql; 017 018import org.kuali.common.jdbc.JdbcProjectContext; 019import org.kuali.common.util.ProjectContext; 020import org.kuali.common.util.property.ProjectProperties; 021import org.kuali.common.util.spring.ConfigUtils; 022import org.kuali.common.util.spring.MavenPropertySourceConfig; 023import org.springframework.context.annotation.Configuration; 024 025import java.util.List; 026 027/** 028 * This lets properties defined in the pom override properties defined elsewhere. System/environment properties still override everything. 029 */ 030@Configuration 031public class OleTestSqlMavenPropertySourceConfig extends MavenPropertySourceConfig { 032 033 @Override 034 protected List<ProjectProperties> getOtherProjectProperties() { 035 ProjectContext jdbc = new JdbcProjectContext(); 036 ProjectContext oleTestSql = new OleTestSqlProjectContext(); 037 return ConfigUtils.getProjectProperties(jdbc, oleTestSql); 038 } 039 040}