Index: trunk/build.xml
===================================================================
--- trunk/build.xml	(revision 7231)
+++ trunk/build.xml	(revision 7287)
@@ -153,9 +153,7 @@
             <arch name="i386"/>
 
-            <bundledocument extensions="osm" icon="macosx/JOSM.app/Contents/Resources/JOSM.icns" name="OSM files" role="editor"/>
-
             <classpath file="${bundle.jar}"/>
 
-            <option value="-Xmx512m"/>
+            <option value="-Xmx1024m"/>
 
             <option value="-Xdock:icon=Contents/Resources/JOSM.icns"/>
@@ -174,7 +172,8 @@
         
         <xmltask source="${bundle.outdir}/JOSM.app/Contents/Info.plist" dest="${bundle.outdir}/JOSM.app/Contents/Info.plist" indent="false">
-            <insert position="before" path="/plist/dict/key[1]"><![CDATA[<key>CFBundleAllowMixedLocalizations</key>
-<string>true</string>
-]]></insert>
+        	<!-- remove empty CFBundleDocumentTypes definition -->
+        	<remove path="/plist/dict/key[text()='CFBundleDocumentTypes']|/plist/dict/key[text()='CFBundleDocumentTypes']/following-sibling::array[1]"/>
+            <!-- insert our own keys -->
+            <insert position="before" path="/plist/dict/key[1]" file="macosx/JOSM.app/Contents/Info.plist_template.xml" />
         </xmltask>
         
