raydac / java-comment-preprocessor

preprocessor for computer languages with C-like comment format (C/C++/Java/Go)
Apache License 2.0
172 stars 27 forks source link

Maven property override in command line #30

Closed gwenn closed 3 years ago

gwenn commented 3 years ago

It seems that override from command line is ignored:

mvn -Dmy.property=false compile
  <properties>
    <my.property>true</my.property>
  </properties>
    //#if mvn.project.property.my.property == "true"
...
    //#endif

I uses a profile to bypass.

raydac commented 3 years ago

good point, I just importing property value directly from project properties field but to process overriding values it is needed to be more complex one, will fix

raydac commented 3 years ago

I have fixed it in 7.0.5-SNAPSHOT

gwenn commented 3 years ago

Validated in 7.0.5-SNAPSHOT Should I close the current issue ? Thanks.

raydac commented 3 years ago

you can close if all is ok