Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This operation is suitable for files < 100MB, but not for very large files. The files are stored fully in memory during the replacement. Matching files are overwritten with the modified text. Files that seem to be binary in nature are skipped in this operation.

Inputs

Input Name

Input Code

Required

Description

Source Path

FDFILE_INP_SOURCE_PATH

No

The source directory path, files in this folder are eligible for property replacement. The FD_TEMP_DIR and FD_ARTIFACTS_DIR variables work great in this field.

File Filter

FDFILE_INP_FILE_FILTER

No

Wildcard compatible expression to select file(s). You can enter multiple filter expressions separated by ##. Leave empty to select all files. The ## performs an OR expression. This will filter Files or Directory names but not the path. (e.g. for "/this/is/a/test/path" if you use "path" it will filter it, if you use "/this/is/a/test/path" it will not)

File Exclude Filter

FDFILE_INP_FILE_FILTER_EXCLUDED

No

Wildcard compatible expression to exclude file(s) OR folders. You can enter multiple filter expressions separated by ##. Leave empty to select all files. The ## performs an OR expression. This will filter Files or Directory names but not the path. (e.g. for "/this/is/a/test/path" if you use "path" it will filter it, if you use "/this/is/a/test/path" it will not)

Replace List

FDFILE_INP_REPLACE_LIST

Yes

A list of strings and values to be replaced. Formatted as key=value. One pair per line.

Code Block
${HRService.url}=${{SOA_BASE_URL}}/soa-infra/services/defaults/HRService/HRService?WSDL
${OrderService.url}=${{SOA_BASE_URL}}/soa-infra/services/defaults/OrderService/OrderService?WSDL
Info

Lines that begin with "#" are ignored

Info

Lines that begin with an "@" will try to load a file. If it is a relative path, it will first check the artifacts directory and then the temp directory. For example, @replace.conf. Any files loaded from will also be excluded from being replaced.

Info
Expresion

Expression

If you are using expression, please make sure to use \n between the key=value pairs.

"Remark=" + FDBLD_PACKAGE_VERSION_SEQUENCE + "\n" +
"Package=" + FD_PACKAGE_NAME

Whole Word Only

FDFILE_INP_REPLACE_WHOLE_WORD_ONLY

No

Should matches only be found when surrounded by word boundaries such as a space, punctuation, or the beginning or end of a line?

Case Insensitive

FDFILE_INP_CASE_INSENSITIVE

No

Should matches be performed case-insensitively?

Quote Pattern

FDFILE_INP_QUOTE_PATTERN

No

If true, the needle will be treated literally as a string. If false, the needle is a regular expression.

...