Issue Details (XML | Word | Printable)

Key: MULE-3716
Type: Sub-task Sub-task
Status: In Progress In Progress
Priority: Minor Minor
Assignee: Dirk Olmes
Reporter: Dirk Olmes
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Mule
MULE-3635

Create a script to switch schema version in XSDs and in all XML configs

Created: 25/Sep/08 05:07 AM   Updated: 12/Nov/08 08:24 PM
Component/s: Build: (other)
Affects Version/s: 2.0 ITR7
Fix Version/s: 2.1.2, Tech. Debt

Time Tracking:
Original Estimate: 4 hours
Original Estimate - 4 hours
Remaining Estimate: 0 minutes
Time Spent - 6 hours
Time Spent: 6 hours
Time Spent - 6 hours

Issue Links:
Related
 

Labels:
User impact: High


 Description  « Hide
Create the script and also run it on Windows to detect any issues with improperly closed files etc.

 All   Comments   Work Log   Change History   Transitions   FishEye      Sort Order: Ascending order - Click to sort in descending order
Dirk Olmes added a comment - 25/Sep/08 08:43 AM
First implementation of the script: http://fisheye.codehaus.org/changelog/mule/?cs=12736

Andrew Perepelytsya added a comment - 25/Sep/08 10:21 AM
Dirk, looks like it wouldn't handle ee switches. Do you want to extend it in the future?

Dirk Olmes added a comment - 25/Sep/08 10:27 AM
Reopening to check the script with EE schemas as well - I thought of it but forgot to note it down. That's what I get from it now

Dirk Olmes added a comment - 25/Sep/08 12:15 PM

Andrew Perepelytsya added a comment - 01/Oct/08 12:57 PM
The script must also process every spring.handlers and spring.schemas file, otherwise it's a half-done job


Daniel Feist added a comment - 02/Oct/08 07:45 AM
Script seems to be writing some files with a different encoding:

modules/xml/src/test/resources/cdcatalog-esoteric.xml
modules/xml/src/test/resources/cdcatalog-utf-8.xml

Does this depend on the environment script is run in? Maybe we can just skip processing of files that don't match baseSchema pattern?



Daniel Feist added a comment - 03/Oct/08 09:07 AM
I don't know if we want script to do this or to do it manually but the following files have schema references in and aren't updated:

./buildtools/scripts/ListSchema.groovy
./buildtools/scripts/SchemaStatistics.groovy
./buildtools/scripts/mule_undo.sh
./modules/spring-config/src/main/java/org/mule/config/spring/handlers/MuleNamespaceHandler.java
./tests/integration/src/test/java/org/mule/config/spring/AbstractSchemaValidationTestCase.java
./tests/integration/src/test/java/org/mule/module/xml/config/XmlFilterNamespaceHandlerTestCase.java
./tools/schemadocs/src/main/resources/schemadoc-prefix.txt


Daniel Feist added a comment - 03/Oct/08 09:30 AM
tests/integration/src/test/java/org/mule/config/spring/VmSchemaValidationTestCase.java
./tools/schemadocs/src/main/resources/xslt/*.xsl

Dirk Olmes added a comment - 07/Oct/08 07:44 AM
Lowering priority for the leftover tasks.

Daniel Zapata added a comment - 07/Oct/08 05:12 PM

Dirk Olmes added a comment - 10/Oct/08 09:44 AM
Fixing Daniel's issue with multiple schema references in the same line: http://fisheye.codehaus.org/changelog/mule/?cs=13037