Package org.apache.hop.resource
Class ResourceUtil
- java.lang.Object
-
- org.apache.hop.resource.ResourceUtil
-
public class ResourceUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description ResourceUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetExplanation(String zipFilename, String launchFile, IResourceExport resourceExportInterface)static TopLevelResourceserializeResourceExportInterface(String zipFilename, IResourceExport resourceExportInterface, IVariables variables, IHopMetadataProvider metadataProvider, IXml executionConfiguration, String injectFilename, String sourceResourceFolderMapping, String targetResourceFolderMapping, Map<String,String> variablesMap)Serializes the referenced resource export interface (Workflow, Pipeline, Mapping, Transform, Action, etc) to a ZIP file.
-
-
-
Method Detail
-
serializeResourceExportInterface
public static final TopLevelResource serializeResourceExportInterface(String zipFilename, IResourceExport resourceExportInterface, IVariables variables, IHopMetadataProvider metadataProvider, IXml executionConfiguration, String injectFilename, String sourceResourceFolderMapping, String targetResourceFolderMapping, Map<String,String> variablesMap) throws HopException
Serializes the referenced resource export interface (Workflow, Pipeline, Mapping, Transform, Action, etc) to a ZIP file.- Parameters:
zipFilename- The ZIP file to put the content inresourceExportInterface- the interface to serializevariables- the variables to use for variable replacementmetadataProvider- The metadata for which we want to include the metadata.json fileexecutionConfiguration- The XML interface to inject into the resulting ZIP archive (optional, can be null)injectFilename- The name of the file for the XML to inject in the ZIP archive (optional, can be null)sourceResourceFolderMapping- The source folder to use as a reference for named resources, typically something like ${PROJECT}targetResourceFolderMapping- the target folder of named resources to translate to.variablesMap- The variables map of the execution configuration- Returns:
- The full VFS filename reference to the serialized export interface XML file in the ZIP archive.
- Throws:
HopException- in case anything goes wrong during serialization
-
getExplanation
public static String getExplanation(String zipFilename, String launchFile, IResourceExport resourceExportInterface)
-
-