Skip to Content.
Sympa Menu

notify-dpml - r1681 - trunk/main/depot/library/src/main/net/dpml/library/impl

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: r1681 - trunk/main/depot/library/src/main/net/dpml/library/impl
  • Date: Wed, 26 Jul 2006 16:18:30 +0200

Author: mcconnell
Date: 2006-07-26 16:18:30 +0200 (Wed, 26 Jul 2006)
New Revision: 1681

Modified:

trunk/main/depot/library/src/main/net/dpml/library/impl/DefaultResource.java
Log:
add support for symbol expansion in base directory resolution

Modified:
trunk/main/depot/library/src/main/net/dpml/library/impl/DefaultResource.java
===================================================================
---
trunk/main/depot/library/src/main/net/dpml/library/impl/DefaultResource.java
2006-07-26 14:08:23 UTC (rev 1680)
+++
trunk/main/depot/library/src/main/net/dpml/library/impl/DefaultResource.java
2006-07-26 14:18:30 UTC (rev 1681)
@@ -158,14 +158,15 @@
String filename = m_directive.getBasedir();
if( null != filename )
{
- File file = new File( filename );
+ String spec = resolve( filename );
+ File file = new File( spec );
if( file.isAbsolute() )
{
m_basedir = getCanonicalFile( file );
}
else
{
- File basedir = new File( anchor, filename );
+ File basedir = new File( anchor, spec );
m_basedir = getCanonicalFile( basedir );
setProperty( "basedir", m_basedir.toString() );
}




  • r1681 - trunk/main/depot/library/src/main/net/dpml/library/impl, mcconnell at BerliOS, 07/26/2006

Archive powered by MHonArc 2.6.24.

Top of Page