You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Tim de Vries <te...@gmail.com> on 2023/05/05 18:22:52 UTC

Re: Netbeans template files

Use everything to everyone's advantage.

Y/N/Maybe...

On 2023-04-28 5:15 a.m., Bradley Willcott wrote:
> The version I'm talking about, is coming from the pom.xml file. It is 
> also available to the NB environment as it appears in the Project's 
> Properties window. I would have thought it would be of use to many 
> others who would be including the current project version number in 
> their new class files. I have been manually replacing it in each file 
> after creation for a while now, and was hoping for a more automated 
> (computer driven) solution. After all, why use a computer if it can't 
> be taught to do at least the repetitive tasks?
>
> Thanks.
>
> On 28/4/23 19:06, Andreas Reichel wrote:
>> Unfortunately not really.
>> If I do understand your requirements then I'd think about 3 steps:
>>
>> 1 get the version from git or mercurial
>> 2 update your project template accordingly per script
>> 3 create a hook which runs this update on every new tag created or commit
>>
>> Cheers
>>
>> On 28 Apr 2023 11:59, Bradley Willcott <op...@gmail.com> wrote:
>>
>>     Hi Andreas.
>>     Ok.
>>     Can you help me?
>>
>>     Brad.
>>
>>     On 28/4/23 18:56, Andreas Reichel wrote:
>>
>>         Bradley.
>>
>>         It is safe to ignore Tim's emails as it is only auto
>>         generated rubbish trolling the list.
>>
>>         On 28 Apr 2023 11:45, Bradley Willcott
>>         <op...@gmail.com> <ma...@gmail.com> wrote:
>>
>>             Hi Tim.
>>             Please explain, where and how. I am looking to provide
>>             this info to the Template files in NB. I am not looking
>>             to modify NB code.
>>
>>             Thanks,
>>             Brad.
>>
>>             On 28/4/23 08:14, Tim de Vries wrote:
>>
>>                 yeah, but they dont want me to say.
>>
>>                 Define a global Data.Your_VERSION and post process :
>>                 on?Create to do your work.
>>
>>                 On 24/04/2023 6:26 a.m., Bradley Willcott wrote:
>>
>>                     Hi there.
>>                     I would like to have the project version
>>                     automatically included in the class comments of
>>                     new classes.
>>
>>                     For example:
>>
>>                     /**
>>                       * NewClass class description.
>>                       *
>>                       * @author <a href="mailto:bw.opensource@yahoo.com"  <ma...@yahoo.com>>Bradley Willcott</a>
>>                       *
>>                       * @since 1.0.0
>>                       * @version 1.0.0
>>                       */
>>
>>                     This is currently set through the global
>>                     User.properties file. However, this does not
>>                     reflect the current version of the project.
>>                     I am working on a Java project using the Maven
>>                     build environment.
>>
>>                     Any thought on how to do this?
>>                     Thank you.
>>                     Brad.
>>
>>
>>
>>
>>
>>
>>
>