Hello all,
I am trying to extend my .xsd file by utilizing the Extension Feature, but im not using the command line, im writing an application that mimics the procedure that is usually carried out on the command line. I have the instructions for using the Extension feature from the command line:
1. Place an XML comment around the extension element in the .xsdconfig file. Then at a prompt in the working directory perfom the scomp command
2. Compile the interface and handler class using the resulting jar from step #1 and xbean.jar
3. Remove the XML comment around the extension element in the .xsdconfig file. Then run scomp again with the .xsd and .xsdconfig Files, making sure that compiled extension classes from step#2 are on the classpath.
My application performs all of the previous steps however, when i run the scomp command for the second time(Step #3), I get the error "Build Failed". Which classpath should I be setting? System.setProperty()? or SchemaCompilerParameter.setClasspath()? Also within the SchemaCompilerParameter class there is a setBaseDir() method, should I set this as well, and if so what do I set it to?..........Im pretty sure that this is a configuration issue because I can make it work from the command line. Can anyone help me Please???
P.S. There is also a SchemaCompilerParameter.setExtension() method......does anyone know what this does or how to use it?.....the javaDocs on this package are not too good, there are no explanations.
Thanks in advance,
DG