Hello,

There is no problem with the script you wrote.  Here is the result I got
with your code:

>ant -buildfile build.xml

Buildfile: build.xml
talk:
     [echo]
               Hello world
BUILD SUCCESSFUL
Total time: 0 seconds
>


-----Original Message-----
From: "LABURTHE, François" [mailto:[EMAIL PROTECTED]] 
Sent: 2002年2月26日 10:14
To: '[EMAIL PROTECTED]'
Subject: target selection: sthg wrong in the installation ?

I installed jakarta-ant-1-4-1 under Windows NT4:
  - unzipped the archive and put everything into d:\sys\ant
  - defined the environment variable ANT_HOME
  - added d:\sys\ant\bin to the PATH environment variable
  (I use a jdk1.3, installed in d:\sys\java\jdk1.3 and JAVA_HOME is
already
defined as d:\sys\java\jdk1.3)

Tried to use the simplest build.xml file I could come up with

        <project name="trivialproject" default="talk" basedir=".">
          <target name="talk">
            <echo>
               Hello world
            </echo>
          </target>
        </project>

When calling 'ant' or 'ant talk', I got the following answer (as if ant
had
tried to select as a target 
the first file in the current directory, e.g. build.bak)

Buildfile: build.xml
BUILD FAILED
Target `build.BAK' does not exist in this project.
Total time: 0 seconds

Anyone has an indea on what I am doing wrong. Did I miss something in
the
installation ?

Thanks,

        François

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>




Reply via email to