if (srcFile.exists())
{
// 1.check if resolution = error
if (mConfiguration.getResolution().equals(Constants.WRITE_ERROR))
{
throw new XException(Constants.LOCATION_EXTERN,
Constants.LAYER_TECHNICAL,
Constants.PACKAGE_TECHNICAL_FILE, "29");
}
// 2. check if it is one file
if (!srcFile.isFile())
{
List params = new Vector();
params.add(mConfiguration.getFileNames());
throw new XException(Constants.LOCATION_EXTERN,
Constants.LAYER_TECHNICAL,
Constants.PACKAGE_TECHNICAL_FILE, "30", params);
}
// 3. check write permissions
if (!srcFile.canWrite())
{
List params = new Vector();
params.add(fileName);
throw new XException(Constants.LOCATION_EXTERN,
Constants.LAYER_TECHNICAL,
Constants.PACKAGE_TECHNICAL_FILE, "31", params);
}
}
}