Author: brett
Date: Mon Sep 26 23:32:38 2011
New Revision: 1176130
URL: http://svn.apache.org/viewvc?rev=1176130&view=rev
Log:
add some additional exception logging
Modified:
incubator/npanday/trunk/components/dotnet-dao-project/src/main/java/npanday/dao/impl/ProjectDaoImpl.java
incubator/npanday/trunk/plugins/maven-compile-plugin/src/main/java/npanday/plugin/compile/ComponentInitializerMojo.java
Modified:
incubator/npanday/trunk/components/dotnet-dao-project/src/main/java/npanday/dao/impl/ProjectDaoImpl.java
URL:
http://svn.apache.org/viewvc/incubator/npanday/trunk/components/dotnet-dao-project/src/main/java/npanday/dao/impl/ProjectDaoImpl.java?rev=1176130&r1=1176129&r2=1176130&view=diff
==============================================================================
---
incubator/npanday/trunk/components/dotnet-dao-project/src/main/java/npanday/dao/impl/ProjectDaoImpl.java
(original)
+++
incubator/npanday/trunk/components/dotnet-dao-project/src/main/java/npanday/dao/impl/ProjectDaoImpl.java
Mon Sep 26 23:32:38 2011
@@ -1053,7 +1053,7 @@ public final class ProjectDaoImpl
}
catch ( Exception e )
{
- throw new IOException( e.getMessage() );
+ throw new IOException( e.getMessage(), e );
}
String interopAbsolutePath = tmpDir.getAbsolutePath() + File.separator
+ "Interop." + name + ".dll";
@@ -1065,7 +1065,7 @@ public final class ProjectDaoImpl
}
catch ( Exception e )
{
- throw new IOException( e.getMessage() );
+ throw new IOException( e.getMessage(), e );
}
return interopAbsolutePath;
Modified:
incubator/npanday/trunk/plugins/maven-compile-plugin/src/main/java/npanday/plugin/compile/ComponentInitializerMojo.java
URL:
http://svn.apache.org/viewvc/incubator/npanday/trunk/plugins/maven-compile-plugin/src/main/java/npanday/plugin/compile/ComponentInitializerMojo.java?rev=1176130&r1=1176129&r2=1176130&view=diff
==============================================================================
---
incubator/npanday/trunk/plugins/maven-compile-plugin/src/main/java/npanday/plugin/compile/ComponentInitializerMojo.java
(original)
+++
incubator/npanday/trunk/plugins/maven-compile-plugin/src/main/java/npanday/plugin/compile/ComponentInitializerMojo.java
Mon Sep 26 23:32:38 2011
@@ -89,11 +89,11 @@ public class ComponentInitializerMojo
}
catch ( java.io.IOException e )
{
- throw new MojoExecutionException( e.getMessage() );
+ throw new MojoExecutionException( e.getMessage(), e );
}
catch( NPandayArtifactResolutionException e )
{
- throw new MojoExecutionException( e.getMessage() );
+ throw new MojoExecutionException( e.getMessage(), e );
}
try
@@ -102,7 +102,7 @@ public class ComponentInitializerMojo
}
catch ( InitializationException e )
{
- throw new MojoExecutionException( "NPANDAY-901-002: Failed to
initialize the assembler context" );
+ throw new MojoExecutionException( "NPANDAY-901-002: Failed to
initialize the assembler context", e );
}
long endTime = System.currentTimeMillis();