Default configuration dir: $HOME/.fanfix
[fanfix.git] / src / be / nikiroo / fanfix / bundles / ConfigBundle.java
CommitLineData
08fe2e33
NR
1package be.nikiroo.fanfix.bundles;
2
3import java.io.File;
4import java.io.IOException;
5
948637bc 6import be.nikiroo.utils.resources.Bundle;
08fe2e33
NR
7
8/**
9 * This class manages the configuration of the application.
10 *
11 * @author niki
12 */
13public class ConfigBundle extends Bundle<Config> {
14 public ConfigBundle() {
15 super(Config.class, Target.config);
16 }
17
18 /**
19 * Update resource file.
20 *
21 * @param args
22 * not used
23 *
24 * @throws IOException
25 * in case of I/O error
26 */
27 public static void main(String[] args) throws IOException {
28 String path = new File(".").getAbsolutePath()
29 + "/src/be/nikiroo/fanfix/bundles/";
30 new ConfigBundle().updateFile(path);
31 System.out.println("Path updated: " + path);
32 }
33
34 @Override
35 protected String getBundleDisplayName() {
36 return "Configuration options";
37 }
38}