if (userWebFilesDir != null && userWebFilesDir.exists())
{
FileSet webFiles = new FileSet();
webFiles.setDir(userWebFilesDir);
webFiles.setExcludes(WEBINF);
warTask.addFileset(webFiles);
}
if (userWebXML != null && userWebXML.exists())
{
warTask.setWebxml(userWebXML);
}