private static boolean checkUnpack(File webAppDirectory,File webServerDirectory,String warFilePath){
  if (!webAppDirectory.isDirectory() || !webServerDirectory.isDirectory()) {
    return true;
  }
  File warFile=new File(warFilePath);
  return webAppDirectory.lastModified() != warFile.lastModified();
}

private static boolean checkUnpack ( File webAppDirectory , File webServerDirectory , String warFilePath ) { if ( ! webAppDirectory . isDirectory ( ) || ! webServerDirectory . isDirectory ( ) ) { return true ; } File warFile = new File ( warFilePath ) ; return webAppDirectory . lastModified ( ) != warFile . lastModified ( ) ; }
checks if unpacking is needed .
