A lot of my schemas reuse some core schemas. I have about 3 schemas that are generated into a common component,e.g. 1.) i18n (internationalization) 2.) lov (list of values) 3.) cmn (common)
These I reference within the sourcebuilder.properties file. Then say for a security component I have a separate schema for.. 1.) Users 2.) Groups 3.) Roles 4.) Permissions 5.) Sessions These schemas get generated into the same package, e.g. com.foo.bar.security. They all have separate namespaces but since they're in the same package they don't need to be referenced in the sourcebuilder.properties unless they too are used else where. This security component extends elements, complex types , simple types from the common schemas located in com.foo.bar.common.. So Castor supports as many namespaces as you want. The issue is when you have schemas being generated into separate components AND if they reference each other. If so it needs to go within the sourcebuilder.properties. If there's multiple schemas generated to the same package then no need for sourcebuilder.properties. As for editing the properties and re-JARing. Depending how often this occurs, and how many daily snapshots (from castor ftp) I'll probably write an ANT script to make the changes and re-jar Castor and then deploy it where it goes. I wouldn't edit Castor's build file, rather write my own that makes the changes to the property file, calls Castor's Build.xml jar task and then copies the jar from the dist directory to where I need it. Probably 10-15 lines of ANT script. Hope this helps, MD Mark DeLanoy, Architect Technical Architecture Team Technology Solutions Group Home Loans & Insurance Services Business Solution Partner Washington Mutual, Mailstop VHF4A01 340 N. Milwaukee, Vernon Hills, IL 60061 www.wamu.com 847 393 5156 direct | 847 845 9031 cell -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 16, 2003 10:32 AM To: [EMAIL PROTECTED] Subject: [castor-dev] Using imports in XML Schema So it looks as if you can only do one name space at a time in castor. So when importing from another schema you have to manually add the proper import statements. This sound right to everyone? Is there a way for Castor to do the import statements automatically? Will setting org.exolab.castor.builder.nspackages do the right thing? Is there a way to specifiy the location of the properties file from the command line? Seems kind of cumbersome having to pack a jar every time you make an edit. - Travell _____________________________________________________ Travell Perkins Senior Associate / Application Developer Consultant globallink / State Street Bank [EMAIL PROTECTED] _____________________________________________________ ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
