geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sppa...@apache.org
Subject svn commit: r388699 - /geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-geronimodevtools-plugin/src/main/java/org/apache/geronimo/eclipse/devtools/PluginDescriptorMojo.java
Date Sat, 25 Mar 2006 04:15:20 GMT
Author: sppatel
Date: Fri Mar 24 20:15:16 2006
New Revision: 388699

URL: http://svn.apache.org/viewcvs?rev=388699&view=rev
Log:
fix template not found when invoking from root

Modified:
    geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-geronimodevtools-plugin/src/main/java/org/apache/geronimo/eclipse/devtools/PluginDescriptorMojo.java

Modified: geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-geronimodevtools-plugin/src/main/java/org/apache/geronimo/eclipse/devtools/PluginDescriptorMojo.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-geronimodevtools-plugin/src/main/java/org/apache/geronimo/eclipse/devtools/PluginDescriptorMojo.java?rev=388699&r1=388698&r2=388699&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-geronimodevtools-plugin/src/main/java/org/apache/geronimo/eclipse/devtools/PluginDescriptorMojo.java
(original)
+++ geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-geronimodevtools-plugin/src/main/java/org/apache/geronimo/eclipse/devtools/PluginDescriptorMojo.java
Fri Mar 24 20:15:16 2006
@@ -24,6 +24,7 @@
 import org.apache.maven.plugin.AbstractMojo;
 import org.apache.maven.plugin.MojoExecutionException;
 import org.apache.maven.plugin.MojoFailureException;
+import org.apache.maven.project.MavenProject;
 import org.apache.velocity.Template;
 import org.apache.velocity.VelocityContext;
 import org.apache.velocity.app.Velocity;
@@ -56,6 +57,12 @@
 	 * @required
 	 */
 	private Map contextMap;
+	
+	/**
+	 * @parameter expression="${project}"
+	 * @required
+	 */
+	private MavenProject project;
 
 	/*
 	 * (non-Javadoc)
@@ -65,6 +72,7 @@
 	public void execute() throws MojoExecutionException, MojoFailureException {
 		try {
 
+			Velocity.setProperty("file.resource.loader.path", project.getBasedir().getAbsolutePath());
 			Velocity.init();
 
 			VelocityContext context = new VelocityContext();



Mime
View raw message