Ant The <copy> type doesn't support nested text data (" ") issue

ant

Solution

I figure out the issue. I

copied the content and pasted in the vim editor

, there were some garbage character due to encoding which was invisible. If whole content is typed in vim editor without copying it works fine.

Problem

Hi My ant build script snippest looks like this. ``` <copy todir="${warDir}/WEB-INF/classes"> <fileset dir="${classdir}" includes="**/*.class" />  </copy> ``` I'm getting this error message when I execute ant against this build.xml ``` The <copy> type doesn't support nested text data (" "). ``` Can someone point out the issue I'm using fedora 16 and ant distribution 1.7.0

Original source