code: private String getResourcesHTML(CmsPublishJobBase job) throws CmsException {
  
          String ret = "";
          if (job instanceof CmsPublishJobEnqueued) {
              //job is enqueued ->go over publish list
              List<CmsResource> resources = ((CmsPublishJobEnqueued)job).getPublishList().getAllResources();
              for (CmsResource res : resources) {
                  ret += res.getRootPath() + "<br/>";
              }
          } else {
              //job is running or finished
              List<CmsPublishedResource> resources = A_CmsUI.getCmsObject().readPublishedResources(
                  job.getPublishHistoryId());
              for (CmsPublishedResource res : resources) {
                  ret += res.getRootPath() + "<br/>";
              }
          }
          return ret;
      }
docs: Get String with list of resources from given job formatted in HTML.<p>
  
  @param job CmsPublishJobBase
  @return String
  @throws CmsException exception