|
[
Permalink
| « Hide
]
Andy Bryant added a comment - 13/Jul/07 04:40 AM
If the intention is that multiple conditions are not supported currently for maven activation, it would be much better to fail with an error message rather than current behaviour.
This bug is severely limiting, especially since the online documentation indicates an AND operation.
Something like the following should do the trick. This modifies the DefaultProfileManager isActive method so that:
Index: DefaultProfileManager.java + boolean matchedActivator = false; if ( activator.canDetermineActivation( profile ) ) { - return activator.isActive( profile ); + matchedActivator = true; + activate &= activator.isActive( profile ); } }
Adding fix-for for both 2.0.10 and 2.1.0-M1, since 2.1.0-M1 will actually be released first and may not incorporate all of the eventual issue fixes released in 2.0.10.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||