Re: ModuleMainClass attribute via module-info.java

2020-06-08 Thread Jendrik Johannes
Hi, Just wanted to mention for anyone ending up here as it is related: In Gradle's Java Module support (since Gradle 6.5) we faced the same issue as it fits the input/output model of Gradle tasks better if the *compileJava* task does all the class file creation/modification. So in Gradle it is pos

Re: ModuleMainClass attribute via module-info.java

2020-06-05 Thread Gunnar Morling
Hey Florian, not javac, but ModiTect allows you to specify the main class when defining module descriptors: https://github.com/moditect/moditect#adding-a-module-descriptor-to-the-project-jar --Gunnar Am So., 31. Mai 2020 um 19:32 Uhr schrieb Florian Weimer : > > Is it possible to instruct

Re: ModuleMainClass attribute via module-info.java

2020-05-31 Thread Remi Forax
- Mail original - > De: "Florian Weimer" > À: "jigsaw-dev" > Envoyé: Dimanche 31 Mai 2020 19:31:48 > Objet: ModuleMainClass attribute via module-info.java > Is it possible to instruct javac to generate a ModuleMainClass > attribute via a module decl

ModuleMainClass attribute via module-info.java

2020-05-31 Thread Florian Weimer
Is it possible to instruct javac to generate a ModuleMainClass attribute via a module declaration? I can't find the appropriate syntax in the JLS. If there is no way to get javac to generate the attribute, what is the reason for that?