From 398d27d64f97195c24b0ae043e3872d51a1b2f39 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 1 Dec 2015 16:28:10 +0300 Subject: twitter.pl -> TwitterAuth --- src/main/java/com/juick/CrosspostComponent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/com/juick/CrosspostComponent.java') diff --git a/src/main/java/com/juick/CrosspostComponent.java b/src/main/java/com/juick/CrosspostComponent.java index b05dd1be..73791c5e 100644 --- a/src/main/java/com/juick/CrosspostComponent.java +++ b/src/main/java/com/juick/CrosspostComponent.java @@ -77,7 +77,7 @@ public class CrosspostComponent implements ServletContextListener, Stream.Strea public void run() { try { Properties conf = new Properties(); - conf.load(new FileInputStream("/etc/juick/crosspost.conf")); + conf.load(sce.getServletContext().getResourceAsStream("WEB-INF/juick.conf")); twitter_consumer_key = conf.getProperty("twitter_consumer_key", ""); twitter_consumer_secret = conf.getProperty("twitter_consumer_secret", ""); -- cgit v1.2.3