The xsd for the resource xml files is invalid. In addition, the format of the value of the xml:lang attribute in resource xml files is invalid, according to the xml standard.
The attached patch:
provides a valid xsd
updates UtilProperties and the Label Manager to deal with the correct formatting of the xml:lang value, while still working with the old format, following Adrian Crum's recommendation on the mailing list
includes simple unit tests for UtilProperties to ensure it does work with both formats
changes the Label Manager to include a reference to the new xsd, and to use the correct format of the xml:lang value, when writing a resource xml file.
Some minor code cleanups to these files.
jleroux: the base test suite was successfully run locally once UtilIOTests have been commented out (still an issue with it on Windows)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1305004 13f79535-47bb-0310-9956-ffa450edef68
42 lines
2.3 KiB
XML
42 lines
2.3 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<!--
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the License.
|
|
-->
|
|
|
|
<test-suite suite-name="basetests"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/test-suite.xsd">
|
|
<test-group case-name="basetests">
|
|
<junit-test-suite class-name="org.ofbiz.base.lang.test.ComparableRangeTests"/>
|
|
<junit-test-suite class-name="org.ofbiz.base.util.test.IndentingWriterTests"/>
|
|
<junit-test-suite class-name="org.ofbiz.base.util.test.ObjectTypeTests"/>
|
|
<junit-test-suite class-name="org.ofbiz.base.util.test.UtilObjectTests"/>
|
|
<junit-test-suite class-name="org.ofbiz.base.util.string.test.FlexibleStringExpanderTests"/>
|
|
<junit-test-suite class-name="org.ofbiz.base.util.collections.test.FlexibleMapAccessorTests"/>
|
|
<junit-test-suite class-name="org.ofbiz.base.util.test.TimeDurationTests"/>
|
|
<junit-test-suite class-name="org.ofbiz.base.util.cache.test.UtilCacheTests"/>
|
|
<junit-test-suite class-name="org.ofbiz.base.conversion.test.DateTimeTests"/>
|
|
<junit-test-suite class-name="org.ofbiz.base.conversion.test.MiscTests"/>
|
|
<junit-test-suite class-name="org.ofbiz.base.concurrent.test.DependencyPoolTests"/>
|
|
<junit-test-suite class-name="org.ofbiz.base.json.test.JSONTests"/>
|
|
<!--junit-test-suite class-name="org.ofbiz.base.util.test.UtilIOTests"/-->
|
|
<junit-test-suite class-name="org.ofbiz.base.test.BaseUnitTests"/>
|
|
<junit-test-suite class-name="org.ofbiz.base.util.test.UtilPropertiesTests"/>
|
|
</test-group>
|
|
</test-suite>
|