Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 72633 invoked from network); 17 Mar 2008 11:15:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Mar 2008 11:15:56 -0000 Received: (qmail 76522 invoked by uid 500); 17 Mar 2008 11:15:51 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 76492 invoked by uid 500); 17 Mar 2008 11:15:51 -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 76481 invoked by uid 99); 17 Mar 2008 11:15:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Mar 2008 04:15:51 -0700 X-ASF-Spam-Status: No, hits=3.8 required=10.0 tests=HTML_MESSAGE,HTML_NONELEMENT_30_40,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [206.190.48.225] (HELO web52702.mail.re2.yahoo.com) (206.190.48.225) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 17 Mar 2008 11:14:59 +0000 Received: (qmail 45311 invoked by uid 60001); 17 Mar 2008 11:15:19 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=bBn6XMa10Un8Po20ZL0lmFJ4gCCTHQ6bygzEtnr03pKkHHv+7H7AY+74FXRLvx6oTrj/8RJ79XiJDO6cUC7NLUCW9n4UovEM35sppfKbuyl92KWScO2COV4GrUijsGcOFe5xREw1hD3BcXNH8figcUVxE22hRKy2SZRJF+bwFPU=; X-YMail-OSG: R9NJf94VM1mxny7UdSp0SFBP4BvMAnKEguUOKux47Mu9RfFXipI_CZ9kd8Z5a.xWpUWSJ5uGupDR6QFdJKnTao2pBEKGscqYiMO5aDuc.I5TMjxBB3N5ZcjnkEJcr7qXcCW4LqbVdEZzfrs- Received: from [83.103.41.210] by web52702.mail.re2.yahoo.com via HTTP; Mon, 17 Mar 2008 04:15:18 PDT Date: Mon, 17 Mar 2008 04:15:18 -0700 (PDT) From: Ma'moun Abu Hellu Subject: Re: what this mean : xml document structures must start and end within the same entity To: Ant Users List , olivier.gies@bull.net In-Reply-To: <47DE4E3A.9090102@bull.net> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-2005425075-1205752518=:42104" Content-Transfer-Encoding: 8bit Message-ID: <662.42104.qm@web52702.mail.re2.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org --0-2005425075-1205752518=:42104 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit it work , the problem actually is in the class path which i used , since I'm saving my .java in a package so i put the correct path and it work ( ... ="${classes\HelloWorld.dir}"/> ) thank of been patient Olivier Gies wrote: I'm not sure which example you are talking about, or if you know any Java at all, but here's anyway: the HelloWorld class source should be under ./src/HelloWorld.java ... -------- Original Message -------- Subject: Re: what this mean : xml document structures must start and end within the same entity From: Ma'moun Abu Hellu To: Ant Users List , olivier.gies@bull.net Date: 17/03/2008 18:53 > thanks, > I've done what you said and i got the following > ... > use: > BUILD FAILD > D:\ant\bin\task\build.xml :18: taskdef class HelloWorld cannot be found > > Olivier Gies wrote: > You have to remove the second line containing " > " ... > > I copy-pasted the Java code and Ant script from your post, and here is > what I get, without any change: > > E:\Java\Ant\issue#0001>ant > Buildfile: build.xml > > BUILD FAILED > E:\Java\Ant\issue#0001\build.xml:27: XML document structures must start > and end within the same entity. > > Total time: 0 seconds > > > Then, after I removed the line " > default="jar">": > > E:\Java\Ant\issue#0001>ant > Buildfile: build.xml > > compile: > [javac] Compiling 1 source file to E:\Java\Ant\issue#0001\classes > > jar: > [jar] Building jar: E:\Java\Ant\issue#0001\MyTask.jar > > use: > [helloworld] Hello World > > BUILD SUCCESSFUL > Total time: 12 seconds > E:\Java\Ant\issue#0001> > > -------- Original Message -------- > Subject: Re: what this mean : xml document structures must start and end > within the same entity > From: Ma'moun Abu Hellu > To: Ant Users List , olivier.gies@bull.net > Date: 17/03/2008 18:24 > >> ya thats right but how then i can compile it , >> here is the error >> >> D:\ant\bin\task>ant >> >> >> BUILD FAILD >> D:\ant\bin\task\build.xml :22: xml document structures must start and end within the same entity >> >> Olivier Gies wrote: >> You should have only 1 >> ... >> >> Can you send the error messsage / trace ? >> >> -------- Original Message -------- >> Subject: Re: what this mean : xml document structures must start and end >> within the same entity >> From: Ma'moun Abu Hellu >> To: Ant Users List >> Date: 17/03/2008 17:45 >> >> >>> hi, >>> actually I'm using Apache-ant 1.7.0 under Windows vista and i simply want to run the tutorial example Writing Tasks which is >>> ................. >>> >>> public class HelloWorld { >>> public void execute() { >>> System.out.println("Hello World"); >>> } >>> } >>> ----------- >>> >>> >>> >>> >>> >> >> >> >> >> >> >> >> >> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >> >>> ................. >>> >>> and i got the error : xml document structures must start and end within the same entity >>> >>> i tried to change the tages but i cant solve it , so did the above build.xml correct >>> i can see their is two < project .....> but when i delete the second one i cant compile it >>> >>> thanks in advance >>> David Brown wrote: >>> Hello, running Ant means ant parses and executes a so-called build.xml. XML documents in general must be what is termed as: well-formed. This means that all XML documents have a singleton parent entity element. This means that if a generic XML document had a parent entity element structured as: >>> >>> >>> >>> then to keep faith with the well-formed document rule the corresponding end element would have to come at the end of the target XML document: >>> >>> >>> >>> The following links are much more authoritative and comprehensive than the above squibble: >>> >>> http://www.spoono.com/xml/tutorials/tutorial.php?id=2 >>> >>> http://www.w3.org/XML/ >>> >>> http://ant.apache.org/manual/index.html >>> >>> Ultimately, you have something amiss with your build.xml that Ant is trying to parse. To get help from one of the Ant gurus you will have to create a much more meaningful message with more information: >>> >>> OS: Debian or Windows or something >>> Ant version: 1.5.x or 1.7 or something >>> Ant environment such as: ant -debug output captured from the console. >>> Default Ant target being execute from build.xml. >>> >>> >>> HTH. >>> >>> Ma'moun Abu Hellu wrote .. >>> >>> >>> >>>> Hi all , >>>> I'm still fresh with Ant i tried to run the example in the Writing Tasks Tutorials >>>> but when i try to USE it i get >>>> >>>> xml document structures must start and end within the same entity >>>> >>>> please could any one help me. >>>> >>>> Regards >>>> >>>> >>>> Eng.Ma'moun Abu Helou . >>>> Computer Engineer . >>>> >>>> Jerusalem,Palestine.(+972-02-2353912). >>>> Milano,Italy (+39 02 21085 613 2) >>>> (+39 3394070256 ) >>>> >>>> >>>> --------------------------------- >>>> Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. >>>> >>>> >>>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >>> For additional commands, e-mail: user-help@ant.apache.org >>> >>> >>> >>> >>> >>> >>> --------------------------------- >>> Looking for last minute shopping deals? Find them fast with Yahoo! Search. >>> >>> >> > > -- *Olivier Gies* *Delivery Manager Customs & Tax Software Engineering Center Bull, Architect of an Open World ^TM Phone: +86 (10) 65978001 - Ext 555 * *www.bull.com * *This e-mail contains material that is confidential for the sole use of the intended recipient. Any review, reliance or distribution by others or forwarding without express permission is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.* --------------------------------- Never miss a thing. Make Yahoo your homepage. --0-2005425075-1205752518=:42104--