Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 333922

Summary: unable to handle working ant buildfile
Product: [Eclipse Project] Platform Reporter: maximilian.mehnert
Component: AntAssignee: Platform-Ant-Inbox <platform-ant-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: major    
Priority: P3 CC: Michael_Rennie, pwebster, remy.suen
Version: 3.6.1   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:

Description maximilian.mehnert CLA 2011-01-10 17:38:26 EST
Build Identifier: M20100909-0800

Eclipse is not able handle the otherwise working ant buildfile from the tigase-server project (http://www.tigase.org)

Reproducible: Always

Steps to Reproduce:
checkout https://svn.tigase.org/reps/tigase-server/trunk
Import as a project with existing ant buildfile fails because the javac target is not found.

Creating a normal java project and defining a builder that just runs "/usr/bin/ant" produces:


Buildfile: /usr/bin/ant

BUILD FAILED
/usr/bin/ant:1: Content is not allowed in prolog.
Comment 1 Remy Suen CLA 2011-01-10 17:47:08 EST
I presume this works from the command line?

Do other Ant files work in Eclipse?
Comment 2 maximilian.mehnert CLA 2011-01-10 18:00:54 EST
Yes to both.
Comment 3 Michael Rennie CLA 2012-01-04 16:38:59 EST
(In reply to comment #2)
> Yes to both.

Which buildfile from https://svn.tigase.org/reps/tigase-server/trunk are you trying to run?

If I grab the build.xml file from that location it runs fine (it fails, but that is because my workspace is not set up for it)
Comment 4 Michael Rennie CLA 2012-12-12 13:18:31 EST
Closing worksforme, I could not reproduce and the original reported exception is caused by malformed XML ("Content is not allowed in prolog.")