This message was deleted.
# community-support
s
This message was deleted.
v
Isn't
withPathSensitivity(NAME_ONLY)
what you are after?
c
Maybe? What I want Gradle to do is only take in to account the file names when fingerprinting the input. My understanding is that on its own
inputs.files(…)
will fingerprint contents (and presumably paths)… but doesn’t care about ordering of the files. The javadoc for
withPathSenstivity()
seems a little vague to me - it implies that
NAME_ONLY
still considers the file contents… but then what does
NONE
do?
v
NONE
only considers the contents, completely ignoring the file path and name
It is almost never what you want. :-D
I used it once for a task that is validating contents of files, where I don't care whether the file is renamed, because the content would still be valid or not
So when fingerprinting the inputs, you really want to only fingerprint the name of the file, but not the contents?
Then
inputs.files
is wrong, it will always fingerprint the contents which usually makes sense
If you really just want the filename because you do not even read the contents, use
inputs.property
and give it the file name(s)
c
okay - that makes sense
so the answer to my question as stated is what you said… but the code was never doing what I wanted in the first place
thanks
👌 1