Nik Nik - 1 month ago 9
Linux Question

ant uppercase vs lowercase characters in path

I have an ant target that copies a file from one location to another, say it is defined in the

build.xml
as:

${project}/some-component-ABC/lib/whatever.jar


But on the file system the actual path is

${project}/some-component-abc/lib/whatever.jar


No uppercase ABC in some-component-abc on the fliesystem...

This path will resolve in Windows (7) but not in Linux?

Why?

I'll figure out what to do with it, just wanted some background why the functional difference.

Answer

Per the following article: https://ubuntuforums.org/showthread.php?t=1227827 Linux is written in C, which is case sensitive. It makes for faster sorting.

Comments