Get number of lines in property using resourcecount
===

I am trying to get a ANT-Buildscript to count the lines that are stored inside a ANT-property. From the examples I got the way to count the lines in a file, like this:

    <resourcecount count="0" when="eq">
    	<tokens>
    		<concat>
    			<filterchain>
    				<tokenfilter>
    					<linetokenizer/>
    				</tokenfilter>
    			</filterchain>
    			<fileset file="${file}" />
    		</concat>
    	</tokens>
    </resourcecount>

Now I want to refer to a ANT-property instead of the file. Is there a way to do this? I know about the solution to write the contents of the property into a file using <code>&lt;echo file="${temp.file}"&gt;${the.property.with.many.lines}&lt;/echo&gt;</code> and using the code above after. But I wonder if there is a solution that works without a temporary file.