Re: Skipping rpm build under windows

2011-01-18 Thread Wayne Fay
> [JN] But then you run the release on a unix box that hasn't had RPMBuild
> installed and it completes (no one ever checks the warnings right yet there
> is no rpm!)
> But it's ok as you can then have a profile to enable the
> doNotFailIfRPMBuildIsNotFound - but then you don't like profiles and you

Nah... the configuration would look like:

   win32
   macosx


Or the opposite:

   unix
   linux
   cygwin


And the plugin would automatically skip if the OS does not match, like
having a true config that some plugins offer.

Just thinking out loud here... feel free to ignore me. ;-)

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: Skipping rpm build under windows

2011-01-18 Thread Nord, James

-Original Message-
From: Wayne Fay [mailto:wayne...@gmail.com]
Sent: 17 January 2011 16:49
To: Maven Users List
Subject: Re: Skipping rpm build under windows

> You can use a profile to build your rpm project.

This would normally be my response too... but I personally dislike profiles for 
things if there is another way to handle it. Profiles can make builds more 
complicated than absolutely necessary.

Surely the rpmbuild plugin could be adjusted to check the OS, or check for the 
existence of the "rpmbuild" executable or something, and then ignore with a 
warning (or fail, configurable in the plugin config) if it wasn't found, or 
something...? This just seems like a common use case and maybe the rpmbuild 
plugin devs should find a little bit smarter way to handle it.

[JN] But then you run the release on a unix box that hasn't had RPMBuild 
installed and it completes (no one ever checks the warnings right yet there is 
no rpm!)
But it's ok as you can then have a profile to enable the 
doNotFailIfRPMBuildIsNotFound - but then you don't like profiles and you are 
back where you started...

IIRC the rpm plugin works on windows if you have Cygwin installed and the 
rpmbuild package for the anti-profile people out there.

/James


**
This message is confidential and intended only for the addressee. If you have 
received this message in error, please immediately notify the 
postmas...@nds.com and delete it from your system as well as any copies. The 
content of e-mails as well as traffic data may be monitored by NDS for 
employment and security purposes. To protect the environment please do not 
print this e-mail unless necessary.

NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, 
United Kingdom. A company registered in England and Wales. Registered no. 
3080780. VAT no. GB 603 8808 40-00
**


Re: Skipping rpm build under windows

2011-01-17 Thread Wayne Fay
> You can use a profile to build your rpm project.

This would normally be my response too... but I personally dislike
profiles for things if there is another way to handle it. Profiles can
make builds more complicated than absolutely necessary.

Surely the rpmbuild plugin could be adjusted to check the OS, or check
for the existence of the "rpmbuild" executable or something, and then
ignore with a warning (or fail, configurable in the plugin config) if
it wasn't found, or something...? This just seems like a common use
case and maybe the rpmbuild plugin devs should find a little bit
smarter way to handle it.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: Skipping rpm build under windows

2011-01-17 Thread Thiessen, Todd (Todd)
You can use a profile to build your rpm project.

   
  rpm
  

  linux
  i386

  
  
module which builds your rpm
  


> -Original Message-
> From: chazmuzz [mailto:char...@coreware.co.uk]
> Sent: Monday, January 17, 2011 11:05 AM
> To: users@maven.apache.org
> Subject: Skipping rpm build under windows
> 
> 
> Hi,
> 
> I have a project where a set of RPMs are generated during the maven build
> process.  This works brilliantly when developing with linux/eclipse, but
> fails on windows xp/eclipse as there is no rpmbuild command.
> 
> The developers using windows have been deleting the rpm execution goal
> part
> of the pom.xml so that the project builds and can be tested locally. This
> seems quite a nasty hack as there are 8 poms, and it makes svn usage
> annoying.
> 
> I need a solution that allows us to use just one version of each pom that
> builds on windows and creates RPMs additionally on linux.
> 
> A perfectly acceptable solution is to skip the rpmbuild part if you're
> using
> windows/rpmbuild isn't found, but I don't know how to do this.
> 
> Suggestions?
> 
> 
> Many thanks
> 
> 
> 
> --
> View this message in context: http://maven.40175.n5.nabble.com/Skipping-
> rpm-build-under-windows-tp3344638p3344638.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org