Ant Type <copy> does not support the problem with nested text data ("")

Hi, my ant build script snippest is as follows.

<copy todir="${warDir}/WEB-INF/classes">
    <fileset dir="${classdir}" includes="**/*.class" /> 
</copy>

I get this error message when I execute ant against this build.xml file

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

Can someone point out the problem I'm using in Fedora 16 and ant distribution 1.7.0

+5
source share
3 answers

I find out this problem. I

copied the contents and pasted into the vim editor

due to encoding that was invisible, some garbage symbol existed. If solid content is entered in the vim editor without copying, it works great.

+13
source

, , . , . - - ( ).

+2

. , ?

ANT , ANT.

:

    <copy> todir="${warDir}/WEB-INF/classes"
        <fileset dir="${classdir}" includes="**/*.class" />
    </copy>

ANT , "todir" , , XML.

+1

All Articles