From 3f84c55e886f041572fab14039c49a4cbd84ca82 Mon Sep 17 00:00:00 2001 From: anthony Date: Wed, 29 Dec 2010 14:45:52 -0800 Subject: [PATCH] patch from different directory --- .../com/cloud/hypervisor/xen/resource/CitrixResourceBase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java b/core/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java index debba015b06..a1d54ae5531 100644 --- a/core/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java +++ b/core/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java @@ -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 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));