Ver código fonte

HPCC-21584 jar files cannot be extracted from manifest in standalone exes

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 6 anos atrás
pai
commit
6909c07c04
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      common/dllserver/thorplugin.cpp

+ 2 - 1
common/dllserver/thorplugin.cpp

@@ -501,10 +501,11 @@ const StringArray &HelperDll::queryManifestFiles(const char *type, const char *w
     if (!list)
     {
         // The temporary path we unpack to is based on so file's current location and workunit
+        // MORE - this is good for deployed cases, may not be so good for standalone executables.
         StringBuffer tempDir;
         splitFilename(name, &tempDir, &tempDir, &tempDir, nullptr);
         list.setown(new ManifestFileList(type, tempDir));
-        tempDir.append(PATHSEPCHAR).append(wuid);
+        tempDir.append(".tmp").append(PATHSEPCHAR).append(wuid);
         VStringBuffer xpath("Resource[@type='%s']", type);
         Owned<IPropertyTreeIterator> resourceFiles = queryManifest().getElements(xpath.str());
         ForEach(*resourceFiles)