Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 22309 invoked from network); 6 Jun 2008 18:56:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jun 2008 18:56:57 -0000 Received: (qmail 12939 invoked by uid 500); 6 Jun 2008 18:56:56 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 12778 invoked by uid 500); 6 Jun 2008 18:56:56 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 12767 invoked by uid 99); 6 Jun 2008 18:56:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jun 2008 11:56:56 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [194.158.96.209] (HELO relay-ev.club-internet.fr) (194.158.96.209) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jun 2008 18:56:06 +0000 Received: from [192.168.1.2] (gre92-3-89-85-219-2.dsl.club-internet.fr [89.85.219.2]) by relay-ev.club-internet.fr (Postfix) with ESMTP id ACAD325613 for ; Fri, 6 Jun 2008 20:56:21 +0200 (CEST) Message-ID: <48498854.6050104@free.fr> Date: Fri, 06 Jun 2008 20:56:20 +0200 From: supareno User-Agent: Thunderbird 1.5.0.14ubu (X11/20080505) MIME-Version: 1.0 To: Ant Users List Subject: Re: calling ant from java References: <004301c8c7d5$eaa87850$16362c0a@persistent.co.in> In-Reply-To: <004301c8c7d5$eaa87850$16362c0a@persistent.co.in> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org which version of java ant ant (jars) are you using?? maybe that your ant jar version are not compatible with the import task :-) check out this link to see how to use import http://ant.apache.org/faq.html#xml-entity-include hope this help... supareno > Hi, > > > > I am calling ant from java code. The build.xml which I am calling from java > code has statement inside it. This current build.xml imports > another another build1.xml. > > When this file is called from java code, it throws exception build.xml is > invalid or cannot be read. But if the import statement is removed, the file > is accepted and no error is thrown. > > I have ant.jar and ant-launcher.jar in the classpath. > > > > Regards, > > -Sonal > > > DISCLAIMER > ========== > This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails. > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org