Преглед на файлове

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

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman преди 6 години
родител
ревизия
6909c07c04
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  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)