I propose we use the following regex:
<regex>^([4\.(1\.[1-9][0-9]*(\.[1-9][0-9]*)?|2\.[a-z]))$</regex>
This is pretty permissive with respect to the Enterprise 4.1 version series
and the community 4.2 series but blocks back versions that are not
supported by this infrastructure. It also blocks enterprise not in the
4.1.x space and community not in the 4.2.x space.
I'm happy to make this change if folks agree or if folks want to optimize
the regex in a different fashion, let me know and I can propose some
additional expressions.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
maven-alfres...@googlecode.com
unread,
May 31, 2013, 11:58:37 AM5/31/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
The goal of the enforcer regexp was to provide a nice (?) error message
when using a version of Alfresco where the POM files were empty, which is
4.1.1 or before.
It therefore matches
* 4.1.2 and above
* 4.2 and above
* 5 and above
The current regexp does exactly that ([5-9] matches the first number, not
the middle one) and I don't see what the problem is with it.
We don't want to match the end of the version string, because there are
hotfix versions which have 4 digits, and matching that too would make it
unnecessarily complex.
Could you explain what you are trying to fix?
maven-alfres...@googlecode.com
unread,
May 31, 2013, 4:37:46 PM5/31/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message