[ http://jira.codehaus.org/browse/MANTRUN-88?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=150826#action_150826 ]
hazen edited comment on MANTRUN-88 at 10/14/08 10:02 PM: ------------------------------------------------------------------- I've seen something similar happen with Maven properties overridden by a Profile: Antrun (1.3) somehow only sees the original property value, not the value as defined by the active Profile. was (Author: hazen): 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