maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashish Kumar (JIRA)" <j...@codehaus.org>
Subject [jira] Commented: (MANTRUN-40) Properties defined in pom <properties> do not propagate to the antrun environment
Date Mon, 02 Nov 2009 19:07:55 GMT

    [ http://jira.codehaus.org/browse/MANTRUN-40?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=196921#action_196921
] 

Ashish Kumar commented on MANTRUN-40:
-------------------------------------

I am waiting for this fix. This issue has been fixed in trunk long back. But version 1.4 is
not released yet. This last release of version 1.3 happened on Oct 11, 2008. So, even after
a year wait, new release didn't happen.

Any Idea, when are we going to release v1.4 officially ?

> Properties defined in pom <properties> do not propagate to the antrun environment
> ---------------------------------------------------------------------------------
>
>                 Key: MANTRUN-40
>                 URL: http://jira.codehaus.org/browse/MANTRUN-40
>             Project: Maven 2.x Antrun Plugin
>          Issue Type: Improvement
>    Affects Versions: 1.1
>            Reporter: Jason Dillon
>            Assignee: Paul Gier
>            Priority: Critical
>             Fix For: 1.4
>
>
> Properties defined in pom <properties> do not propagate to the antrun environment.
> For example:
> {code}
> <properties>
>     <my.property>foo</my.property>
> </properties>
> {code}
> Does *not* get propagate to Ant.  While properties defined within the pom will resolve,
the properties are not available as an Ant property.  So from antrun:
> {code}
> <ant antfile="${pom.basedir}/src/ant/build.xml" dir="${pom.basedir}" inheritAll="true"
inheritRefs="true" target="foo"/>
> {code}
> And then the Ant build.xml:
> {code}
> <project>
>     <target name="foo">
>         <echo>${my.property}</echo>
>     </target>
> <project>
> {code}
> The output will be:
> {noformat}
> [echo] ${my.property}
> {noformat}
> Instead of what it *should be*:
> {noformat}
> [echo] foo
> {noformat}
> The workaround is to delegate to a build.xml file with the ant task and redefine each
property that is needed:
> {code}
> <ant antfile="${pom.basedir}/src/ant/build.xml" dir="${pom.basedir}" inheritAll="true"
inheritRefs="true" target="foo">
>     <property name="my.property" value="${my.property}"/>
> </ant>
> {code}

-- 
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

        

Mime
View raw message