directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r378961 - /directory/sandbox/akarasulu/rc1/daemon/plugin/src/main/java/org/apache/directory/daemon/installers/MojoCommand.java
Date Sun, 19 Feb 2006 21:48:54 GMT
Author: akarasulu
Date: Sun Feb 19 13:48:53 2006
New Revision: 378961

URL: http://svn.apache.org/viewcvs?rev=378961&view=rev
Log:
beter error handling

Modified:
    directory/sandbox/akarasulu/rc1/daemon/plugin/src/main/java/org/apache/directory/daemon/installers/MojoCommand.java

Modified: directory/sandbox/akarasulu/rc1/daemon/plugin/src/main/java/org/apache/directory/daemon/installers/MojoCommand.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/daemon/plugin/src/main/java/org/apache/directory/daemon/installers/MojoCommand.java?rev=378961&r1=378960&r2=378961&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/daemon/plugin/src/main/java/org/apache/directory/daemon/installers/MojoCommand.java
(original)
+++ directory/sandbox/akarasulu/rc1/daemon/plugin/src/main/java/org/apache/directory/daemon/installers/MojoCommand.java
Sun Feb 19 13:48:53 2006
@@ -96,6 +96,13 @@
                 if ( packagedFiles[ii].isDependency() )
                 {
                     Artifact artifact = ( Artifact ) dependencyMap.get( packagedFiles[ii].getSource()
);
+                    
+                    if ( artifact == null )
+                    {
+                        throw new MojoFailureException( "The packaged file setup as a dependency
on artifact "
+                            + packagedFiles[ii].getSource() + " has not been found in the
project.  " +
+                                    "Check your <dependencies> in the project pom."
);
+                    }
                     source = artifact.getFile().getAbsoluteFile();
                 }
                 else



Mime
View raw message