Class FilePropertyReplacement

java.lang.Object
flexagon.fd.core.utils.AbstractPropertyReplacement
flexagon.fd.core.utils.FilePropertyReplacement

public class FilePropertyReplacement extends AbstractPropertyReplacement
Concrete implementation for property replacement within files. Properties are defined within a given file using the notation ${{PropertyName}}. The property names case-sensitive.
  • Constructor Details

    • FilePropertyReplacement

      public FilePropertyReplacement(WorkflowExecutionContext pWorkflowExecutionContext, String pFileName)
      Constructs this utility for use with the given workflow execution context and file source.
      Parameters:
      pWorkflowExecutionContext - the workflow execution context
      pFileName - String the absolute path of the file containing properties to replace
    • FilePropertyReplacement

      public FilePropertyReplacement(PropertyReplacementContext pPropertyReplacementContext, File pFile)
      Constructs this utility for use with the given PropertyReplacementContext and file name.
      Parameters:
      pPropertyReplacementContext - the property replacement context
      pFile - the file containing properties to replace
    • FilePropertyReplacement

      public FilePropertyReplacement(PropertyReplacementContext pPropertyReplacementContext, String pFileName)
      Constructs this utility for use with the given PropertyReplacementContext and file name.
      Parameters:
      pPropertyReplacementContext - the property replacement context
      pFileName - the absolute path of the file containing properties to replace
  • Method Details

    • replaceAll

      public void replaceAll() throws FlexCheckedException
      Replaces all properties within the given source file with the key/values found in the PropertyReplacementContext.
      Throws:
      FlexCheckedException