scompParams.setDownload( true ); // download remote xsd inputs/imports
scompParams.setDebug( true ); // compile w/ debug symbols
scompParams.setVerbose( m_options.isVerbose( ) );
scompParams.setQuiet( !m_options.isVerbose( ) );
final boolean beNoisy = true;
XmlErrorPrinter xErrorListener = new XmlErrorPrinter( beNoisy, null );
scompParams.setErrorListener( xErrorListener );
File jarDir = new File( m_xmlbeansDir, "lib" );
jarDir.mkdirs( );
scompParams.setOutputJar( new File( jarDir, xmlbeansJarFileName ) );
try
{
if ( !SchemaCompiler.compile( scompParams ) )
{
throw new Exception( xErrorListener.toString( ) );
}
}
finally
{
//delete the temp directory