| 1 | package be.nikiroo.fanfix.bundles; |
| 2 | |
| 3 | import java.io.File; |
| 4 | import java.io.IOException; |
| 5 | |
| 6 | import be.nikiroo.utils.resources.Bundle; |
| 7 | |
| 8 | /** |
| 9 | * This class manages the configuration of the application. |
| 10 | * |
| 11 | * @author niki |
| 12 | */ |
| 13 | public class ConfigBundle extends Bundle<Config> { |
| 14 | /** |
| 15 | * Create a new {@link ConfigBundle}. |
| 16 | */ |
| 17 | public ConfigBundle() { |
| 18 | super(Config.class, Target.config5, null); |
| 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 | } |