You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "gnodet (via GitHub)" <gi...@apache.org> on 2026/05/14 18:21:57 UTC

[I] ConditionParser: tokenize arithmetic operators as delimiters [maven]

gnodet opened a new issue, #12052:
URL: https://github.com/apache/maven/issues/12052

   ### Context
   
   PR #12038 fixes the tokenization of `&&` and adds proper whitespace handling in `ConditionParser.tokenize()`.
   
   ### Problem
   
   The remaining arithmetic operators (`-`, `*`, `/`) are still not recognized as delimiter characters in the tokenizer. This means expressions without spaces around these operators (e.g., `5-3`, `5*3`, `10/2`) are tokenized as a single token and fail to parse.
   
   ### Notes
   
   - `-` needs special care since it can appear in property names with hyphens (e.g., `my-property`) and as a unary negation operator
   - `*` and `/` are straightforward to add as delimiters
   - These operators are rarely used in profile activation conditions, so this is low priority
   - The fix should follow the same pattern used for `&&` and `||` tokenization
   
   Related: #11882, #12038
   
   _Claude Code on behalf of Guillaume Nodet_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] ConditionParser: tokenize arithmetic operators as delimiters [maven]

Posted by "gnodet (via GitHub)" <gi...@apache.org>.
gnodet closed issue #12052: ConditionParser: tokenize arithmetic operators as delimiters
URL: https://github.com/apache/maven/issues/12052


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org