Details
-
Type:
Feature Request
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 0.1.4
-
Component/s: None
-
Labels:None
Description
Must be fixed for all, but in the meantime just fix for WebAppDescriptors
Gliffy Diagrams
Issue Links
- cloned to
-
SHRINKDESC-43
Add tests for schemaLocation for all Descriptors
-
- Closed
-
- relates to
-
SHRINKDESC-36
Add schemaLocation to WebAppDescriptor
-
- Closed
-
since a descriptor needs a version and schemaLocation is effected by the version. version() could handle the setting of schemaLocation. This will prevent schemaLocation being out of sync with the set version.
public WebAppDescriptorImpl(){this(new Node("web-app").attribute("xmlns", "http://java.sun.com/xml/ns/javaee").attribute("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance"));version("3.0");}@Overridepublic WebAppDescriptor version(String version){model.attribute("xsi:schemaLocation","http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_" + version.replace(".", "_") + ".xsd");model.attribute("version", version);return this;}