facebook

Ant-error: build failed: Document root element is missing

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #235421 Reply

    Hello, I’m getting the following error when I’m trying to do an “ant clean” to my web project.

    C:\Projects\hallinta\src\build.xml:1: Document root element is missing.

    I’m using Eclipse 3.1 w/ MyEclipse 4.0 M3.

    What am I doing wrong here? I can run all of my ant tasks from command prompt with no problem.

    Thanks, Tero

    #235422 Reply

    @terppa wrote:

    Hello, I’m getting the following error when I’m trying to do an “ant clean” to my web project.

    C:\Projects\hallinta\src\build.xml:1: Document root element is missing.

    I’m using Eclipse 3.1 w/ MyEclipse 4.0 M3.

    What am I doing wrong here? I can run all of my ant tasks from command prompt with no problem.

    Thanks, Tero

    This seems to be related to the version of ant used. When running ant in console, an instance of version 1.5.1 gets run. And when using [My]Eclipse, the shipped ant plugin, which is of version 1.6.5 gets run.

    So I assume that I need to rewrite my build.xml then.

    Regards, Tero

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Ant-error: build failed: Document root element is missing

You must be logged in to post in the forum log in