Skip to content

[main] BZ 70285 -to oupt sh file with LF in Windows - #1120

Closed
Fisherman110 wants to merge 0 commit into
apache:mainfrom
Fisherman110:main
Closed

Fisherman110 wants to merge 0 commit into
apache:mainfrom
Fisherman110:main

Conversation

@Fisherman110

Copy link
Copy Markdown

The project compile and ouput sh file with CRLF line endings in Windows system. While it's common to build tomcat in Windows and deploy in Linux. This patch helps to produce sh files with LF in Windows

@ChristopherSchultz

Copy link
Copy Markdown
Contributor

How do UNIX builds not have the same problem for Windows? Your only fixes .sh files and I would think that the opposite operation would be necessary to generate the correct line endings for .bat files from UNIX.

@markt-asf usually does release builds from Windows (I think), and the line endings for .sh files are correct.

What are we missing, here?

@markt-asf

Copy link
Copy Markdown
Contributor

fixcrlf is only run for release distribution targets.

Looking through build.xml, there does appear to be some scope to clean this up. I think fixcrlf could be run earlier for /bin/ and then any following fixcrlf calls could/should ignore '/bin'

@Fisherman110

Copy link
Copy Markdown
Author

How do UNIX builds not have the same problem for Windows? Your only fixes .sh files and I would think that the opposite operation would be necessary to generate the correct line endings for .bat files from UNIX.

@markt-asf usually does release builds from Windows (I think), and the line endings for .sh files are correct.

What are we missing, here?

I presume that Windows user group is much biggger than UNIX. But coders love to work in UNIX environment. So, the .bat fix for UNIX is also necessary, I will tackle that.

@Fisherman110

Copy link
Copy Markdown
Author

fixcrlf is only run for release distribution targets.

Looking through build.xml, there does appear to be some scope to clean this up. I think fixcrlf could be run earlier for /bin/ and then any following fixcrlf calls could/should ignore '/bin'

Let me take it into consideration

@Fisherman110

Copy link
Copy Markdown
Author

How do UNIX builds not have the same problem for Windows? Your only fixes .sh files and I would think that the opposite operation would be necessary to generate the correct line endings for .bat files from UNIX.

@markt-asf usually does release builds from Windows (I think), and the line endings for .sh files are correct.

What are we missing, here?

I issued a new PR to deal with .bat and .sh files properly. May you review it for me?

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.

3 participants