scompParams.setDownload( true );
scompParams.setClasspath( m_classpath );
scompParams.setVerbose( m_options.isVerbose() );
scompParams.setDebug( m_options.isDebug() );
final boolean beNoisy = true;
XmlErrorPrinter xErrorListener = new XmlErrorPrinter( beNoisy, null );
scompParams.setErrorListener( xErrorListener );
File jarDir = new File( m_xmlbeansDir, "lib" );
jarDir.mkdirs( );
String wsdlJarFileName = getJarFileName( wsdlFile );
scompParams.setOutputJar( new File( jarDir, wsdlJarFileName ) );
try
{
if ( !SchemaCompiler.compile( scompParams ) )
{
throw new Exception( xErrorListener.toString() );
}
}
finally
{
//delete the temp directory