public class OccurrenceIndex {
|
|
public static String biocacheMediaUrl = "http://biocache.ala.org.au/biocache-media/";
|
public static String biocacheMediaDir = "/data/biocache-media/";
|
protected static final Logger logger = Logger.getLogger(OccurrenceIndex.class);
|
|
static {
|
//check the properties file for an override
|
try {
|
Properties p = new Properties();
|
p.load(OccurrenceIndex.class.getResourceAsStream("/biocache.properties"));
|
//InputStream inStream = Thread.currentThread().getContextClassLoader().getResourceAsStream("biocache.properties");
|
//p.load(inStream);
|
logger.debug("Retrieved biocacheMediaUrl: " + p.getProperty("biocacheMediaUrl"));
|
logger.debug("Retrieved biocacheMediaDir: " + p.getProperty("biocacheMediaDir"));
|
|
if(p.getProperty("biocacheMediaUrl") != null)
|
biocacheMediaUrl = p.getProperty("biocacheMediaUrl");
|
if(p.getProperty("biocacheMediaDir") != null)
|
biocacheMediaDir = p.getProperty("biocacheMediaDir"); |