Index: /trunk/build.xml
===================================================================
--- /trunk/build.xml	(revision 16001)
+++ /trunk/build.xml	(revision 16002)
@@ -194,5 +194,5 @@
       ** Main target that builds JOSM and checks XML against schemas
     -->
-    <target name="dist" depends="compile,create-revision,check-schemas,epsg">
+    <target name="dist" depends="compile,extract-libraries,create-revision,check-schemas,epsg">
         <echo>Revision ${version.entry.commit.revision}</echo>
         <copy file="CONTRIBUTION" todir="${build.dir}"/>
@@ -201,12 +201,4 @@
         <!-- create josm-custom.jar -->
         <delete file="${dist.jar}"/>
-        <!-- extract libraries to build dir to create uber-jar -->
-        <unzip dest="${build.dir}">
-            <fileset refid="runtime.fileset"/>
-            <patternset>
-                <exclude name="META-INF/**"/>
-                <exclude name="*"/>
-            </patternset>
-        </unzip>
         <jar destfile="${dist.jar}" basedir="${build.dir}" level="${clevel}">
             <!-- add attribute excludes="**/*BZip2*,**/*Bzip2*" to create a non-bzip2 supporting jar -->
@@ -1135,5 +1127,5 @@
         <move file="${modules.dir}/dots/summary.dot.png" tofile="${modules.dir}/josm-with-all-dependencies.png"/>
     </target>
-    <target name="resolve" depends="init-ivy">
+    <target name="resolve" depends="init-ivy" unless="resolve.notRequired">
         <ivy:resolve keep="true"/>
         <ivy:report todir="${tools.dir}/ivy-report" graph="false"/>
@@ -1144,4 +1136,13 @@
         <ivy:retrieve pattern="${tools.dir}/ivy/[artifact]-[type].[ext]" conf="ivy"/>
     </target>
+    <target name="extract-libraries" depends="resolve" description="extract libraries to build dir">
+        <unzip dest="${build.dir}">
+            <fileset refid="runtime.fileset"/>
+            <patternset>
+                <exclude name="META-INF/**"/>
+                <exclude name="*"/>
+            </patternset>
+        </unzip>
+    </target>
     <target name="bootstrap-workspace" description="Copy libraries from ivy cache to workspace folders for IDE" depends="resolve">
         <delete dir="${lib.dir}"/>
