Community
Participate
Working Groups
I have a ant build.xml with import task.It looks like as below: <?xml version="1.0" encoding="UTF-8"?> <project name="helloproject" basedir="." > <property file="build.properties"/> <import file="imported.xml"/> <target name="hello" description="hello"> <echo>hello</echo> </target> </project> the same build.xml works fine in eclipse 3.2,but shows "Content is not allowed in prolog." error at line 1 in eclipse 3.2.1. After I replace the "org.eclipse.ant.ui_3.2.1.r321_v20060828.jar" in eclipse 3.2.1 with "org.eclipse.ant.ui_3.2.0.v20060531.jar" from eclipse 3.2,that error disappeared.
Thank you for the bug report. Can you provide the imported.xml file? Are you using Eclipse's Ant or pointing to an external Ant install?
(In reply to comment #1) > Thank you for the bug report. > > Can you provide the imported.xml file? > Are you using Eclipse's Ant or pointing to an external Ant install? > The imported.xml just export my project from CVS like: <?xml version="1.0" encoding="UTF-8"?> <project name="cvs" basedir="." default=""> <property file="build.properties" /> <target name="exportFromCVS"> <cvs cvsroot="${cvs.directory}"> <commandline> <argument value="export" /> <argument value="-r" /> <argument value="HEAD" /> <argument value="-d" /> <argument value="${project.export.dir}" /> <argument value="myproject" /> </commandline> </cvs> </target> </project> And I found that if my imported.xml encoding is UTf-8 with BOM,the error appears in build.xml.If my imported.xml encoding is UTf-8 without BOM,nothing happend.
Thanks Anthony. Is there still a difference between 3.2 and 3.2.1? Possibly at duplicate of bug 67048.
The difference between Eclipse 3.2 and Eclipse 3.2.1 is our handling of the import tasks and we introduced a bug...fixed via 174759 *** This bug has been marked as a duplicate of bug 174759 ***