Skip to content

Commit 92f940d

Browse files
committed
Support running kSar in tr_TR locale
The error was java.lang.ExceptionInInitializerError at net.atomique.ksar.OSParser.init(OSParser.java:32) at net.atomique.ksar.parser.HpuxHeaderTest.test(HpuxHeaderTest.java:27) Caused by: java.lang.IllegalArgumentException: IO exception while parsing null (-//NET/ATOMIQUE/KSAR//Config.xml) at net.atomique.ksar.XMLConfig.loadConfig(XMLConfig.java:83) at net.atomique.ksar.XMLConfig.loadFromResources(XMLConfig.java:58) at net.atomique.ksar.GlobalOptions.<init>(GlobalOptions.java:56) at net.atomique.ksar.GlobalOptions.<clinit>(GlobalOptions.java:29) ... 2 more Caused by: java.io.FileNotFoundException: File -//NET/ATOMIQUE/KSAR/CONFIG.DTD is not found in kSar resources at net.atomique.ksar.XMLConfig.resolveEntity(XMLConfig.java:46) at
1 parent 0ca313a commit 92f940d

File tree

7 files changed

+6
-7
lines changed

7 files changed

+6
-7
lines changed

src/main/java/net/atomique/ksar/XMLConfig.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ public InputSource resolveEntity(String publicId, String systemId)
4040
}
4141

4242
String dtdFile = publicId.substring(KSAR_DTD_PREFIX.length() - 1);
43-
dtdFile = dtdFile.toLowerCase();
4443
InputStream inputStream = getClass().getResourceAsStream(dtdFile);
4544
if (inputStream == null) {
4645
throw new FileNotFoundException("File " + publicId + " is not found in kSar resources");

src/main/resources/AIX.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE ConfiG PUBLIC "-//NET/ATOMIQUE/KSAR/CONFIG.DTD" "config.dtd" >
2+
<!DOCTYPE ConfiG PUBLIC "-//NET/ATOMIQUE/KSAR/config.dtd" "config.dtd" >
33
<!--
44
Description:
55
Configure statistics and their corresponding graphs (plots+stacks)

src/main/resources/Config.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE ConfiG PUBLIC "-//NET/ATOMIQUE/KSAR/CONFIG.DTD" "config.dtd" >
2+
<!DOCTYPE ConfiG PUBLIC "-//NET/ATOMIQUE/KSAR/config.dtd" "config.dtd" >
33
<!--
44
Description:
55
Configure color of graphs

src/main/resources/Esar.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE ConfiG PUBLIC "-//NET/ATOMIQUE/KSAR/CONFIG.DTD" "config.dtd">
2+
<!DOCTYPE ConfiG PUBLIC "-//NET/ATOMIQUE/KSAR/config.dtd" "config.dtd">
33
<!--
44
Description:
55
Configure statistics and their corresponding graphs (plots+stacks)

src/main/resources/HPUX.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE ConfiG PUBLIC "-//NET/ATOMIQUE/KSAR/CONFIG.DTD" "config.dtd">
2+
<!DOCTYPE ConfiG PUBLIC "-//NET/ATOMIQUE/KSAR/config.dtd" "config.dtd">
33
<!--
44
Description:
55
Configure statistics and their corresponding graphs (plots+stacks)

src/main/resources/Linux.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE ConfiG PUBLIC "-//NET/ATOMIQUE/KSAR/CONFIG.DTD" "config.dtd">
2+
<!DOCTYPE ConfiG PUBLIC "-//NET/ATOMIQUE/KSAR/config.dtd" "config.dtd">
33
<!--
44
Description:
55
Configure statistics and their corresponding graphs (plots+stacks)

src/main/resources/SunOS.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE ConfiG PUBLIC "-//NET/ATOMIQUE/KSAR/CONFIG.DTD" "config.dtd">
2+
<!DOCTYPE ConfiG PUBLIC "-//NET/ATOMIQUE/KSAR/config.dtd" "config.dtd">
33
<!--
44
Description:
55
Configure statistics and their corresponding graphs (plots+stacks)

0 commit comments

Comments
 (0)