stevedlawrence commented on a change in pull request #25: Commits to relicense
Daffodil to Apache v2
URL: https://github.com/apache/incubator-daffodil/pull/25#discussion_r160298351
##########
File path: daffodil-core/src/main/scala/org/apache/daffodil/dsom/IIBase.scala
##########
@@ -180,7 +180,17 @@ abstract class IIBase( final override val xml: Node,
xsdArg: XMLSchemaDocument,
res
}.value
- final lazy val schemaLocationProperty = getAttributeOption("schemaLocation")
+ final lazy val schemaLocationProperty = {
+ val prop = getAttributeOption("schemaLocation")
+ prop.map { text =>
+ if (text.contains("edu/illinois/ncsa/daffodil")) {
+ SDW("schemaLocation property uses deprecated
edu/illinois/ncsa/daffodil path instead of org/apache/daffodil. Converting to
new path.")
+ text.replace("edu/illinois/ncsa/daffodil", "org/apache/daffodil")
+ } else {
+ text
+ }
+ }
+ }
Review comment:
Actual code change other than package rename. Provides backwards
compatibility for schemas using old imports.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services