Re: Adjust Model Interpolation on 'project.basedir'

2022-01-07 Thread Fred Eisele
Here is the code change. update-version generate-sources execute projectBaseDir ${project.basedir} mavenVersion ${project.version}

Re: Adjust Model Interpolation on 'project.basedir'

2022-01-07 Thread Fred Eisele
Alex, You are correct my "fix" was pretty cryptic. When I wrote it I was not entirely sure why what I did corrected the issue. You are right the fundamental issue has to do with when the string interpolation happens. If it is done by maven then groovy is left with a literal string containing

Re: Adjust Model Interpolation on 'project.basedir'

2022-01-06 Thread Alexander Kriegisch
Fred, you did not describe how exactly you solved the problem. You just mentioned properties of which there are several types, which is why your answer is unclear: -- literal Maven properties which you tried to use before -- '' for the GMplus 'execute' goal -- properties implicitly bound

Re: Adjust Model Interpolation on 'project.basedir'

2022-01-06 Thread Fred Eisele
I found the fix. I need to use https://github.com/groovy/GMavenPlus/wiki/Examples#execute-scripts properties which somehow do not have this problem. On Thu, Jan 6, 2022 at 6:13 PM Fred Eisele wrote: > > I have a situation where I am using a code generator which reads text > generated from the

Fwd: Adjust Model Interpolation on 'project.basedir'

2022-01-06 Thread Fred Eisele
I have a situation where I am using a code generator which reads text generated from the pom.xml file. The problem is that the code generator is written in groovy which does not like '\' in the file path. The current line of code is... ```maven def file = new