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 <optusprepa...@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
<optusprepa...@gmail.com> <mailto:optusprepa...@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.opensou...@yahoo.com"
<mailto:bw.opensou...@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.