maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "pinghe (JIRA)" <j...@codehaus.org>
Subject [jira] Created: (MNG-1985) Triggering Profiles bugs
Date Thu, 19 Jan 2006 05:53:40 GMT
Triggering Profiles bugs
------------------------

         Key: MNG-1985
         URL: http://jira.codehaus.org/browse/MNG-1985
     Project: Maven 2
        Type: Bug

    Versions: 2.0.2    
 Environment: windows2000 maven 2.02
    Reporter: pinghe
    Priority: Critical


=======env 1,

inside pom.xml
<profiles>
	<profile>
			<id>env-common</id>
			<activation>
				<activeByDefault>true</activeByDefault>
			</activation>
		</profile>
		<profile>
			<id>os-win32</id>
			<activation>
				<activeByDefault>true</activeByDefault>
				<!--os>
					<family>windows</family>
				</os-->
				<property>
					<name>performRelease</name>
				</property>
			</activation>
		</profile>
		<profile>
			<id>env-prod</id>
			<activation>
				<property>
					<name>performRelease</name>
				</property>
			</activation>
		</profile>
	</profiles>

exec: mvn projecthelp:active-profiles
output:  
 - env-common (source: pom)
 - os-win32 (source: pom)

exec: mvn projecthelp:active-profiles -DperformRelease
output:  
 - env-prod (source: pom)
 - os-win32 (source: pom)
expect:
 - env-prod (source: pom)
 - os-win32 (source: pom)
 - env-common (source: pom)

=======env 2:
inside pom.xml
<profiles>
	<profile>
			<id>env-common</id>
			<activation>
				<activeByDefault>true</activeByDefault>
			</activation>
		</profile>
		<profile>
			<id>os-win32</id>
			<activation>
				<activeByDefault>true</activeByDefault>
				<os>
					<family>windows</family>
				</os>
				<property>
					<name>performRelease</name>
				</property>
			</activation>
		</profile>
		<profile>
			<id>env-prod</id>
			<activation>
				<property>
					<name>performRelease</name>
				</property>
			</activation>
		</profile>
	</profiles>

exec: mvn projecthelp:active-profiles
output:  
 - os-win32 (source: pom)
expect:
 - env-prod (source: pom)
 - os-win32 (source: pom)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Mime
View raw message