this.enableWebUI = enableWebUI;
}
public void createMockAsWarArchive()
{
XProgressDialog progressDialog = UISupport.getDialogs().createProgressDialog( "Creating War File", 3,
"Building war file..", false );
WorkerAdapter warWorker = new WorkerAdapter()
{
public Object construct( XProgressMonitor monitor )
{
if( prepareWarFile() )
{
createWebXml();
if( warFile != null )
{
ArrayList<File> files = getAllFilesFrom( webInf );
files.add( new File( warDir, "stylesheet.css" ) );
files.add( new File( warDir, "header_logo.jpg" ) );
File[] filez = files.toArray( new File[files.size()] );
JarPackager.createJarArchive( warFile, warDir, filez );
}
}
return null;
}
};
try
{
progressDialog.run( warWorker );
}
catch( Exception e )
{
log.error( e.getMessage(), e );
}