You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by sp...@apache.org on 2006/04/01 02:00:54 UTC
svn commit: r390544 -
/geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-emf-plugin/src/main/java/org/apache/emf/plugin/GeneratorMojo.java
Author: sppatel
Date: Fri Mar 31 16:00:51 2006
New Revision: 390544
URL: http://svn.apache.org/viewcvs?rev=390544&view=rev
Log:
workaround hack to prevent eclipse compiler from kicking in
Modified:
geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-emf-plugin/src/main/java/org/apache/emf/plugin/GeneratorMojo.java
Modified: geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-emf-plugin/src/main/java/org/apache/emf/plugin/GeneratorMojo.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-emf-plugin/src/main/java/org/apache/emf/plugin/GeneratorMojo.java?rev=390544&r1=390543&r2=390544&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-emf-plugin/src/main/java/org/apache/emf/plugin/GeneratorMojo.java (original)
+++ geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-emf-plugin/src/main/java/org/apache/emf/plugin/GeneratorMojo.java Fri Mar 31 16:00:51 2006
@@ -17,6 +17,7 @@
import java.io.File;
+import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
/**
@@ -42,6 +43,17 @@
* @required
*/
private String type;
+
+ /* (non-Javadoc)
+ * @see org.apache.emf.plugin.LaunchOSGIMojo#execute()
+ */
+ public void execute() throws MojoExecutionException, MojoFailureException {
+ super.execute();
+
+ //workaround to prevent eclipse-compiler interference with maven
+ File file = new File(mavenProject.getBasedir() + File.separator + ".classpath");
+ file.delete();
+ }
/*
* (non-Javadoc)
@@ -83,5 +95,4 @@
throw new MojoFailureException("<type> must be set to either 'model', 'edit', or 'editor'");
}
}
-
}