You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by pg...@apache.org on 2009/11/24 23:07:14 UTC
svn commit: r883896 -
/maven/ant-tasks/trunk/src/main/java/org/apache/maven/artifact/ant/Pom.java
Author: pgier
Date: Tue Nov 24 22:07:13 2009
New Revision: 883896
URL: http://svn.apache.org/viewvc?rev=883896&view=rev
Log:
Minor error handling improvement.
Modified:
maven/ant-tasks/trunk/src/main/java/org/apache/maven/artifact/ant/Pom.java
Modified: maven/ant-tasks/trunk/src/main/java/org/apache/maven/artifact/ant/Pom.java
URL: http://svn.apache.org/viewvc/maven/ant-tasks/trunk/src/main/java/org/apache/maven/artifact/ant/Pom.java?rev=883896&r1=883895&r2=883896&view=diff
==============================================================================
--- maven/ant-tasks/trunk/src/main/java/org/apache/maven/artifact/ant/Pom.java (original)
+++ maven/ant-tasks/trunk/src/main/java/org/apache/maven/artifact/ant/Pom.java Tue Nov 24 22:07:13 2009
@@ -200,6 +200,10 @@
{
this.getPomFromAntProject( refid );
}
+ else
+ {
+ throw new BuildException( "POM type requires configuration of either 'file' or 'refid'." );
+ }
}
protected MavenProject getMavenProject()