On Jun 7, 2004, at 8:39 AM, [EMAIL PROTECTED] wrote:
Do you know if it is possible to pass parameters from ant build.xml
file to a
xdt file ?
Yes. You can nest <configParam> elements like this:
<xdoclet destdir="${build.dir}/anttask/classes">
<fileset dir="src/anttask">
<include name="**/*.java" />
</fileset>
<template templatefile="metadata/anttask/taskdef.xdt"
destinationfile="taskdef.properties">
<configParam name="date" value="${DSTAMP} @ ${TSTAMP}"/>
</template>
</xdoclet>
And access them in the XDT this way:
<XDtConfig:configParameterValue paramName="date"/>
(from http://www.ehatchersolutions.com/JavaDevWithAnt)
Erik
-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user