on 2002/12/20 6:05 PM, "didge" <[EMAIL PROTECTED]> wrote:
> After reading up regarding licensing a bit more, I'm going to consider
> switching to an ASF or BSD license.
Good idea.
> Shouldn't matter much right now because
> I don't think anyone is planning to redistribute this :)
You never know...I could actually use something like this for Scarab's
build. Right now, I'm just using the <replace> tag for some minor
precompiling that I need to do...but this would be much more fun.
This is a great way to entirely get rid of logging statements from the
source code at compile time...
#if ($logging)
log.debug("Foo");
#end
> I'm not sure what else you would want or even could put in the context.
Exactly! The key is to be able to make it dynamic. Allow people to specify
objects which they can put into the context via the build.xml. It will then
instantiate the object with Class.forName() and make it available in the
context.
Something like:
<vppjavac>
<context key="foo" object="org.mypath.Foo" />
</vppjavac>
The scary idea here is that foo could make database connections or get data
via XML-RPC/SOAP/however you want. Imagine your precompiler querying a
database to find out compile time information! Twisted indeed.
=)
-jon
--
StudioZ.tv /\ Bar/Nightclub/Entertainment
314 11th Street @ Folsom /\ San Francisco
http://studioz.tv/
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>