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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]