Skip to content

Improvement for "replaceClassNameStrings" to optionally replace partial paths #123

@bernhardf-ro

Description

@bernhardf-ro

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    difficulty:beginnerTasks suited especially for beginners. No prior knowledge required.enhancementNew feature or requestgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions