Skip to Content.
Sympa Menu

notify-dpml - r1965 - trunk/main/depot/tools/src/main/dpml/tools/transit

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: mcconnell at BerliOS <mcconnell AT mail.berlios.de>
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: r1965 - trunk/main/depot/tools/src/main/dpml/tools/transit
  • Date: Mon, 16 Apr 2007 17:14:30 +0200

Author: mcconnell
Date: 2007-04-16 17:14:29 +0200 (Mon, 16 Apr 2007)
New Revision: 1965

Modified:

trunk/main/depot/tools/src/main/dpml/tools/transit/TransitComponentHelper.java
Log:
add backward compatibility with 1.X

Modified:
trunk/main/depot/tools/src/main/dpml/tools/transit/TransitComponentHelper.java
===================================================================
---
trunk/main/depot/tools/src/main/dpml/tools/transit/TransitComponentHelper.java
2007-04-16 15:13:42 UTC (rev 1964)
+++
trunk/main/depot/tools/src/main/dpml/tools/transit/TransitComponentHelper.java
2007-04-16 15:14:29 UTC (rev 1965)
@@ -275,8 +275,19 @@
String path = resource.replace( '.', '/' ) + "/antlib.xml";
ClassLoader classloader = getClass().getClassLoader();
InputStream input = classloader.getResourceAsStream( path );
+
if( null == input )
{
+ if( name.startsWith( "antlib:net.dpml.transit:" ) )
+ {
+ // 1.X to 2.X migration issue, re-apply using
+ // "antlib:dpml.tools:"
+
+ String value = name.replace(
+ "antlib:net.dpml.transit:",
+ "antlib:dpml.tools:" );
+ return createComponent( value );
+ }
final String error =
"Task ["
+ name




  • r1965 - trunk/main/depot/tools/src/main/dpml/tools/transit, mcconnell at BerliOS, 04/16/2007

Archive powered by MHonArc 2.6.24.

Top of Page