You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by raj kanwal <ra...@gmail.com> on 2007/04/19 08:42:32 UTC

Query regarding working of Ant

I have installed Apache Ant1.7.0. When I run ant command it is giving error
build.xml file not found..The files that r present in my directory Apache
Ant are fetch.xml and get-m2.xml.
When I try to run
ant -buildfile fetch.xml it is giving an error  - "import command not found"
, similar is the error with get-m2.xml...
 I am not able to locate build.xml.....
ant -version is working fine.
If anyone of u can help me

RE: Query regarding working of Ant

Posted by "Rebhan, Gilbert" <Gi...@huk-coburg.de>.
 
Hi,

-----Original Message-----
From: raj kanwal [mailto:rajcools@gmail.com] 
Sent: Thursday, April 19, 2007 8:43 AM
To: user@ant.apache.org
Subject: Query regarding working of Ant


>build.xml file not found.

that's normal when running ant command without
pointing to a file, i.e. C:\>ant

>ant -buildfile fetch.xml it is giving an error  - "import command not
found"

sounds like a syntax error in your build file.

are you trying something like =

    <!-- // Import MacroDefs -->
    <!-- import common targets -->
    <import file="../common/common_macros.xml" optional="false"/>
    <!-- Import MacroDefs // -->


some editors, f.e. Eclipse show errors, better than using notepad.


Regards, Gilbert


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org