Subversion Repositories SmartDukaan

Rev

Rev 21343 | Rev 21360 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 21343 Rev 21348
Line 57... Line 57...
57
		
57
		
58
		Properties properties = new Properties();
58
		Properties properties = new Properties();
59
		try {
59
		try {
60
			properties.load(this.getClass().getClassLoader().getResourceAsStream("META-INF/env.property"));
60
			properties.load(this.getClass().getClassLoader().getResourceAsStream("META-INF/env.property"));
61
		} catch (IOException e) {
61
		} catch (IOException e) {
62
			LOGGER.error("Error in reading env property file.Addin dev property"+e);
62
			LOGGER.error("Error in reading env property file.Adding default property"+e);
63
			properties.put("profile", "dev");
63
			properties.put("profile", "dev");
64
		}
64
		}
65
		LOGGER.info("Properties "+properties.toString());
-
 
66
		activeProfile = (String) properties.get("profile");
65
		activeProfile = (String) properties.get("profile");
67
		
66
		
68
 
67
 
69
		if ("prod".equals(activeProfile)) {
68
		if ("prod".equals(activeProfile)) {
70
			resource = new ClassPathResource("/META-INF/prod.properties");
69
			resource = new ClassPathResource("/META-INF/prod.properties");