directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r643476 - /directory/daemon/branches/bigbang/plugin/src/main/java/org/apache/directory/daemon/installers/rpm/RpmInstallerCommand.java
Date Tue, 01 Apr 2008 17:05:25 GMT
Author: pamarcelot
Date: Tue Apr  1 10:05:11 2008
New Revision: 643476

URL: http://svn.apache.org/viewvc?rev=643476&view=rev
Log:
Fixed a build failure when the user does not have the rpmbuild utility on its system. No installer
is generated, and the build no longer fails but continues.

Modified:
    directory/daemon/branches/bigbang/plugin/src/main/java/org/apache/directory/daemon/installers/rpm/RpmInstallerCommand.java

Modified: directory/daemon/branches/bigbang/plugin/src/main/java/org/apache/directory/daemon/installers/rpm/RpmInstallerCommand.java
URL: http://svn.apache.org/viewvc/directory/daemon/branches/bigbang/plugin/src/main/java/org/apache/directory/daemon/installers/rpm/RpmInstallerCommand.java?rev=643476&r1=643475&r2=643476&view=diff
==============================================================================
--- directory/daemon/branches/bigbang/plugin/src/main/java/org/apache/directory/daemon/installers/rpm/RpmInstallerCommand.java
(original)
+++ directory/daemon/branches/bigbang/plugin/src/main/java/org/apache/directory/daemon/installers/rpm/RpmInstallerCommand.java
Tue Apr  1 10:05:11 2008
@@ -138,7 +138,10 @@
         // because the compiler may be installed in different places and is specific
         if ( !target.getRpmBuilder().exists() )
         {
-            throw new MojoFailureException( "Cannot find rpmbuild: " + target.getRpmBuilder()
);
+            log.warn( "Cannot find rpmbuild utility at this location: " + target.getRpmBuilder()
);
+            log.warn( "The build will continue, but please check the location of your rpmbuild
" );
+            log.warn( "utility." );
+            return;
         }
         else
         {



Mime
View raw message