You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by Stephane Bailliez <sb...@imediation.com> on 2001/10/17 18:46:53 UTC

[PATCH] PropertiesUtil / TemplatePath

here's the patch.

Massive diffs but I splitted the big method into 2 chunks and added some
javadocs, it does not kill.

The change consist of a StringTokenizer loop over the templatePath this way
we can have multiple paths to load properties the same way we load .vm

Of course it removes the compatibility with the
$properties.load("$generator.TemplatePath/sql/security/db.props") syntax
since it does no make sense...

-- 
 Stephane Bailliez 
 Software Engineer, Paris - France 
 iMediation - http://www.imediation.com 
 Disclaimer: All the opinions expressed above are mine and not those from my
company. 


Re: [PATCH] PropertiesUtil / TemplatePath

Posted by "Geir Magnusson Jr." <ge...@optonline.net>.
On 10/17/01 12:46 PM, "Stephane Bailliez" <sb...@imediation.com> wrote:

> here's the patch.
> 
> Massive diffs but I splitted the big method into 2 chunks and added some
> javadocs, it does not kill.
> 
> The change consist of a StringTokenizer loop over the templatePath this way
> we can have multiple paths to load properties the same way we load .vm
> 
> Of course it removes the compatibility with the
> $properties.load("$generator.TemplatePath/sql/security/db.props") syntax
> since it does no make sense...

That's a rather challenging diff to figure out.  :)

Can you try again?

If you are using CVS

cvs diff -u PropertiesUtil.java

Should work fine.

Otherwise, just send me the whole file so I can get this in.

geir

-- 
Geir Magnusson Jr.                       geirm@optonline.net
System and Software Consulting
You're going to end up getting pissed at your software
anyway, so you might as well not pay for it. Try Open Source.