prpcServiceUtils 8.3 export deletes dir to which file is exported
I am using prpcServiceUtils version 8.3 to export a product rule. I am setting the following properties:
- pega.rest.username
- pega.rest.password
- export.archiveName
- export.productName
- export.productVersion
- export.async='false'
The export seems to be working, because I can see in the log where the ZIP is downloaded, but that directory is deleted by the -cleanup Ant target. Below is a snippet of the output -- it is truncated to only show relevant info:
[java] 19:21:04.550 [pool-2-thread-1] INFO [egarules.serviceclient.rest.RestResponse] - DefaultSystem: Parsing response
[java] 19:21:04.551 [pool-2-thread-1] INFO [egarules.serviceclient.rest.RestResponse] - DefaultSystem: Parsing response of length null
[java] 19:21:04.554 [pool-2-thread-1] INFO [egarules.serviceclient.rest.RestResponse] - DefaultSystem: Parsing content of type multipart/form-data; boundary=VdeRK4gEjEDpBSwt3raRYxsNZr80qNbA
[java] 19:21:04.564 [pool-2-thread-1] INFO [.rest.contenthandlers.FileContentHandler] - Creating file /tmp/PegaInstallTemp-26-May-2022-19.21.01/EXPORT_1653592862723/DefaultSystem_1/JUSTIN.zip
I am using prpcServiceUtils version 8.3 to export a product rule. I am setting the following properties:
- pega.rest.username
- pega.rest.password
- export.archiveName
- export.productName
- export.productVersion
- export.async='false'
The export seems to be working, because I can see in the log where the ZIP is downloaded, but that directory is deleted by the -cleanup Ant target. Below is a snippet of the output -- it is truncated to only show relevant info:
[java] 19:21:04.550 [pool-2-thread-1] INFO [egarules.serviceclient.rest.RestResponse] - DefaultSystem: Parsing response
[java] 19:21:04.551 [pool-2-thread-1] INFO [egarules.serviceclient.rest.RestResponse] - DefaultSystem: Parsing response of length null
[java] 19:21:04.554 [pool-2-thread-1] INFO [egarules.serviceclient.rest.RestResponse] - DefaultSystem: Parsing content of type multipart/form-data; boundary=VdeRK4gEjEDpBSwt3raRYxsNZr80qNbA
[java] 19:21:04.564 [pool-2-thread-1] INFO [.rest.contenthandlers.FileContentHandler] - Creating file /tmp/PegaInstallTemp-26-May-2022-19.21.01/EXPORT_1653592862723/DefaultSystem_1/JUSTIN.zip
[java] 19:21:04.680 [pool-2-thread-1] INFO [.rest.contenthandlers.FileContentHandler] - Creating file /tmp/PegaInstallTemp-26-May-2022-19.21.01/EXPORT_1653592862723/DefaultSystem_1/EXPORTREQUEST-18.log
[java] 19:21:04.682 [main] INFO [viceclient.requestmanager.RequestManager] - Request on system DefaultSystem Successful
[java] [java] SUCCESSFUL JOBS [java] -------------------------------------------------------------------------------------------- [java] [java] System Name : DefaultSystem [java] Job ID : EXPORTREQUEST-18 [java] Status : SUCCESS [java] Error Messages : [java] Archive & Logs folder: /prpc/utils/logs/EXPORT_2022-May-26_19-21-04/DefaultSystem [java] -------------------------------------------------------------------------------------------- [java] 19:21:04.717 [main] INFO [viceclient.requestmanager.RequestManager] - Shutting down executor service [java] 19:21:04.717 [main] INFO [viceclient.requestmanager.RequestManager] - Executor Service shutdown completed [java] 19:21:04.717 [main] INFO [.pega.pegarules.serviceclient.ClientMain] - Execution done
-cleanup: [echo] Cleaning up temp directory... [delete] Deleting directory /tmp/PegaInstallTemp-26-May-2022-19.21.01
performOperation: [echo] PegaRULES Process Commander export complete.
BUILD SUCCESSFUL Total time: 3 seconds
What gives? I cannot find anyway to specify where the ZIP is downloaded to -- it always downloads to ${install.temp.dir} and then immediately cleans it up. Is prpcServiceUtilsWrapper.xml just an example? Am I supposed to create and use my own build.xml?