summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorMaurice Laveaux <m.laveaux@student.tue.nl>2014-05-01 17:26:17 +0200
committerMaurice Laveaux <m.laveaux@student.tue.nl>2014-05-01 17:26:17 +0200
commitdaf59bc4f7e5d29466e61ada9bf5eaaf2431ac3c (patch)
tree0c41df9d9d10fffeaf8c61c0eb9d180015f2a025 /src/main
parent355bb332328a16ae967cf276bfdbe4cda0776c47 (diff)
downloadTwitterDataAnalytics-daf59bc4f7e5d29466e61ada9bf5eaaf2431ac3c.tar.gz
Moved setting the default values.
* Moved from TweetShell to Configuration.
Diffstat (limited to 'src/main')
-rw-r--r--src/main/TweetShell.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main/TweetShell.java b/src/main/TweetShell.java
index 25d785a..0849592 100644
--- a/src/main/TweetShell.java
+++ b/src/main/TweetShell.java
@@ -227,14 +227,12 @@ public class TweetShell implements TwitterApi.PinSupplier {
if (!(oldListener instanceof DataWriter)) {
Configuration config = Configuration.getConfig();
- String profilesFilename = config.getProperty(DataWriter.CFG_PROFILE_FILENAME, "profiles.txt");
- String tweetsFilename = config.getProperty(DataWriter.CFG_TWEETS_FILENAME, "tweets.txt");
+ String profilesFilename = config.getProperty(DataWriter.CFG_PROFILE_FILENAME);
+ String tweetsFilename = config.getProperty(DataWriter.CFG_TWEETS_FILENAME);
stream.setResultListener(new DataWriter(profilesFilename, tweetsFilename));
// save the changes to the config.
- config.setProperty(DataWriter.CFG_PROFILE_FILENAME, profilesFilename);
- config.setProperty(DataWriter.CFG_TWEETS_FILENAME, tweetsFilename);
config.save();
}
break;