Re: Request for Help : Java Hint to enable Preview feature in gradle project

2019-05-20 Thread Laszlo Kishalmi
Well, In Gradle you need to add the '--enable-preview' jvm arg to multiple places in Gradle (compiler, test runner, and the Java Exec itself). The most elegant way doing that is adding a plugin to the Gradle project which takes care of the internals. The plugin can be a public one (I'd proba

Re: Request for Help : Java Hint to enable Preview feature in gradle project

2019-05-20 Thread Geertjan Wielenga
Good point. :-) Gj On Mon, 20 May 2019 at 13:36, Neil C Smith wrote: > On Mon, 20 May 2019 at 12:10, Geertjan Wielenga > wrote: > > Not sure either, but if there’s no way (Laszlo might be able to advise > > here) to set “enable-preview” on project level, then global (at least as > a > > fallba

Re: Request for Help : Java Hint to enable Preview feature in gradle project

2019-05-20 Thread Neil C Smith
On Mon, 20 May 2019 at 12:10, Geertjan Wielenga wrote: > Not sure either, but if there’s no way (Laszlo might be able to advise > here) to set “enable-preview” on project level, then global (at least as a > fallback) would seem to be the only way to go. I was suggesting (badly) that somewhere in

Re: Request for Help : Java Hint to enable Preview feature in gradle project

2019-05-20 Thread Geertjan Wielenga
Not sure either, but if there’s no way (Laszlo might be able to advise here) to set “enable-preview” on project level, then global (at least as a fallback) would seem to be the only way to go. Gj On Mon, 20 May 2019 at 12:24, Neil C Smith wrote: > On Mon, 20 May 2019 at 11:12, Geertjan Wieleng

Re: Request for Help : Java Hint to enable Preview feature in gradle project

2019-05-20 Thread Neil C Smith
On Mon, 20 May 2019 at 11:12, Geertjan Wielenga wrote: > Maybe read “enable-preview” as a fallback in netbeans.conf? I.e., if not > set anywhere else, check in netbeans.conf for -J-Denable-preview and, if > present, apply to all Java projects, which would include Gradle projects? If you really wa

Re: Request for Help : Java Hint to enable Preview feature in gradle project

2019-05-20 Thread Geertjan Wielenga
Maybe read “enable-preview” as a fallback in netbeans.conf? I.e., if not set anywhere else, check in netbeans.conf for -J-Denable-preview and, if present, apply to all Java projects, which would include Gradle projects? Not 100% sure, but just an idea. Gj On Mon, 20 May 2019 at 11:47, Arunava S

Re: Request for Help : Java Hint to enable Preview feature in gradle project

2019-05-20 Thread Arunava Sinha
Hi, I tried org.gradle.jvmargs=--enable-preview. It didn't worked. Considering the scenarios as there and n number of ways to specify jvm parms for compilation/run and also currently support is not present to read/write gradle configuration from the plugin. I would choose to not provide the h

Re: Re: Request for Help : Java Hint to enable Preview feature in gradle project

2019-05-19 Thread Eric Bresie
How is what’s being discussed different from a “gradle template” type scenario? That said, where in the code are the “hints API” locates? Where does a given hint get it’s possible options? As I understand Gradle, it’s a flavor of groovy coding with some DSL build specifics for the Gradle domain

Re: Request for Help : Java Hint to enable Preview feature in gradle project

2019-05-19 Thread Antonio
Hi, What about adding (or requesting to add) org.gradle.jvmargs=--enable-preview inside gradle.settings? Would that do? Cheers, Antonio El 19/5/19 a las 8:16, Laszlo Kishalmi escribió: I'm replying through the dev mailing list as others could help and/or comment that way. In my per

Re: Request for Help : Java Hint to enable Preview feature in gradle project

2019-05-18 Thread Laszlo Kishalmi
I'm replying through the dev mailing list as others could help and/or comment that way. In my personal point of view as Gradle build scripts are read-only. The are wide variety of those files out there. An editor hint might work. Though detecting if the given compiler arg is set for a source