if( ! appDir.exists() ) {
// no check if war file is "newer" than directory
// To update you need to "remove" the context first!!!
appDir.mkdirs();
// Expand war file
Expand expand=new Expand();
expand.setSrc( home + "/webapps/" + name );
expand.setDest( home + "/webapps/" + fname);
try {
expand.execute();
} catch( IOException ex) {
ex.printStackTrace();
// do what ?
}
}