On Mon, Aug 1, 2011 at 9:14 AM, Kathryn Huxtable
<[email protected]> wrote:
> Actually, can I require that a profile be activated when both a jdk version 
> *and* an os family are selected, or is it always an "or" comparison? -K

You know, I dont know.
You might be better starting a separate thread to ask that question.

My googling gets me contradictory answers.
http://www.google.com/search?q=maven+profile+activation

The POM reference docs (http://maven.apache.org/pom.html#Activation)
* Activation occurs when one or more of the specified criteria have
been met. When the first positive result is encountered, processing
stops and the profile is marked as active.

Introduction to Build Profiles
(http://maven.apache.org/guides/introduction/introduction-to-profiles.html)
* Doesn't have any examples that use multiple values within activation

Maven: The Complete Reference Section 5.3. Profile Activation
(http://www.sonatype.com/books/mvnref-book/reference/profiles-sect-activation.html)
* Activations can contain one of more selectors including JDK
versions, Operating System parameters, files, and properties. A
profile is activated when all activation criteria has been satisfied.

So I suggest you try multiple and find out what happens.
Then we need to create a JIRA to fix the documentation...

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to