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