ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brett Porter <brett.por...@gmail.com>
Subject Re: Updates to the Maven Artifact Ant tasks
Date Wed, 08 Jun 2005 08:18:38 GMT
On 6/8/05, Nicola Ken Barozzi <nicolaken@apache.org> wrote:
> I would use PropertyHelper instead:
> 
> http://cvs.apache.org/viewcvs.cgi/ant/src/main/org/apache/tools/ant/PropertyHelper.java?view=markup
> 
> Here is an example:
> 
> http://cvs.apache.org/viewcvs.cgi/ant/proposal/embed/src/java/org/apache/tools/ant/taskdefs/XMLDOM.java?view=markup
> http://cvs.apache.org/viewcvs.cgi/ant/proposal/embed/test.xml?rev=1.9&view=markup
> 
> In this way, instead of
> 
>    <artifact:setProperty property="parent.artifact.id"
>                          expression="project.parent.artifactId"
>                          pomRefId="maven.project" />
> 
> One could do something like:
> 
>    <property name="parent.artifact.id"
>              value="${maven.project:project.parent.artifactId}">

This looks good, but looking at the examples you gave, I don't see any
use of the PropertyHelper? I will have to spend some more time with it
later on.

> Please do, I will use it right away.

http://www.ibiblio.org/maven2/org/apache/maven/maven-artifact-ant/2.0-SNAPSHOT/maven-artifact-ant-2.0-20050608.072503-1-dep.jar

Thanks,
Brett

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


Mime
View raw message