You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Andy Schlaikjer (JIRA)" <ji...@codehaus.org> on 2008/10/15 05:02:51 UTC
[jira] Commented: (MANTRUN-88) Profile properties not handled
correctly
[ http://jira.codehaus.org/browse/MANTRUN-88?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=150826#action_150826 ]
Andy Schlaikjer commented on MANTRUN-88:
----------------------------------------
I've seen something similar happen with Maven properties overridden by a Profile: Antrun somehow only sees the original property value, not the value as defined by the active Profile.
> Profile properties not handled correctly
> ----------------------------------------
>
> Key: MANTRUN-88
> URL: http://jira.codehaus.org/browse/MANTRUN-88
> Project: Maven 2.x Antrun Plugin
> Issue Type: Bug
> Reporter: Thomas Diesler
>
> [INFO] [help:effective-settings]
> [INFO]
> Effective settings:
> {code:xml}
> <?xml version="1.0"?>
> <settings>
> <localRepository>/home/tdiesler/.m2/repository</localRepository>
> <profiles>
> <profile>
> <properties>
> <jboss.local.repository>/home/tdiesler/svn/jboss.local.repository</jboss.local.repository>
> </properties>
> </profile>
> </profiles>
> <activeProfiles>
> <activeProfile>jbossws</activeProfile>
> </activeProfiles>
> </settings>
> {code}
> This executes
> {code:xml}
> <tasks if="jboss.local.repository">
> <property name="version.id" value="${project.version}"/>
> <property name="jboss.local.repository" value="${jboss.local.repository}"/>
> <echo message="Install to jboss.local.repository=${jboss.local.repository}"/>
> <ant antfile="ant/build-install.xml" target="install"/>
> </tasks>
> {code}
> because 'jboss.local.repository' is set, however later the property has no value
> [INFO] Executing tasks
> [echo] Install to jboss.local.repository=${jboss.local.repository}
> init:
> [echo] version.id=3.0.2-SNAPSHOT
> [echo] repository.id=3.0.2-SNAPSHOT
> [echo] jboss.local.repository=${jboss.local.repository}
--
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