Fixed issue 20416. Fixed incremental compile of files inside modules
authorAntonio Moreno <antonio.moreno@openbravo.com>
Fri, 04 May 2012 12:21:04 +0200
changeset 16444 95a918e7ff24
parent 16443 88b5179b0aeb
child 16445 223d7328a7bb
Fixed issue 20416. Fixed incremental compile of files inside modules
src-wad/build.xml
src/build.xml
--- a/src-wad/build.xml	Wed May 02 18:06:13 2012 +0200
+++ b/src-wad/build.xml	Fri May 04 12:21:04 2012 +0200
@@ -81,10 +81,19 @@
     </javac>
   </target>
 
+  <path id="my-src-wad-dirs">
+    <pathelement path="src" />
+    <dirset dir="../modules">
+      <include name="*/src-wad/*" />
+    </dirset>
+  </path>
+
   <target name="compile" depends="compileSqlc">
-    <javac srcdir="${main.dir}" includes="src-wad/src/**/*.java,modules/*/src-wad/**/*.java" destdir="${build.wad}" deprecation="on" encoding="UTF-8" debug="true" debuglevel="lines,vars,source" fork="true" includeantruntime="false">
+    <javac destdir="${build.wad}" deprecation="on" encoding="UTF-8" debug="true" debuglevel="lines,vars,source" fork="true" includeantruntime="false">
+      <src refid="my-src-wad-dirs" />
       <classpath refid="wad.class.path" />
     </javac>
+
     <copy todir="${build.wad}" encoding="UTF-8">
       <fileset dir="${build.wad.src}" includes="**/*xml" />
       <fileset dir="${build.wad.src}" includes="**/*html" />
--- a/src/build.xml	Wed May 02 18:06:13 2012 +0200
+++ b/src/build.xml	Fri May 04 12:21:04 2012 +0200
@@ -327,8 +327,21 @@
 	<jstest apiDetailsPath="${api.test.javascript.details}" jsPath="${base.web}/js" export="${export}" />
   </target>
   
+  <path id="my-src-dirs">
+   <pathelement path="${basedir}" />
+   <pathelement path="${build.sqlc}/src" />
+   <pathelement path="${build.sqlc}/srcAD" />
+   <pathelement path="${base.src.test}" />
+   <dirset dir="${base.modules}">
+     <include name="*/*" />
+     <exclude name="*/src-util" />
+     <exclude name="*/src-wad" />
+   </dirset>
+  </path>
+  
   <target name="compileSqlc" depends="sqlc">
-    <javac  srcdir="${basedir}:${build.sqlc}/src:${build.sqlc}/srcAD:${base.src.test}:${base.modules}" excludes="*/src-wad/**,*/src-util/**" destdir="${build}" encoding="UTF-8" fork="true" memorymaximumsize="${build.maxmemory}" debug="true" debuglevel="lines,vars,source" nowarn="${friendlyWarnings}" includeantruntime="false">
+    <javac excludes="*/src-wad/**,*/src-util/**,**/org/openbravo/erpWindows/**" destdir="${build}" encoding="UTF-8" fork="true" memorymaximumsize="${build.maxmemory}" debug="true" debuglevel="lines,vars,source" nowarn="${friendlyWarnings}" includeantruntime="false">
+      <src refid="my-src-dirs"/>
       <classpath refid="project.class.path" />
     </javac>