我有一个 ant 目标,可以将文件从一个位置复制到另一个位置,假设它在 build.xml
中定义为:
${project}/some-component-ABC/lib/whatever.jar
但在文件系统上实际路径是
${project}/some-component-abc/lib/whatever.jar
fliesystem 上的 some-component-abc 中没有大写 ABC...
此路径将在 Windows (7) 中解析,但不会在 Linux 中解析?
为什么?
我会弄清楚如何处理它,只是想了解一些功能差异的背景。
最佳答案
根据以下文章:https://ubuntuforums.org/showthread.php?t=1227827 Linux 是用 C 语言编写的,它区分大小写。它有助于加快排序。
关于java - 路径中的 Ant 大写与小写字符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40224980/