Re: Lookup, optional method

2020-07-02 Thread Tim Boudreau
A year or two ago I might have +1'd this. Having used my own lookup-like API for something unrelated, that returns Optional, I can relate the following: - About half the time, if the Optional is actually not present, something has gone horribly, horribly wrong; so you either write code that assu

Re: where to put generated code

2020-07-02 Thread Antonio
Hi again, Yep, it seems the "build-helper" Maven plugin is actually considered [1] and used to return the generated sources URIs. Also it seems that Maven projects define an _internal_ constant for generated sources (see [2]), whose value is "GeneratedSources". You can use that as a paramet

Lookup, optional method

2020-07-02 Thread Hector Espert
A few months ago, I created a draft PR to add a method in the Lookup class that returns a Java optional. https://github.com/apache/netbeans/pull/2063 There wasn't any special reason. Only I used it to study how the Netbeans documentation works. If anybody is interested in that, I will continue w

Re: where to put generated code

2020-07-02 Thread Antonio
Hi, Some comments inlined below. El 02/07/2020 a las 17:42, Eduard Karel de Jong escribió: Hi Antonio, Thanks for you answer, those are the details  I'd need to implement what I called the 'brute force' approach.' Which involves to determine the project type by looking for the presence of pa

Re: where to put generated code

2020-07-02 Thread Eduard Karel de Jong
Hi Antonio, Thanks for you answer, those are the details  I'd need to implement what I called the 'brute force' approach.' Which involves to determine the project type by looking for the presence of particularly named build file. As I had not figured out all of these details yet, your answer

Re: where to put generated code

2020-07-02 Thread Antonio
Hi Eduard, Ah, I see in your original email that you want to generate code from your plugin. What about this? = Generating sources for Ant based projects: 1.- The code of your plugin must create a directory named "build/generated-sources/your-plugin-name" 2.- The code of your plugin then

Re: where to put generated code

2020-07-02 Thread Antonio
Hi Eduard, Before going any further into investigating any solutions, could you please explain us what the problem you are trying to solve is? Are you trying to generate source code from your plugin? For both Maven and Ant type projects? Or do you just want to know which the generated source

AW: How to self host the plugins

2020-07-02 Thread Christian Lenz
My plan is: • Creating a new GitHub page (maybe with nuxt.js but it doesn’t matter) which will be my own plugin portal • List all my plugins there, add some info from the repos and add the links to the releases of those plugins to the detail page of the plugin • Make a list of all latest releases

Re: How to self host the plugins

2020-07-02 Thread Peter Cheung
Thanks Tim From: Tim Boudreau Sent: Thursday, July 2, 2020 4:44 PM To: dev@netbeans.apache.org Subject: Re: How to self host the plugins One option is this - follow the link in the page head: https://timboudreau.com/modules So, set up Jenkins or similar somewhe

Re: How to self host the plugins

2020-07-02 Thread Tim Boudreau
One option is this - follow the link in the page head: https://timboudreau.com/modules So, set up Jenkins or similar somewhere to build your modules and archive the nbm file for each module. Run the server (just java -jar, no application servers), and add URLs to the last successful build link f