3

I would like to use File content replacer build feature. But I need two different search/replace patterns depends on some configuration parameter param1. If param1 starts with text 'first' then apply first search/replace pattern otherwise apply the second one. Is it possible?

Serg046
  • 1,043
  • 1
  • 13
  • 42

1 Answers1

0

What you're asking for is conditionally enable or disable a build feature (not necessarily an instance of File Content Replacer) depending on a configuration parameter value.

AFAIK, this is not possible. Instead, you can take a look at Build Configuration Templates or store your project settings in Kotlin-based DSL.

Bass
  • 4,977
  • 2
  • 36
  • 82