You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Andy Paul <ap...@blueyonder.co.uk> on 2003/02/14 13:05:35 UTC

[JELLY]nested elements error

Hi,
	I've just installed everything and I'm trying some basic scripts
	The following script runs OK but throws an exception every time it 
executes the echo command

<?xml version="1.0"?>
<j:jelly
	xmlns:ant="jelly:ant"
	xmlns:j="jelly:core">

   <j:set var="mydir" 
value="F:\Phoenix\DEV\client\Evolution\EVOLUTION\com\auriga\util" />
   Scanning for files in ${mydir}...

   <ant:fileScanner var="scanner">
     <ant:fileset dir="${mydir}" includes="**/*.java" />
   </ant:fileScanner>

   Iterating through build files

   <j:forEach var="file" items="${scanner.iterator()}">
	<ant:echo message="Found ${file.absolutePath}" />
   </j:forEach>

</j:jelly>

Exception...
Class org.apache.commons.jelly.tags.core.ForEachTag doesn't support the 
nested "echo" element.

	Does anyone know where I'm going wrong?
	Thanks
		Andy