Bug 55899

Summary: [PATCH] Distribute Mac OS X .pkg installer of Ant (patch included)
Product: Ant Reporter: Ben Gertzfield <bgertzfield>
Component: CoreAssignee: Ant Notifications List <notifications>
Status: NEW ---    
Severity: enhancement    
Priority: P2    
Version: nightly   
Target Milestone: ---   
Hardware: PC   
OS: All   
Attachments: Patch to add Mac OS X .pkg installer of Apache Ant

Description Ben Gertzfield 2013-12-18 01:21:51 UTC
Created attachment 31128 [details]
Patch to add Mac OS X .pkg installer of Apache Ant

Since Mac OS X 10.9, ant is no longer shipped as part of the OS.

It'd be great if we could include a Mac OS X .pkg installer with the binary Ant distributions.

Attached please find a patch against ant core (r1551525) which includes a script to build a Mac OS X .pkg installer from an Ant .zip binary distribution.

The patch also integrates into the 'distribution' build.xml target a new 'pkg_distribution' target to build the .pkg installer after building the .zip binary distribution of ant. (The pkg_distribution target is conditional and only runs if ant is built on a Mac OS X host.)
Comment 1 Antoine Levy-Lambert 2013-12-23 04:46:59 UTC
you contribution is added in revision 1553066.
Do we want to distribute the installer systematically with new versions of Ant ? If yes I need to modify the binary download page and make changes to the ant page on freecode.com to mention the MacOS package. Also check that the target that we will invoke for the release includes the build of the Mac OS Package.
Comment 2 Antoine Levy-Lambert 2013-12-23 17:42:01 UTC
for now I have added your script to the codebase but I did not include the MacOS X package in the release.

Nicolas Lalevee wrote this :
> I am using macports to install Ant on my mac, works like a charm, and updated 
> frequently. And I know it is possible to do it via homebrew or fink too.

Can you have a look at these options ?
Comment 3 Ben Gertzfield 2013-12-23 20:49:09 UTC
Thanks for merging my contribution!

It'd be great to distribute the binary .pkg alongside the .zip, .tar.gz, and .tar.bz2 binary distributions.

Many Mac OS X users are uncomfortable with installing a large open-source package management system like MacPorts, Fink, and Homebrew (mainly because they take a lot of time and effort to maintain).

The idea behind the .pkg installer is to make up for the removal of Apache Ant from OS X 10.9 without requiring a large package management system.

Let me know if I can help get the .pkg up on the website alongside the other binary distributions!