-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TRUNK-6252 Conditional resource path should be interpreted as a glob …
…rather than a Regex
- Loading branch information
Showing
9 changed files
with
520 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
124 changes: 124 additions & 0 deletions
124
api/src/main/resources/org/openmrs/module/dtd/config-2.0.dtd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Top level configuration element. | ||
--> | ||
<!ELEMENT module ( | ||
(id), | ||
(name), | ||
(version), | ||
(package), | ||
(author), | ||
(description), | ||
(activator), | ||
(updateURL?), | ||
(require_version?), | ||
(require_database_version?), | ||
(require_modules?), | ||
(aware_of_modules?), | ||
(start_before_modules?), | ||
(mandatory?), | ||
(library*), | ||
(extension*), | ||
(advice*), | ||
(privilege*), | ||
(globalProperty*), | ||
(dwr?), | ||
(servlet*), | ||
(filter*), | ||
(filter-mapping*), | ||
(messages*), | ||
(mappingFiles?), | ||
(packagesWithMappedClasses?), | ||
(conditionalResources?) | ||
)> | ||
<!ATTLIST module configVersion CDATA #FIXED "2.0"> | ||
|
||
<!ELEMENT id (#PCDATA)> | ||
<!ELEMENT name (#PCDATA)> | ||
<!ELEMENT version (#PCDATA)> | ||
<!ELEMENT package (#PCDATA)> | ||
<!ELEMENT author (#PCDATA)> | ||
<!ELEMENT description (#PCDATA)> | ||
<!ELEMENT activator (#PCDATA)> | ||
<!ELEMENT updateURL (#PCDATA)> | ||
<!ELEMENT require_version (#PCDATA)> | ||
<!ELEMENT require_database_version (#PCDATA)> | ||
|
||
<!ELEMENT require_modules (require_module+)> | ||
<!ELEMENT require_module (#PCDATA)> | ||
<!ATTLIST require_module version CDATA #IMPLIED> | ||
|
||
<!ELEMENT aware_of_modules (aware_of_module+)> | ||
<!ELEMENT aware_of_module (#PCDATA)> | ||
<!ATTLIST aware_of_module version CDATA #IMPLIED> | ||
|
||
<!ELEMENT start_before_modules (module+)> | ||
<!ELEMENT start_before_module (#PCDATA)> | ||
<!ATTLIST start_before_module version CDATA #IMPLIED> | ||
|
||
<!ELEMENT mandatory (#PCDATA)> | ||
|
||
<!ELEMENT library EMPTY> | ||
<!ATTLIST library | ||
id CDATA #REQUIRED | ||
path CDATA #REQUIRED | ||
type (resources|library) #REQUIRED | ||
> | ||
|
||
<!ELEMENT extension (point, class)> | ||
<!ELEMENT advice (point, class)> | ||
<!ELEMENT point (#PCDATA)> | ||
<!ELEMENT class (#PCDATA)> | ||
|
||
<!ELEMENT privilege (name, description)> | ||
|
||
<!ELEMENT globalProperty (property, defaultValue?, description)> | ||
<!ELEMENT property (#PCDATA)> | ||
<!ELEMENT defaultValue (#PCDATA)> | ||
|
||
<!ELEMENT dwr (allow, signatures?)> | ||
<!ELEMENT allow (create*, convert*)> | ||
|
||
<!ELEMENT create (param, include*)> | ||
<!ATTLIST create creator CDATA #REQUIRED javascript CDATA #REQUIRED> | ||
|
||
<!ELEMENT param EMPTY> | ||
<!ATTLIST param name CDATA #REQUIRED value CDATA #REQUIRED> | ||
|
||
<!ELEMENT include EMPTY> | ||
<!ATTLIST include method CDATA #REQUIRED> | ||
|
||
<!ELEMENT convert (param?)> | ||
<!ATTLIST convert converter CDATA #REQUIRED match CDATA #REQUIRED> | ||
|
||
<!ELEMENT signatures (#PCDATA)> | ||
|
||
<!ELEMENT servlet (servlet-name, servlet-class, init-param*)> | ||
<!ELEMENT servlet-name (#PCDATA)> | ||
<!ELEMENT servlet-class (#PCDATA)> | ||
|
||
<!ELEMENT filter (filter-name, filter-class, init-param*)> | ||
<!ELEMENT filter-name (#PCDATA)> | ||
<!ELEMENT filter-class (#PCDATA)> | ||
<!ELEMENT init-param (param-name, param-value)> | ||
<!ELEMENT param-name (#PCDATA)> | ||
<!ELEMENT param-value (#PCDATA)> | ||
|
||
<!ELEMENT filter-mapping (filter-name, (url-pattern | servlet-name))> | ||
<!ELEMENT url-pattern (#PCDATA)> | ||
|
||
<!ELEMENT messages (lang, file)> | ||
<!ELEMENT lang (#PCDATA)> | ||
<!ELEMENT file (#PCDATA)> | ||
|
||
<!ELEMENT mappingFiles (#PCDATA)> | ||
<!ELEMENT packagesWithMappedClasses (#PCDATA)> | ||
|
||
<!ELEMENT conditionalResources (conditionalResource+)> | ||
<!-- Beginning with configVersion="2.0", the "path" in <conditionalResource> uses glob syntax instead of regex. --> | ||
<!ELEMENT conditionalResource (path, (openmrsVersion | modules))> | ||
<!ELEMENT path (#PCDATA)> | ||
<!ELEMENT openmrsVersion (#PCDATA)> | ||
<!ELEMENT modules (module+)> | ||
<!ELEMENT module (moduleId, version)> | ||
<!ELEMENT moduleId (#PCDATA)> |
Oops, something went wrong.