> -----Original Message-----
> From: Jerome Lacoste [mailto:[EMAIL PROTECTED]
> Sent: 03 June 2004 17:18
> To: [EMAIL PROTECTED]
> Subject: retrieve the path of a particular artifact
> 
> Hei,
> 
> I have tried to use cactus ant script within maven (without the
> maven-cactus plugin, because I was offline and couldn't download it).
> 
> I managed to make it work.
> 
> At some point I needed to add some cactus libs (or dependencies) to
the
> classpath, which required me to add a particular path.
> 
> I solved it doing the following:
> 
> <j:forEach var="artifact" items="${pom.artifacts}">
>   <j:if test="${artifact.dependency.artifactId =='httpunit'}">
>     <ant:property name="httpunit.path" value="${artifact.path}"/>
>     <echo message="found httpunit path ${httpunit.path}"/>
>   </j:if>
>   [...]
> </j:forEach>
> 
> I guess there's something cleaner allowing to access directly an
> artifact given its name or id.
> 
> Any idea?

Yes! Check the maven plugin jelly code for example... ;-)

-Vincent


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to