I am using a simple jelly script in maven. I want to call the size() method on a
ArrayList Object, and get the following exception:
org.apache.commons.jelly.JellyException: null:-1:-1: <null> Unable to create
expression: path_list.size()
at
org.apache.commons.jelly.parser.XMLParser.createSAXException(XMLParser.java:1234)
.....
This is the script:
<project default="demo" xmlns:j="jelly:core" xmlns:u="jelly:util">
<goal name="demo">
<u:tokenize var="path_list"
delim="${file.separator}">some\path</u:tokenize>
<!-- next two lines work, their output is:
[echo] Class: 'class java.util.ArrayList'
[echo] First element: 'some'
-->
<echo message="Class: '${path_list.getClass().getName()}'"/>
<echo message="First element: '${path_list.get(0)}'"/>
<!-- results in the execption -->
<echo message="Path_list.size: '${path_list.size()}'"/>
</goal>
</project>
What really confuses me is that other methods on that ArrayList (e.g. get(..)) work.
Does Jelly have problems with primitive type return values?
Any help to get me started with jelly really appreciated
Thanks,
Simon
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]