ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: AW: AW: DOCTYPE XML include
Date Thu, 06 Mar 2003 07:39:27 GMT
The included file has to be wellformed. Only the rule that it has to have
exactly one root element isn´t right.
You have to be sure that if you would copy the file into that place, the XML
is valid.

Here short snippets as example:

build.xml
-----------------------------------------------------
<!DOCTYPE project [
    <!ENTITY incl1 SYSTEM "file:build1.inc">
    <!ENTITY incl2 SYSTEM "file:build2.inc">
]>

<project default="main">

    &incl1;
    &incl2;

    <target name="main">
        <echo>
           $${a} = ${a}
           $${b} = ${b}
        </echo>
    </target>
    
</project>
-----------------------------------------------------


build1.inc
-----------------------------------------------------
<property name="a" value="Hello"/>
-----------------------------------------------------


build1.inc
-----------------------------------------------------
<property name="b" value="World"/>
-----------------------------------------------------


Jan Matèrne

-----Ursprüngliche Nachricht-----
Von: Pritesh saharey [mailto:pritesh@sqatester.com]
Gesendet am: Donnerstag, 6. März 2003 06:28
An: Ant Users List
Betreff: Re: AW: AW: DOCTYPE XML include


but after using this kind of code 

<!DOCTYPE project [<!ENTITY java-include SYSTEM "file:java.xml">]>


<project name="PICASSO" default="deploy" basedir=".">
&java-include;

i get this error
file:java.xml:1: more pseudo attributes is expected.
        at
org.apache.tools.ant.helper.ProjectHelperImpl.parse(ProjectHelperImpl.java:1
70)
        at
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:117)
        at org.apache.tools.ant.Main.runBuild(Main.java:597)
        at org.apache.tools.ant.Main.start(Main.java:196)
        at org.apache.tools.ant.Main.main(Main.java:235)

what can be reason???
--- message from Jan.Materne@rzf.fin-nrw.de attached:

_____________________________________________________________
Join SQAtester.com Community  --->
http://www.sqatester.com/testersarea/joinus.htm

_____________________________________________________________
Select your own custom email address for FREE! Get you@yourchoice.com w/No
Ads, 6MB, POP & more! http://www.everyone.net/selectmail?campaign=tag

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message