I think you are facing the problem I did. The ant installation on your
environment seems to have been corrupted. Couldn't find a proper solution ,
but the problem goes if you create a new  user (i.e if you are using nt or
win2k) and use ant through the new user's login.
----- Original Message -----
From: "Bernd Gruendling" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 03, 2001 4:33 AM
Subject: Target 'build.xml' does not exist...


Hi,

I'm trying to set up my first ANT project. I started with this
four-liner in a file called "simple.xml":

   <project default="whatever">
      <target name="whatever">
      </target>
   </project>

The currenct directory contained nothing but this. My first attempt was

   [d:\temp\anttest]ant
   Buildfile: build.xml does not exist!
   Build failed.

Well. I understand that: build.xml is the default name for the build
file. Lets try

   [d:\temp\anttest]ant -buildfile simple.xml
   Buildfile: build.xml does not exist!
   Build failed.

Why does it insist on build.xml?


Lets rename simple.xml to build.xml:

   [d:\temp\anttest]ren simple.xml build.xml
   [d:\temp\anttest]ant
   Buildfile: build.xml

   BUILD FAILED

   Target 'build.xml' does not exist in this project.

Why does ANT confuse the build file and the target?

   [d:\temp\anttest]ant -buildfile build.xml
   Buildfile: build.xml

   BUILD FAILED

   Target 'build.xml' does not exist in this project.

Hm.

   [d:\temp\anttest]ant -help
   Buildfile: build.xml

   BUILD FAILED

   Target 'build.xml' does not exist in this project.


Time to go home.

What did I wrong?




Regards,
Bernd Gründling
_______________________________________________________________________
Bernd Gruendling                            Custom Software Development
Systemberatung Softwaredesign                    for Mac OS and Windows

Wendenstrasse 16                                Phone: +49 5363 97676-0
38448 Wolfsburg, Germany                    Facsimile: +49 5363 97676-9


Reply via email to