ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "vikramjit singh" <vikramjit.si...@mphasis.com>
Subject Doubt in using ENTITY
Date Tue, 29 Oct 2002 05:41:25 GMT
Hi,

I am making a properties.xml file, which holds all the properties and the
corresponding path.
I am including the properties.xml file in build.xml like this below

<!-- Define the target includes for all package types -->
<!DOCTYPE project [
    <!ENTITY properties SYSTEM "file:./properties.xml">
]>

<project name="CustomerProfile" default="dist" basedir=".">

  &properties;

...
</project>

In my properties file, if i make the xml well formed i.e. enclose the
properties and path tags in a parent tag, then i get the following error.
The properties.xml file structure snippet is as below..

<?xml version="1.0"?>

<properties>
    <property environment="env"/>
    <property name="src" value="src"/>
...
</properties>


BUILD FAILED
file:./properties.xml:1: more pseudo attributes is expected.

But if i remove, <?xml version="1.0"?> and the <properties> tag and dont
enclose a parent tag, then all runs fine.

Is this as it is to be done, or am i missing something.

Regards,
Vikram.


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


Mime
View raw message