Viewing Issue Advanced Details

ID 0003249 Category [DMDirc] *Unsorted Severity minor
Reproducibility always Date Submitted 2009-12-28 21:24 Last Update 2010-03-06 21:33
Reporter Greboid Assigned To Greboid View Status public
Priority normal Status closed Resolution fixed
Platform Fixed in Version Target Version 0.6.3
Product Version Product Build
Summary 0003249: formatter extraction DMDirc\identities\default\formatter\formatter (The system cannot find the path specified)
Description
formatter extraction DMDirc\identities\default\formatter\formatter (The system cannot find the path specified)
Needs unit test no
Upstream Bug URL

Relationships

Notes

authorGregory Holmes <greg@dmdirc.com>2009-12-28 22:07:46 (GMT)
committer Gregory Holmes <greboid@dmdirc.com>2009-12-28 22:10:24 (GMT)
commit2d6d97a4a78d3aece6fdd265d073201938785fab (patch) (side-by-side diff)
Change-Id: I13bd773603917cf892dc016769995e1d318d2c3a Reviewed-on: http://gerrit.dmdirc.com/176 Tested-by: Gregory Holmes <greboid@dmdirc.com> Reviewed-by: Gregory Holmes <greboid@dmdirc.com>
-rw-r--r--src/com/dmdirc/config/IdentityManager.java13
1 files changed, 12 insertions, 1 deletions
Click to Expand/Collapse
diff src/com/dmdirc/config/IdentityManager.java
@@ -116,7 +116,7 @@ public final class IdentityManager {
private static void loadDefaults() {
final String[] targets = {"default", "modealiases"};
final String dir = getDirectory();
- extractIdentities("default/formatter");
+ extractFormatters();
for (String target : targets) {
final File file = new File(dir + target);
@@ -143,6 +143,17 @@ public final class IdentityManager {
}
}
}
+
+ private static void extractFormatters() {
+ try {
+ ResourceManager.getResourceManager().extractResource(
+ "com/dmdirc/config/defaults/default/formatter",
+ getDirectory() + "default/", false);
+ } catch (IOException ex) {
+ Logger.userError(ErrorLevel.MEDIUM, "Unable to extract default "
+ + "formatters: " + ex.getMessage());
+ }
+ }
/**
* Extracts the specific set of default identities to the user's identity

Issue History

Date Modified Username Field Change
2009-12-28 21:24 Greboid New Issue
2009-12-28 21:24 Greboid Status new => assigned
2009-12-28 21:24 Greboid Assigned To => Greboid
2009-12-28 22:11 Greboid Checkin
2009-12-28 22:11 Greboid Note Added: 0008353
2009-12-28 22:11 Greboid Status assigned => resolved
2009-12-28 22:11 Greboid Resolution open => fixed
2010-03-06 21:33 Greboid Status resolved => closed