geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sppa...@apache.org
Subject svn commit: r390544 - /geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-emf-plugin/src/main/java/org/apache/emf/plugin/GeneratorMojo.java
Date Sat, 01 Apr 2006 00:00:54 GMT
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'");
 		}
 	}
-
 }



Mime
View raw message