commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dion Gillard <dion.gill...@gmail.com>
Subject Re: cvs commit: jakarta-commons/jelly/src/test/org/apache/commons/jelly testFile.jelly
Date Fri, 21 Jan 2005 22:53:49 GMT
Does this really work? Because...


On 21 Jan 2005 20:42:16 -0000, polx@apache.org <polx@apache.org> wrote:
> polx        2005/01/21 12:42:16
> 
>   Modified:    jelly/src/java/org/apache/commons/jelly/tags/core
>                         FileTag.java
>                jelly/src/test/org/apache/commons/jelly testFile.jelly
>   Log:
>   Fixing issue JELLY-191 raised by Marc Dexet.
>   "FileTag should allow appending to a file".
>   It is now possible to use and append boolean attribute.
[snip]
>   +
>   +    /**
>   +     * Sets wether to append at the end of the file
>   +     * (not really something you normally do with an XML file).
>   +     */
>   +    public void setAppends(boolean doAppend) {
>   +        this.doAppend = doAppend;
>   +    }
>   +

The method here is called setAppends (note the 's').


>   1.5       +11 -1     jakarta-commons/jelly/src/test/org/apache/commons/jelly/testFile.jelly
[snip]
>   +<set var="size" value="${f.length()}"/>
>   +<file name="target/test_iso.xml" encoding="ISO-8859-1" append="true">
>   +  <include uri="dummy.xml"/>
>   +</file>

And note the attribute used above of 'append' , with no 's'.

?
-- 
http://www.multitask.com.au/people/dion/

---------------------------------------------------------------------
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