You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ad...@apache.org on 2012/04/20 12:26:39 UTC
svn commit: r1328302 [1/3] - in /ofbiz/trunk/framework/minilang: config/
dtd/ src/org/ofbiz/minilang/ src/org/ofbiz/minilang/method/
Author: adrianc
Date: Fri Apr 20 10:26:38 2012
New Revision: 1328302
URL: http://svn.apache.org/viewvc?rev=1328302&view=rev
Log:
Some Mini-language validation code and other files in preparation for the syntax overhaul. No functional change.
Added:
ofbiz/trunk/framework/minilang/config/minilang.properties (with props)
ofbiz/trunk/framework/minilang/dtd/simple-methods-v2.xsd
ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/MiniLangRuntimeException.java (with props)
ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/MiniLangUtil.java (with props)
ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/MiniLangValidate.java (with props)
ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/ValidationException.java (with props)
Modified:
ofbiz/trunk/framework/minilang/dtd/minilang-catalog.xml
ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/MiniLangException.java
ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/MethodOperation.java
Added: ofbiz/trunk/framework/minilang/config/minilang.properties
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/config/minilang.properties?rev=1328302&view=auto
==============================================================================
--- ofbiz/trunk/framework/minilang/config/minilang.properties (added)
+++ ofbiz/trunk/framework/minilang/config/minilang.properties Fri Apr 20 10:26:38 2012
@@ -0,0 +1,28 @@
+###############################################################################
+# 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.
+###############################################################################
+
+# Mini-language parsing validation level: strict/lenient/none. Strict will throw
+# exceptions during runtime when XML errors or syntax errors are encountered,
+# while lenient will only log a warning. A setting of none disables validation.
+validation.level=lenient
+
+# Enable mini-language auto-correction. If set to true, mini-language will attempt
+# to correct common syntax errors. The corrections are saved in the original
+# source file.
+autocorrect=false
Propchange: ofbiz/trunk/framework/minilang/config/minilang.properties
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: ofbiz/trunk/framework/minilang/config/minilang.properties
------------------------------------------------------------------------------
svn:keywords = Author Date Id Rev URL
Modified: ofbiz/trunk/framework/minilang/dtd/minilang-catalog.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/dtd/minilang-catalog.xml?rev=1328302&r1=1328301&r2=1328302&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/dtd/minilang-catalog.xml (original)
+++ ofbiz/trunk/framework/minilang/dtd/minilang-catalog.xml Fri Apr 20 10:26:38 2012
@@ -24,7 +24,9 @@ under the License.
Alternatively we can place a copy of the DTD locally and refer to it.
-->
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
- <!-- <public publicId="-//W3C//DTD SVG 1.0//EN" uri="svg10.dtd"/> -->
+ <!-- <public publicId="-//W3C//DTD SVG 1.0//EN" uri="svg10.dtd"/> -->
+
+ <system systemId="http://ofbiz.apache.org/dtds/simple-methods.xsd" uri="simple-methods.xsd" />
+ <system systemId="http://ofbiz.apache.org/dtds/simple-methods-v2.xsd" uri="simple-methods-v2.xsd" />
- <system systemId="http://ofbiz.apache.org/dtds/simple-methods.xsd" uri="simple-methods.xsd"/>
</catalog>