Improvement for "replaceClassNameStrings" to optionally replace partial paths #123
Labels
difficulty:beginner
Tasks suited especially for beginners. No prior knowledge required.
enhancement
New feature or request
good first issue
Good for newcomers
Currently
replaceClassNameStrings
only causes complete strings of fully qualified class names to be modified.Would it be possible to add an option to also modify strings containing paths starting at the root, but not ending in a class?
So for example when you have the following replacement:
System.out.println("com.mycompany.MyClass");
=>System.out.println("b.c.d");
the new option would also cause the following:
System.out.println("/com/mycompany/resources/" + filename);
=>System.out.println("/b/c/resources/" + filename);
There should probably be a minimum of two path segments and separators should be configurable, like for
replaceContent
.If this won't be included in the near future, could you point me to the code that modifies the strings, so I can have a look at it?
The text was updated successfully, but these errors were encountered: