velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Burton <>
Subject Re: CPP like interface to Velocity
Date Mon, 16 Dec 2002 20:43:38 GMT

didge wrote:
> I implemented a preprocessor using velocity as an ant task.  It allows you
> to access properties defined on the command line as well as any ant
> properties you have set.  If you are interested, I will post the code.

Yes, that sounds useful.

Another idea is to implement an Ant FilterReader.  Then you can pre or 
post process the generated output and also have all the power of the 
<copy> task including mappers, etc.  See for more 


> didge
>>-----Original Message-----
>>From: Cort Schaefer []
>>Sent: Friday, December 13, 2002 4:14 PM
>>To: 'Velocity Users List'
>>Subject: RE: CPP like interface to Velocity
>>If you could use properties files instead of using the command like for
>>specifying your context objects, you might be able to use Texen out of the
>>-----Original Message-----
>>From: []
>>Sent: Friday, December 13, 2002 4:58 PM
>>Subject: CPP like interface to Velocity
>>I was thinking of creating a simple velocity based
>>application, which could be used like a preprocessor.
>>Sort of like this:
>>java Preprocessor -Dfoo -DBAR=baz file.txt >file.htm
>>Internally, it would take file.txt as a template,
>>do a context.put("foo",new Boolean(true)) and a
>>context.put("BAR","baz") and write the result
>>to standard out.
>>Does anyone know of such a thing already existing?
>>I'd love to reuse it.

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message