For Torque, to generate the classes from the VM I have felt the need to feed
the context with a few pull tools to help with complex manipulation in the
vm.
This is somewhat an extension of the context properties (these are not
static) so I'm cross posting so that both worlds know it, I don't think this
can be seen as Torque specific but rather Texen related. Barely this a
couple of tools like StringUtils, FileUtils and Calendar would fit most
needs but some could need more (just like the tools in Turbine for example)
However question remains how to specify it.
Obviouslly it would be nice to set it up from the existing context
properties files but classpath comes into play as well. Did anyone thought
about something like that ?
If we take a Ant only configuration approach that would be something like:
<texentask ...>
<tools>
<classpath refid="myclasspath"/>
<tool name="Strings" classname="org.apache.lang.Strings"/>
<tool name="Files" classname="org.apache.lang.Files"/>
<tool name="Calendar
classname="java.util.GregorianCalendar"/>
</tools>
</texentask>
And maybe add a helper to describe the tools from a properties file. but
tool.Strings=org.apache.lang.Strings
tool.Files=...
Otherwise we can assume that 'tool.<name>=<classname>' to be a reserved
keyword for adding tools to the context and just add a classpath element to
Texen to optionally load tools from this loader if specified.
Thoughts ?
Stephane
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>