patch from different directory

This commit is contained in:
anthony 2010-12-29 14:45:52 -08:00
parent d18f60379f
commit 3f84c55e88
1 changed files with 1 additions and 1 deletions

View File

@ -3866,12 +3866,12 @@ public abstract class CitrixResourceBase implements StoragePoolResource, ServerR
SCPClient scp = new SCPClient(sshConnection);
String path = _patchPath.substring(0, _patchPath.lastIndexOf(File.separator) + 1);
List<File> files = getPatchFiles();
if( files == null || files.isEmpty() ) {
throw new CloudRuntimeException("Can not find patch file");
}
for( File file :files) {
String path = file.getParentFile().getAbsolutePath() + "/";
Properties props = new Properties();
props.load(new FileInputStream(file));