This is my overriden build.xml for mac osx build that change the icons, change some the app.conf content. Basically it is just - run the original suite.build-mac - delete/replace the original icns (icon file) with our own - do some modification on the app.conf - make sure the info.plist have correct version number for the applications - zip the output (optional) note: the zip output is using linux zip command, you may need to change it into your platform zip command

<!-- override to change icons, and some stuffs --> 
<target name="build-mac" description="Create Mac OSX Installer" 
depends="suite.build-mac"> 
<property name="nbdist.dir" value="dist"/> 
<property name="nbdist-contents.dir" 
value="${nbdist.dir}/${app.name}.app/Contents"/> 
<property name="nbdist-resources.dir" 
value="${nbdist-contents.dir}/Resources"/> 
<property name="nbdist-app.dir" 
value="${nbdist-resources.dir}/${app.name}"/> 
<property name="nbdist-app-installer" 
value="${app.name}-${app.version.dash}-mac.zip"/> 

<delete file="${nbdist-resources.dir}/${app.name}.icns"/> 

<copy tofile="${nbdist-resources.dir}/${app.name}.icns" 
file="installer/icons/${app.name}.icns" /> 

<copy todir="${nbdist-app.dir}/legal"> 
<fileset dir="legal"/> 
</copy> 

<replace file="${nbdist-app.dir}/etc/${app.name}.conf"> 
<replacefilter token="/dev" value="/${app.version}" /> 
<replacefilter token="-J-Xms24m -J-Xmx64m" 
value="${run.args.extra}" /> 
</replace> 

<!-- XXX always check this, when there is new NbPlatform release --> 
<replace file="${nbdist-contents.dir}/Info.plist"> 
<replacefilter token="0.1" value="${app.version}" /> 
<replacefilter token="6.0" value="${app.version}" /> 
</replace> 

<delete file="${nbdist.dir}/${nbdist-app-installer}"/> 
<exec dir="${nbdist.dir}" executable="zip"> 
<arg line="-yr ${nbdist-app-installer} ${app.name}.app"/> 
</exec> 

</target> 

Cheers Tonny Kohar -- Sketsa SVG Editor imagine, design, create ...  http://www.kiyut.com