Hi,

I'm writing a jelly script for building a project and also building
it's dependencies in 1 go. I currently do this:

        <goal name="build:withdeps" description="Builds your module and all
it's SNAPSHOT dependencies">
                <ant:echo>Building this module (${pom.id}) with all it's 
SNAPSHOT
dependencies</ant:echo>
                <ant:echo message="There are ${size(pom.dependencies)} 
artifacts for
this project"/>
                <j:forEach items="${pom.dependencies}" var="dep" 
indexVar="depNumber">
                        <ant:echo message="Dependency ${depNumber}: 
${dep.artifact}"/>
                        <ant:echo>${dep.version}</ant:echo>
                        <ant:echo>SNAPSHOT present? 
${dep.version.contains('SNAPSHOT')}</ant:echo>
                        <j:if test="${dep.version.contains('SNAPSHOT')}">
                                <!--<attainGoal name="build:withdeps" />-->
                        </j:if>
                </j:forEach>
                <attainGoal name="jar:install"/>
        </goal>

This works to find out what modules need to be build, but then I am
stuck. I want to start my goal "build:withdeps" in the directory of
the dependency so that one gets build (and if it also has snapshot
dependencies, those get build first). Is there a way to do this?

regards,

Wim

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

Reply via email to