Oh, but in Engine 1.7 it is still used for EscapeReference and
subclasses.  Though if you don't use those, you don't need ORO.

On Tue, Jul 19, 2011 at 4:57 PM, Nathan Bubna <nbu...@gmail.com> wrote:
> Yeah, ORO is gone in 2.0, at least it ought to be.
>
> On Tue, Jul 19, 2011 at 1:16 PM, Christopher Schultz
> <ch...@christopherschultz.net> wrote:
>> All,
>>
>> I'm (finally) upgrading from 1.4 to 1.7 and I'm looking at the upgrade
>> guide (short and sweet: I like it). It basically just says "make sure
>> your deps are up-to-date".
>>
>> I have a file in my lib directory which actually shows the relationships
>> between different components so that I make sure I don't upgrade one dep
>> for one package and then disable another one accidentally.
>>
>> Under the "velocity-1.4.jar" entry, it says it depends on
>> jakarta-oro.2.0.8.jar. I can't find anything in the upgrade guide about
>> ORO. I searched the code, and there is only one Java class that mention ORO:
>>
>> velocity-engine-core/src/main/java/org/apache/velocity/app/event/implement/EscapeReference.java
>>
>> It mentioned it in the class Javadocs:
>>
>> ...
>>  * Regular expressions should follow the "Perl5" format used by the ORO
>> regular expression
>>  * library.  More info is at
>>  * <a
>> href="http://jakarta.apache.org/oro/api/org/apache/oro/text/perl/package-summary.html";>http://jakarta.apache.org/oro/api/org/apache/oro/text/perl/package-summary.html</a>.
>> ...
>>
>> A quick read of the code suggests that this code has been upgraded to
>> use java.util.regex and that ORO is no longer used. Is that the case? If
>> so, those Javadocs ought to be updated. It might also be worth
>> mentioning on the upgrade page that Velocity no longer requires Jakarta ORO.
>>
>> I also checked tools trunk and it looks like there is no dependency on
>> Jakarta ORO, though no mention of it occurs. My notes say
>> "velocity-tools-1.4.jar : jakarta-oro-2.0.8.jar (probably for
>> velocity-1.4)" so I suspect I just had an additional note in there.
>>
>> Sounds like I can finally purge ORO from my libraries, eh?
>>
>> Thanks,
>> -chris
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org
For additional commands, e-mail: user-h...@velocity.apache.org

Reply via email to