package ca.corefacility.bioinformatics.irida.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;

/**
 * Configuration class for loading properties files. This configuration source
 * looks in three places for properties:
 * 
 * <ol>
 * <li>within the package at jdbc.dev.properties,</li>
 * <li>within the package at filesystem.properties, and</li>
 * <li>on the filesystem at /etc/irida/irida.conf</li>
 * </ol>
 * 
 * @author Franklin Bristow <franklin.bristow@phac-aspc.gc.ca>
 * 
 */
@Configuration
@PropertySource(value = { "classpath:/ca/corefacility/bioinformatics/irida/config/jdbc.dev.properties",
		"classpath:/ca/corefacility/bioinformatics/irida/config/filesystem.properties", "file:/etc/irida/irida.conf" }, ignoreResourceNotFound = true)
public class IridaApiPropertyPlaceholderConfig {

	@Bean
	public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() {
		return new PropertySourcesPlaceholderConfigurer();
	}
}

@@ -735,17 +735,19 @@
 alue = %7B
- 
+%0A%09%09
 %22classpa
@@ -795,27 +795,53 @@
 config/jdbc.
+$%7Bspring.profiles.active:
 dev
+%7D
 .properties%22

use the active spring profile to select a config file