Skip to content

Conversation

@B-ru
Copy link

@B-ru B-ru commented Apr 27, 2024

Removed "required" attribute of "replaceValue" parameter.

Empty String replacement for null "replaceValue" parameter added at ProcessFilesTask.processFileContents.

ProcessFilesTask.processFileContents method was modified to achieve multiline findRegex processing.

Corresponding tests were added:

  • FindAndReplaceMojoTest.testFileContentsMultiLineRegex
  • FindAndReplaceMojoTest.testFileContentsMultiLineRegex2

Removed redundant toUri() calls at several tests.

B-ru added 4 commits April 27, 2024 10:55
Removed "required" attribute of "replaceValue" parameter.

Empty String replacement for null "replaceValue" parameter added at ProcessFilesTask.processFileContents.

ProcessFilesTask.processFileContents method was modified to achieve multiline findRegex processing.

Corresponding tests were added:
* FindAndReplaceMojoTest.testFileContentsMultiLineRegex
* FindAndReplaceMojoTest.testFileContentsMultiLineRegex2

Removed redundant toUri() calls at several tests.
# Conflicts:
#	src/main/java/io/github/floverfelt/find/and/replace/maven/plugin/tasks/ProcessFilesTask.java
Test method regexFileContains added.
@bherw
Copy link

bherw commented Mar 20, 2025

I find this change very useful. However, I encountered an issue with it: when performing a find-and-replace on executable files, this execution does not preserve the executable bit.

@B-ru
Copy link
Author

B-ru commented Mar 23, 2025

I find this change very useful. However, I encountered an issue with it: when performing a find-and-replace on executable files, this execution does not preserve the executable bit.

@bherw Thanks for your response. As far as I can tell, this behavior with the execution bit is also typical for the parent code, isn't it?
Fixed for POSIX-compatible OS.

B-ru added 2 commits March 23, 2025 09:59
…ndant ones in tests.

The verification and application of access rights has been changed to POSIX-compatible, the previous approach was erroneous. The verification and application of access attributes is omitted for non-posix compliant operating systems. The relevant tests have been implemented.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants