jbang: jbang wrapper generated files have wrong timestamp

I upgraded jbang to 0.45.0 and tried jbang wrapper install. It generated jbang command files but the file timestamp was 80’s.

image

Also, the file browser is showing same -

image

Java version -

openjdk version "14.0.2" 2020-07-14
OpenJDK Runtime Environment AdoptOpenJDK (build 14.0.2+12)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 14.0.2+12, mixed mode, sharing)

I tried in two different folders and had same behavior for generated files.

Let me know if any other information is needed.

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Comments: 28 (16 by maintainers)

Most upvoted comments

Sounds good, I’ll look into different options and report back (after lunch 😄 )

My understand is that if you use StandardCopyOption.COPY_ATTRIBUTES best effort is done and last modified at least should be right.

Haven’t tested it though.

Go ahead! Work away 😃