You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by ni...@apache.org on 2004/05/27 16:27:28 UTC
svn commit: rev 20505 - avalon/trunk/tools/magic/xdoc/src/dist
Author: niclas
Date: Thu May 27 07:27:27 2004
New Revision: 20505
Modified:
avalon/trunk/tools/magic/xdoc/src/dist/build.bsh
avalon/trunk/tools/magic/xdoc/src/dist/build.properties
Log:
Slightly better error handling.
Modified: avalon/trunk/tools/magic/xdoc/src/dist/build.bsh
==============================================================================
--- avalon/trunk/tools/magic/xdoc/src/dist/build.bsh (original)
+++ avalon/trunk/tools/magic/xdoc/src/dist/build.bsh Thu May 27 07:27:27 2004
@@ -174,7 +174,7 @@
transform( transformer, srcDir, toDir, filter, extension );
} catch( TransformerException e )
{
- throw new BuildException( "Invalid XML/XSL configuration of your system.", e );
+ throw new BuildException( e.getMessage(), e );
}
}
@@ -216,6 +216,8 @@
} catch( Exception e )
{
getLogger().error( getRelPath( newDest ) + " : " + e.getMessage() );
+ if( "true".equals( m_Context.getProperty( "xdoc.print.stack.trace" ) ) )
+ e.printStackTrace();
if( "true".equals( m_Context.getProperty( "xdoc.fail.on.error" ) ) )
throw new BuildException( "Unable to transform document. Message above should give more details." );
}
Modified: avalon/trunk/tools/magic/xdoc/src/dist/build.properties
==============================================================================
--- avalon/trunk/tools/magic/xdoc/src/dist/build.properties (original)
+++ avalon/trunk/tools/magic/xdoc/src/dist/build.properties Thu May 27 07:27:27 2004
@@ -11,4 +11,7 @@
xdoc.output.format=html
-xdoc.fail.on.error = true
\ No newline at end of file
+xdoc.fail.on.error = true
+
+xdoc.print.stack.trace = true
+
---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org