Search and Replace

Sometime you need to make a global search and replace.

This function is not available in the application yet, but we provide here a quite dangerous, unattended way of doing this.

The program attached (requires Java 8) can be used to replace a string by another in all items of a category.

USAGE:

java -jar SearchAndReplace.jar
  --instance=(name of the instance)
  --user=(user)
  --pwd=(pwd)
  --project=XYZ
  --category=category (REQ, DOC, ....) - you can enter a comma-separated list
  --search=search term. Put under double quotes if any space inside
  --replace=replace term [optional]. Put under double quotes if any space inside. Only lists the search results if omitted
  --wholeword=1 [optional]. If set to 1, only searchs whole words (search term is not prefixed or suffixed by letters or digits)
  --ignorecase=1 [optional]. If set to 1, ignores cases in searches
  --comment=text [optional]. Comment for the changes in the audit log. By default will be : Search and Replace

Please use with care!

SearchAndReplace.jar