ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <peterrei...@apache.org>
Subject Re: AW: Validating buildfile
Date Tue, 14 Dec 2004 10:46:01 GMT
plus the XML editors you used do not understand XML entities.
Peter

Jan.Materne@rzf.fin-nrw.de wrote:

>Ant itself doesnt validate a buildfile. Especially it´s hard if not
>impossible to do that. Think about: <taskdef> and the use of new declared
>tasks ..., AntLibs and Namespaces, the <*def> family, ...
>
>If you work prior to Ant 1.6 I suggest updating :)
>
>If you work with Ant 1.6(.2) I suggest changing from xml entity include to
><import> task and removing the whole doctype declaration.
>
>
>Jan
>
>  
>
>>-----Ursprüngliche Nachricht-----
>>Von: FischRon.external@infineon.com
>>[mailto:FischRon.external@infineon.com]
>>Gesendet am: Dienstag, 14. Dezember 2004 11:24
>>An: user@ant.apache.org
>>Betreff: Validating buildfile
>>
>>This is how my buildfile (build.xml) starts:
>>
>>=====================================================================
>><?xml version="1.0"?>
>><!DOCTYPE project PUBLIC "-//ANT//DTD project//EN"
>>"../shared/project.dtd" [
>>  <!ENTITY common-build SYSTEM "../shared/common-build.xml">
>>]>
>>
>><project name="i3" default="deploy" basedir=".">
>>
>>    <property name="view.dir" value="${basedir}/.."/>
>>    <property name="shared.dir" value="${view.dir}/shared"/>
>>
>>    &common-build;
>>
>>    <property name="src.dir" value="${basedir}/dev/src"/>
>>.....
>>======================================================================
>>
>>This worked with ant perfectly fine so far. Recently I 
>>decided to switch
>>from a
>>plain text editor to an XML editor for maintaining the build files, so
>>I tried out of curiosity to validate the file. Strangely, I get a
>>validation error:
>>
>>  "Element content is invalid according to the DTD/Schema. Expecting
>>   target, property. Line 11: &common-build;"
>>
>>I tried this with two different XML editors, but got the same result
>>every time.
>>
>>What is going wrong here? Why do I get the error message, although ant
>>is
>>perfectly able to run the build file?
>>
>>Ronald
>>
>>
>>-- 
>>Ronald Fischer 
>>Infineon Technologies AG
>> IT BT CFS IKM
>>Tel: +49 89 234 81643
>>Fax +49 89 234 27850
>>fischron.external@infineon.com 
>>***** VISIT US AT: <http://www.infineon.com> ***** 
>> 
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>>For additional commands, e-mail: user-help@ant.apache.org
>>
>>    
>>
>
>  
>


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


Mime
View raw message