Re: problem with rpm task

Steve Loughran <[email protected]> Fri, 15 Jun 2007 13:02:43 +0100
Newsgroups gmane.comp.java.smartfrog.devel
Message-ID <[email protected]>
Andreas Unterkircher wrote:
 > Hello,
 >
 > I just tried to build SF 3.11.000beta on Mac OS X but it fails with
 >
 > rpm:
 >       [rpm] Building the RPM based on the smartfrog.spec file
 >
 > BUILD FAILED
 > /Users/unterkir/workspace/SmartFrog/build.xml:491: The following error
 > occurred while executing this line:
 > /Users/unterkir/workspace/SmartFrog/release/build.xml:291:
 > java.io.IOException: rpm: not found
 >
 > This is understandable as there is no rpm on Mac OS X as far as I know.
 > I think it would be best to make the rpm task optional and disabled per
 > default. Or one introduces some detection to see if rpm is present on
 > the build machine.
 >

I had the build switching to use rpmbuild on unix/not unix, as you can 
even get the exe on non-linux systems.

I will tweak the test to be unix && rpmbuild is in env.PATH

.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/