Skip to Content.
Sympa Menu

notify-dpml - r1573 - trunk/main/depot/library/src/main/net/dpml/library/info

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: r1573 - trunk/main/depot/library/src/main/net/dpml/library/info
  • Date: Sun, 16 Jul 2006 20:27:26 +0200

Author: mcconnell
Date: 2006-07-16 20:27:23 +0200 (Sun, 16 Jul 2006)
New Revision: 1573

Modified:
trunk/main/depot/library/src/main/net/dpml/library/info/LibraryDecoder.java
Log:
improve error handling

Modified:
trunk/main/depot/library/src/main/net/dpml/library/info/LibraryDecoder.java
===================================================================
---
trunk/main/depot/library/src/main/net/dpml/library/info/LibraryDecoder.java
2006-07-16 16:32:34 UTC (rev 1572)
+++
trunk/main/depot/library/src/main/net/dpml/library/info/LibraryDecoder.java
2006-07-16 18:27:23 UTC (rev 1573)
@@ -268,12 +268,12 @@
final String path = ElementHelper.getAttribute( element, "file" );
if( null != path )
{
+ File file = new File( base, path );
+ File dir = file.getParentFile();
+ String spec = getRelativePath( base, dir );
+ File source = file.getCanonicalFile();
try
{
- File file = new File( base, path );
- File dir = file.getParentFile();
- String spec = getRelativePath( base, dir );
- File source = file.getCanonicalFile();
if( !source.exists() )
{
final String error =
@@ -296,7 +296,9 @@
catch( Throwable e )
{
final String error =
- "Internal error while attempting to resolve a import
directive.";
+ "Internal error while attempting to resolve a import
directive."
+ + "\n Path: " + path
+ + "\n File: " + source;
throw new DecodingException( element, error, e );
}
}




  • r1573 - trunk/main/depot/library/src/main/net/dpml/library/info, mcconnell at BerliOS, 07/16/2006

Archive powered by MHonArc 2.6.24.

Top of Page