Author: jvanzyl
Date: Sat May 14 05:18:59 2005
New Revision: 170135
URL: http://svn.apache.org/viewcvs?rev=170135&view=rev
Log:
o provide a message when there is no POM, which the eclipse plugin requires
to work correctly.
Modified:
maven/components/trunk/maven-plugins/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipsePlugin.java
maven/components/trunk/maven-plugins/maven-eclipse-plugin/src/test/projects/project-1/.classpath
maven/components/trunk/maven-plugins/maven-eclipse-plugin/src/test/projects/project-2/.classpath
Modified:
maven/components/trunk/maven-plugins/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipsePlugin.java
URL:
http://svn.apache.org/viewcvs/maven/components/trunk/maven-plugins/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipsePlugin.java?rev=170135&r1=170134&r2=170135&view=diff
==============================================================================
---
maven/components/trunk/maven-plugins/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipsePlugin.java
(original)
+++
maven/components/trunk/maven-plugins/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipsePlugin.java
Sat May 14 05:18:59 2005
@@ -60,6 +60,11 @@
public void execute()
throws MojoExecutionException
{
+ if ( project.getFile() == null || !project.getFile().exists() )
+ {
+ throw new MojoExecutionException( "There must be a POM in the
current working directory for the Eclipse plugin to work." );
+ }
+
try
{
eclipseWriter.write( project );
Modified:
maven/components/trunk/maven-plugins/maven-eclipse-plugin/src/test/projects/project-1/.classpath
URL:
http://svn.apache.org/viewcvs/maven/components/trunk/maven-plugins/maven-eclipse-plugin/src/test/projects/project-1/.classpath?rev=170135&r1=170134&r2=170135&view=diff
==============================================================================
---
maven/components/trunk/maven-plugins/maven-eclipse-plugin/src/test/projects/project-1/.classpath
(original)
+++
maven/components/trunk/maven-plugins/maven-eclipse-plugin/src/test/projects/project-1/.classpath
Sat May 14 05:18:59 2005
@@ -2,5 +2,5 @@
<classpathentry kind="src" path="src/main/java"/>
<classpathentry kind="output" path="target/classes"/>
<classpathentry kind="var" rootpath="JRE_SRCROOT" path="JRE_LIB"
sourcepath="JRE_SRC"/>
- <classpathentry kind="lib"
path="c:/home/Brett/cvs/maven-2/maven-components/maven-plugins/maven-eclipse-plugin/src/test/repository/maven/jars/maven-core-2.0-SNAPSHOT.jar"/>
+ <classpathentry kind="lib"
path="/home/jvanzyl/js/org.apache.maven/components/trunk/maven-plugins/maven-eclipse-plugin/src/test/repository/maven/jars/maven-core-2.0-SNAPSHOT.jar"/>
</classpath>
Modified:
maven/components/trunk/maven-plugins/maven-eclipse-plugin/src/test/projects/project-2/.classpath
URL:
http://svn.apache.org/viewcvs/maven/components/trunk/maven-plugins/maven-eclipse-plugin/src/test/projects/project-2/.classpath?rev=170135&r1=170134&r2=170135&view=diff
==============================================================================
---
maven/components/trunk/maven-plugins/maven-eclipse-plugin/src/test/projects/project-2/.classpath
(original)
+++
maven/components/trunk/maven-plugins/maven-eclipse-plugin/src/test/projects/project-2/.classpath
Sat May 14 05:18:59 2005
@@ -5,5 +5,5 @@
<classpathentry kind="src" path="src/test/resources"
output="target/test-classes"/>
<classpathentry kind="output" path="target/classes"/>
<classpathentry kind="var" rootpath="JRE_SRCROOT" path="JRE_LIB"
sourcepath="JRE_SRC"/>
- <classpathentry kind="lib"
path="c:/home/Brett/cvs/maven-2/maven-components/maven-plugins/maven-eclipse-plugin/src/test/repository/junit/jars/junit-2.0.jar"/>
+ <classpathentry kind="lib"
path="/home/jvanzyl/js/org.apache.maven/components/trunk/maven-plugins/maven-eclipse-plugin/src/test/repository/junit/jars/junit-2.0.jar"/>
</classpath>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]