下载以远程方式发布的结果

对于远程文档生成,您可以使用 URLDataProvider 实用程序来访问结果归档文件或远程日志。
URLDataProvider urlutil = new URLDataProvider();

for( RPEResult result : localDocgen.getResults())
{
		String type = PropertyUtils.getPropertyRawValue( result.getProperty(RPEConfigConstants.PROPERTY_TYPE), “”);  //$NON-NLS-1$
		String location = PropertyUtils.getPropertyRawValue( result.getProperty(RPEConfigConstants.PROPERTY_PATH), “”);  //$NON-NLS-1$
		System.out.println( type + “: ” + path);

		if ( isRemote)
	{
				String localCopy = urlutil.cacheResource( location, credential);
				logger.info(“\t\t” + “ local copy: ” + localCopy); 
	}
}

反馈