ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Horvath Adam <arunas...@gmail.com>
Subject include-require
Date Mon, 13 Jul 2009 11:41:52 GMT
Hi!

How can I create build xml from more file?
Like 'require' or 'include' in php.

E.g. common.xml:

<tstamp>
<format property="stamp" pattern="yyyy-MM-dd---hh-mm-ss"/>
</tstamp>
<property name="logFname" value="${stamp}.txt"/>

And I like to include this in more other build.xml, e.g.:

<?xml version="1.0" encoding="UTF-8"?>
<project>
<include_here file="common.xml"/>
...
</project>

The result should be:

<?xml version="1.0" encoding="UTF-8"?>
<project>
<tstamp>
<format property="stamp" pattern="yyyy-MM-dd---hh-mm-ss"/>
</tstamp>
<property name="logFname" value="${stamp}.txt"/>
...
</project>

Thanks, Adam

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


Mime
View raw message