/* Unzip the zip file contents using the Peoplesoft XMLPUtil java class.*/
&joUtil = CreateJavaObject("com.peoplesoft.pt.xmlpublisher.XMLPUtil");
&bRet = &joUtil.processZipUtilCommand("-extract " | &sZipFilePath | " " | &sOuptutDirName);
/*If unsuccesfully unzipped then write errors to file.*/
If Not &bRet Then
MessageBox(0, "", 0, 0, "The Zip file: " | &DataFileName | " was not extracted successfully.");
&LogFile.WriteLine("The Zip file: " | &DataFileName | " was not extracted successfully.");
End-If;
No comments:
Post a Comment