Failed to create Java Project...



I have an existing Java project with an ant build scrip, build.xml. I
tried to create an Eclipse project by using the "Java Project from
Existing Ant Buildfile" wizard. However, every time I select the
build.xml file in the "Ant Buildfile" field, there is an error

The file selected is not a valid Ant buildfile

However, I can use ant to build using the same build.xml file. My
questions:

1. Is there a more detailed error message from Eclipse about what's
wrong with the "build.xml" ant file I specified in the New
project wizard?

2. How is the Ant/Eclipse integration happen? Which ant executable
does Eclipse use? Could it be that my problem is actually a
configuration problem?

Here are my environments.

OS: Linux river 2.6.22-14-generic #1 SMP Tue Feb 12 07:42:25 UTC 2008
i686 GNU/Linux

Eclipse: Version: 3.2.2
Build id: M20070212-1330 ('Ubuntu' version: 3.2.2-3ubuntu3)

Java: Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode,
sharing)

Ant: Apache Ant version 1.7.0 compiled on August 29 2007

Thanks in advance,

Estro
.



Relevant Pages

  • Re: Changing IDE = Ton Of Work
    ... > If eclipse has ant support, ... I will just continue my file layout to get Eclipse happy. ... "right" place in the file system. ... I could have apples.java somewhere crazy and JBuilder wouldn't care so ...
    (comp.lang.java.programmer)
  • Re: Eclipse vs. GetResourse
    ... I'm waiting for an IDE ... > Eclipse can invoke any ANT task. ...
    (comp.lang.java.softwaretools)
  • Compilieren mit Eclipse und ANT
    ... ich habe in Eclipse 3.2 ein dynamisches Web-Projekt angelegt und Sourcen ... In Eclipse wird kein Fehler gemeldet, aber wenn ich den ANT-Task(in Eclipse ... Ich vermute, dass ich ANT sagen muss, welche Compiler Version genutzt werden ... Unter Run an Ant buildfile ist bereits eingestellt: Run in the same JRE as ...
    (de.comp.lang.java)
  • Re: lokales JRE
    ... Wenn das JRE/JDK Teil der Projektverzeichnistruktur ist, ... Entwickler dieses installieren, ... Damit Ant gegen ein bestimmtes JRE kompiliert muss ich Ant sagen wo ... Ja ganz sauber ist es nicht die Eclipse spezifische .classpath ins CVS ...
    (de.comp.lang.java)
  • Re: Giving an application a window icon in a sensible way
    ... Well, I was under the impression that you hadn't been able to get Eclipse to build the JAR file for you as part of an atomic, automated build. ... The main reason that I like to use Ant for the build rather than the IDE's built-in mechanism is because it stops you from being tied to the IDE. ... This is advantageous for integrating with other processes, such as continuous integration systems. ...
    (comp.lang.java.programmer)