src/build.xml
changeset 7595 62566014690e
parent 7592 85eb92e7e94b
child 7802 15b00ba141d6
child 7861 c6c4e4df6d4f
--- a/src/build.xml	Fri Jun 11 10:26:02 2010 +0200
+++ b/src/build.xml	Fri Jun 11 12:05:40 2010 +0200
@@ -840,13 +840,17 @@
 
   <target name="copy.files" if="mode.class">
     <mkdir dir="${jakarta.base}/webapps/${context.name}" />
-    <copy todir="${jakarta.base}/webapps/${context.name}" encoding="UTF-8">
+    <sync todir="${jakarta.base}/webapps/${context.name}">
+      <preserveintarget>
+        <include name="**/WEB-INF/classes/**"/>
+        <include name="**/WEB-INF/lib/**"/>
+      </preserveintarget>
       <fileset dir="${base.context}" />
-    </copy>
+    </sync>
     <mkdir dir="${jakarta.base}/webapps/${context.name}/WEB-INF/classes" />
-    <copy todir="${jakarta.base}/webapps/${context.name}/WEB-INF/classes" encoding="UTF-8">
+    <sync todir="${jakarta.base}/webapps/${context.name}/WEB-INF/classes">
       <fileset dir="${build}" />
-    </copy>
+    </sync>
     <mkdir dir="${jakarta.base}/webapps/${context.name}/WEB-INF/lib" />
       <copy todir="${jakarta.base}/webapps/${context.name}/WEB-INF/lib" file="${build.core.lib}/openbravo-core.jar" encoding="UTF-8">
     </copy>