Fixed compilation errors.

This commit is contained in:
Juan Carlos Luciani
2007-03-19 17:57:15 +00:00
parent bbb8b25e49
commit 3836edc9d7
8 changed files with 52 additions and 17 deletions

View File

@@ -56,6 +56,7 @@ public class UpdateWarFile
final static int ERROR_JOS_CLOSE_FAILED = -15;
final static int ERROR_FOS_CLOSE_FAILED = -16;
final static int ERROR_JFTEMPLATE_CLOSE_FAILED = -17;
final static int ERROR_EXCEPTION = -18;
String sInstallDir;
//File file;
@@ -90,9 +91,9 @@ public class UpdateWarFile
rc = createWarFile();
}
}
catch (IOException e)
catch (Exception e)
{
rc = ERROR_IO_EXCEPTION;
rc = ERROR_EXCEPTION;
}
finally
{
@@ -413,6 +414,9 @@ public class UpdateWarFile
case ERROR_INVALID_NUMBER_OF_PARAMS:
sMessage = "Invalid number of parameters: 1make expected";
break;
case ERROR_EXCEPTION:
sMessage = "Exception";
break;
default:
sMessage = "Unknown error: " + err;
break;