Re: Netbeans template files

2023-05-05 Thread Tim de Vries
I publish this way. I might test and have [signed&|unsigned]/multiples, 
online. While I'm alive.


Tim

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  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
  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 mailto:bw.opensou...@yahoo.com;  
>Bradley Willcott
  *
  * @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.









Re: Netbeans template files

2023-05-05 Thread Tim de Vries

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  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
  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 mailto:bw.opensou...@yahoo.com;  
>Bradley Willcott
  *
  * @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.









Re: Netbeans template files

2023-04-28 Thread Bradley Willcott
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  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
  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 mailto:bw.opensou...@yahoo.com;  
>Bradley Willcott
  *
  * @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.









Re: Netbeans template files

2023-04-28 Thread Bradley Willcott

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 mailto:bw.opensou...@yahoo.com;>Bradley Willcott
  *
  * @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.





Re: Netbeans template files

2023-04-27 Thread Tim de Vries

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 mailto:bw.opensou...@yahoo.com;>Bradley Willcott
  *
  * @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.




Netbeans template files

2023-04-24 Thread Bradley Willcott

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 mailto:bw.opensou...@yahoo.com;>Bradley Willcott
 *
 * @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.