commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@multitask.com.au
Subject [jelly] [define] invokeBody bug?
Date Mon, 17 Mar 2003 13:28:43 GMT
I have a tag that uses define:invokeBody.

That tag is repeatedly called within a forEach tag. From the looks of 
things, the script is being compiled and the variables only looked up 
once:

e.g.:

    <x:forEach var="group" select="$audit/licenses/project/groupId">
      <j:set var="directory" 
        value=
"${maven.repo.central.directory}/${group.text}/${directoryName}" />
      <echo>Ensuring directory '${directory}' exists</echo>
      <repository:exec>
        mkdir -p ${directory};
        chmod g+ws ${directory};
        chgrp ${maven.repository.group} ${directory};
      </repository:exec>
    </x:forEach>

does this:

repository:audit-create-directory:
    [echo] Ensuring directory '/public/html/maven/aelfred/poms' exists
    [echo] Executing 'mkdir -p /public/html/maven/aelfred/poms;
        chmod g+ws /public/html/maven/aelfred/poms;
        chgrp maven /public/html/maven/aelfred/poms;' remotely
    [echo] Ensuring directory '/public/html/maven/ant-contrib/poms' exists
    [echo] Executing 'mkdir -p /public/html/maven/aelfred/poms;
        chmod g+ws /public/html/maven/aelfred/poms;
        chgrp maven /public/html/maven/aelfred/poms;' remotely
    [echo] Ensuring directory '/public/html/maven/ant/poms' exists
    [echo] Executing 'mkdir -p /public/html/maven/aelfred/poms;
        chmod g+ws /public/html/maven/aelfred/poms;
        chgrp maven /public/html/maven/aelfred/poms;' remotely
    [echo] Ensuring directory '/public/html/maven/antlr/poms' exists
    [echo] Executing 'mkdir -p /public/html/maven/aelfred/poms;
        chmod g+ws /public/html/maven/aelfred/poms;
        chgrp maven /public/html/maven/aelfred/poms;' remotely

Note the continual use of 'aelfred' in the second of the echo's.
--
dIon Gillard, Multitask Consulting
Blog:      http://www.freeroller.net/page/dion/Weblog
Work:      http://www.multitask.com.au


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


Mime
View raw message