package com.litle.sdk;

import java.io.File;

public class Configuration {
	
	private static final String LITLE_SDK_CONFIG = ".litle_SDK_config.properties";

	public File location() {
		File file = new File(System.getProperty("user.home") + File.separator + LITLE_SDK_CONFIG);
		if(System.getProperty("java.specification.version").equals("1.4")) {
			if(System.getProperty("LITLE_CONFIG_DIR") != null) {
				file = new File(System.getProperty("LITLE_CONFIG_DIR") + File.separator + LITLE_SDK_CONFIG);
			}
		}
		else {
			if(System.getenv("LITLE_CONFIG_DIR") != null) {
				file = new File(System.getenv("LITLE_CONFIG_DIR") + File.separator + LITLE_SDK_CONFIG);
			}
		}
		return file;
	}
}

@@ -510,21 +510,16 @@
 %0A%09%09else 
-%7B%0A%09%09%09
 if(Syste
@@ -550,32 +550,32 @@
 IR%22) != null) %7B%0A
+
 %09%09%09%09file = new F
@@ -648,29 +648,285 @@
 _CONFIG);%0A%09%09
-%09
 %7D%0A
-%09%09
+        else %7B%0A        %09if (getClass().getClassLoader().getResource(LITLE_SDK_CONFIG) != null) %7B%0A            %09String filePath = getClass().getClassLoader().getResource(LITLE_SDK_CONFIG).getPath();%0A            %09file = new File(filePath);%0A            %7D%0A        
 %7D%0A%09%09return f

check for litle property file in the resource directory