Author: bentmann
Date: Wed Aug 5 19:55:57 2009
New Revision: 801392
URL: http://svn.apache.org/viewvc?rev=801392&view=rev
Log:
o Added workaround for bug in plexus-velocity
Modified:
maven/core-integration-testing/trunk/core-it-support/core-it-plugins/maven-it-plugin-plexus-component-api/src/main/java/org/apache/maven/its/plugins/VelocityMojo.java
Modified:
maven/core-integration-testing/trunk/core-it-support/core-it-plugins/maven-it-plugin-plexus-component-api/src/main/java/org/apache/maven/its/plugins/VelocityMojo.java
URL:
http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-support/core-it-plugins/maven-it-plugin-plexus-component-api/src/main/java/org/apache/maven/its/plugins/VelocityMojo.java?rev=801392&r1=801391&r2=801392&view=diff
==============================================================================
---
maven/core-integration-testing/trunk/core-it-support/core-it-plugins/maven-it-plugin-plexus-component-api/src/main/java/org/apache/maven/its/plugins/VelocityMojo.java
(original)
+++
maven/core-integration-testing/trunk/core-it-support/core-it-plugins/maven-it-plugin-plexus-component-api/src/main/java/org/apache/maven/its/plugins/VelocityMojo.java
Wed Aug 5 19:55:57 2009
@@ -46,7 +46,11 @@
{
// velocityComponent engine should not be null
// this is the real test to check that we got the right
Initializable interface in both Plexus and the component
- velocityComponent.getEngine().getTemplate( "/template.vm" );
+ /*
+ * NOTE: There's a bug in the plexus-velocity:1.1.7 component that
fails to transform "/template.vm" into
+ * a proper resource name before searching the context class
loader so we avoid the leading slash here.
+ */
+ velocityComponent.getEngine().getTemplate( "template.vm" );
}
catch ( Exception e )
{