private void addRequiredFile(String path, int iType) throws DeployException {
if (hasFileBeenAdded(path))
return;
try {
FileStoreFile file = m_fileStore.getFile(path);
if (file == null) {
throw new DeployException("Failed to get the file \"" + path
+ "\" from the file store. This is probably a bug.");
}
CRequiredFile requiredFile = new CRequiredFile();
requiredFile.setMD5(file.getMD5());
requiredFile.setModifiedTime(file.getPhysicalRepresentation().lastModified());
requiredFile.setPath(path);
requiredFile.setType(iType);
// This is not set here, only when we need to send it,