Re: Portable retrieval of resource bundles across module path and class path

2021-07-23 Thread Mandy Chung
On 7/23/21 4:17 AM, Gunnar Morling wrote: Thanks a lot for your replies, Mandy and Alan! > I assume the class path is running on JDK <= 8, right? Otherwise Is there something missing after "Otherwise"? It was a typo (I should have taken it out). In fact, I'm looking for a way to run this

Re: Portable retrieval of resource bundles across module path and class path

2021-07-23 Thread Alan Bateman
On 23/07/2021 18:23, Gunnar Morling wrote: : Yes, I'm quite sure, unless I'm doing something really stupid :) Here's the steps for reproducing: git clone g...@github.com:gunnarmorling/resource-bundle-test.git git checkout split-package cd resource-bundle-test mvn clean install jar -tf german/

Re: Portable retrieval of resource bundles across module path and class path

2021-07-23 Thread Gunnar Morling
> Are you sure this always puts dev/morling/greeter/fr/GreetingMessages_de.properties into > resourceloading-test-german-1.0-SNAPSHOT.jar? I'm quite sure the JAR file above doesn't > have the fr resource but the JAR file in your previous mail seems to include it. Yes, I'm quite sure, unless I'm do

Re: Portable retrieval of resource bundles across module path and class path

2021-07-23 Thread Alan Bateman
On 23/07/2021 16:58, Gunnar Morling wrote: : Yes, there is such resource which I had created for demo purposes (see the jar -tf  output above): dev/morling/greeter/fr/GreetingMessages_de.properties Here's the output you requested: jar --describe-module --file german/target/resourceloading

Re: Portable retrieval of resource bundles across module path and class path

2021-07-23 Thread Gunnar Morling
Am Fr., 23. Juli 2021 um 15:05 Uhr schrieb Alan Bateman < alan.bate...@oracle.com>: > On 23/07/2021 12:17, Gunnar Morling wrote: > > : > > > > > For the migration scenario where the resources are in .properties > > format then the simplest may be to just deploy the JAR files on the > > module path

Re: Portable retrieval of resource bundles across module path and class path

2021-07-23 Thread Alan Bateman
On 23/07/2021 12:17, Gunnar Morling wrote: : > For the migration scenario where the resources are in .properties format then the simplest may be to just deploy the JAR files on the module path where they will be treated as automatic modules. In the scenario I have in mind (for educational pu

Re: Portable retrieval of resource bundles across module path and class path

2021-07-23 Thread Gunnar Morling
Thanks a lot for your replies, Mandy and Alan! > I assume the class path is running on JDK <= 8, right? Otherwise Is there something missing after "Otherwise"? In fact, I'm looking for a way to run this - Java 1.8 on classpath - Java 9+ on classpath - Java 9+ on module path As I've learned by