-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improvement for "replaceClassNameStrings" to optionally replace partial paths #123
Comments
It would probably be best to add a regex here so the users can configure it to their liking |
The code that replaces class name strings is in That said, |
Thanks, we'll have a look at the code. However we still think this would be a valuable new feature (or a new, clearly named, sub-option). |
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: