Repository navigation
[main] BZ 70285- oupt right line-ending for .bat and .sh files - #1136
Fisherman110 wants to merge 3 commits into
Conversation
|
I think @markt-asf may have some loal patches or configuration for Ant. Beceause I pull the new code and build, end with CRLF in *.sh files. |
|
Tested locally on current main with JDK 21 and Ant 1.10.15. Reproduced the issue: with a I also built the tgz, zip, windows-x64 zip, deployer and fulldocs packages with and without the patch and compared every entry: only the JARs differ (build time), and all I couldn't build the Windows installer (no makensis available). The Otherwise, looks good. +1. |
I resolved the conflict. The original commiter is Fiersherman110 (my github name back in college). Later, I get a mail eaststrongox@gmail.com and sign my commit with 'strongox' beceause it's more impressive. To make it clear, I resigned with Fisherman110 in changelog. |
|
I don't believe there has been a request to modify line-endings in output/build before. I don't see any reason not to do that.
I need to check that against the current implementation and any prior bug reports and/or PRs. My (possibly mistaken) impression from scanning through build.xml was that there were more calls to fixcrlf than were strictly necessary. I'll look at that as well. As an aside, the current change log edit in this PR looks like a prior rebase went wrong. |
|
Fixed with a broader approach. |
BZ-70285
I notice currently the .sh file would end with CRLF if compiled in Windows. And I want to make it convient to build and deploy tomcat in multiple host systems. Like compiling code in Windows and deploy in UNIX (Ubuntu, Debian ...). So, the output *.bat files should end with CRLF and *.sh files should end with LF. This is a tiny enhencement that would be helpfule to cross paltform developers.
the original PR only parse .sh file to LF.