On passing --date to jrt-fs jar at build time

Galder Zamarreno galder at redhat.com
Tue Apr 1 07:52:30 UTC 2025


On Fri, Mar 28, 2025 at 10:43 AM Alan Bateman <alan.bateman at oracle.com>
wrote:

> On 28/03/2025 09:25, Galder Zamarreno wrote:
>
> :
>
> However, @Thomas Fitzsimmons <fitzsim at redhat.com> had a very good point
> to make:
>
> > I also wonder why the test harness is passing --date $SOURCE_DATE_EPOCH,
> since the test jars are not distributed, not sure why they'd need to be
> reproducible...
>
> I think his question is valid. Why pass --date for a test jar?
>
>
> I'm not sure what "test harness" and "test jar" means here but just to say
> that jrt-fs.jar is in the JDK run-time.
>

^ Are you sure? The default make target, `exploded-image`, doesn't build
the jrt-fs.jar. Aside from `test`, `images` does build the jar.


> When an IDE running on JDK X needs to build/run a project for target JDK Y
> then it will use the jrt file system to access the classes in the target
> JDK. jrt-fs.jar is the provider implementation that JDK X will load to do
> this.
>

If the jar does not mean, seems like an exploded image jdk won't work for ^?


>
> -Alan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/build-dev/attachments/20250401/cb4d7c30/attachment-0001.htm>


More information about the build-dev mailing list