module_bsexcel.xml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project name="module_bsexcel" default="compile.module.bsexcel">
  3. <dirname property="module.bsexcel.basedir" file="${ant.file.module_bsexcel}"/>
  4. <property name="module.jdk.home.bsexcel" value="${jdk.home.android_api_28_platform}"/>
  5. <property name="module.jdk.bin.bsexcel" value="${jdk.bin.android_api_28_platform}"/>
  6. <property name="module.jdk.classpath.bsexcel" value="jdk.classpath.android_api_28_platform"/>
  7. <property name="compiler.args.bsexcel" value="-encoding UTF-8 -source 7 -target 1.8 ${compiler.args}"/>
  8. <property name="bsexcel.output.dir" value="${module.bsexcel.basedir}/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes"/>
  9. <property name="bsexcel.testoutput.dir" value="${module.bsexcel.basedir}/build/intermediates/javac/debugUnitTest/compileDebugUnitTestJavaWithJavac/classes"/>
  10. <path id="bsexcel.module.bootclasspath">
  11. <!-- Paths to be included in compilation bootclasspath -->
  12. </path>
  13. <path id="bsexcel.module.production.classpath">
  14. <path refid="${module.jdk.classpath.bsexcel}"/>
  15. <path refid="library.gradle:_com.android.support:support-fragment:28.0.0@aar.classpath"/>
  16. <path refid="library.gradle:_com.android.support:localbroadcastmanager:28.0.0@aar.classpath"/>
  17. <path refid="library.gradle:_com.android.support:documentfile:28.0.0@aar.classpath"/>
  18. <path refid="library.gradle:_com.android.support:animated-vector-drawable:28.0.0@aar.classpath"/>
  19. <path refid="library.gradle:_com.android.support:slidingpanelayout:28.0.0@aar.classpath"/>
  20. <path refid="library.gradle:_android.arch.lifecycle:viewmodel:1.1.1@aar.classpath"/>
  21. <path refid="library.gradle:_com.android.support:appcompat-v7:28.0.0@aar.classpath"/>
  22. <path refid="library.gradle:_com.android.support:loader:28.0.0@aar.classpath"/>
  23. <path refid="library.gradle:_android.arch.core:runtime:1.1.1@aar.classpath"/>
  24. <path refid="library.gradle:_android.arch.lifecycle:livedata-core:1.1.1@aar.classpath"/>
  25. <path refid="library.gradle:_com.android.support:collections:28.0.0@jar.classpath"/>
  26. <path refid="library.gradle:_com.android.support:cursoradapter:28.0.0@aar.classpath"/>
  27. <path refid="library.gradle:_android.arch.lifecycle:runtime:1.1.1@aar.classpath"/>
  28. <path refid="library.gradle:_com.android.support:support-compat:28.0.0@aar.classpath"/>
  29. <path refid="library.gradle:_com.android.support:support-core-ui:28.0.0@aar.classpath"/>
  30. <path refid="library.gradle:_com.android.support:asynclayoutinflater:28.0.0@aar.classpath"/>
  31. <path refid="library.gradle:_com.android.support:print:28.0.0@aar.classpath"/>
  32. <path refid="library.gradle:_android.arch.core:common:1.1.1@jar.classpath"/>
  33. <path refid="library.gradle:_com.android.support:versionedparcelable:28.0.0@aar.classpath"/>
  34. <path refid="library.gradle:_com.android.support:viewpager:28.0.0@aar.classpath"/>
  35. <path refid="library.gradle:_com.android.support:support-core-utils:28.0.0@aar.classpath"/>
  36. <path refid="library.gradle:_com.android.support:recyclerview-v7:28.0.0@aar.classpath"/>
  37. <path refid="library.gradle:_com.android.support:support-vector-drawable:28.0.0@aar.classpath"/>
  38. <path refid="library.gradle:_com.android.support:support-annotations:28.0.0@jar.classpath"/>
  39. <path refid="library.gradle:_android.arch.lifecycle:common:1.1.1@jar.classpath"/>
  40. <path refid="library.gradle:_com.android.support:interpolator:28.0.0@aar.classpath"/>
  41. <path refid="library.gradle:_android.arch.lifecycle:livedata:1.1.1@aar.classpath"/>
  42. <path refid="library.gradle:_com.android.support:drawerlayout:28.0.0@aar.classpath"/>
  43. <path refid="library.gradle:_com.android.support:coordinatorlayout:28.0.0@aar.classpath"/>
  44. <path refid="library.gradle:_com.android.support:customview:28.0.0@aar.classpath"/>
  45. <path refid="library.gradle:_com.android.support:swiperefreshlayout:28.0.0@aar.classpath"/>
  46. </path>
  47. <path id="bsexcel.runtime.production.module.classpath">
  48. <pathelement location="${bsexcel.output.dir}"/>
  49. <path refid="library.gradle:_com.android.support:support-fragment:28.0.0@aar.classpath"/>
  50. <path refid="library.gradle:_com.android.support:localbroadcastmanager:28.0.0@aar.classpath"/>
  51. <path refid="library.gradle:_com.android.support:documentfile:28.0.0@aar.classpath"/>
  52. <path refid="library.gradle:_com.android.support:animated-vector-drawable:28.0.0@aar.classpath"/>
  53. <path refid="library.gradle:_com.android.support:slidingpanelayout:28.0.0@aar.classpath"/>
  54. <path refid="library.gradle:_android.arch.lifecycle:viewmodel:1.1.1@aar.classpath"/>
  55. <path refid="library.gradle:_com.android.support:appcompat-v7:28.0.0@aar.classpath"/>
  56. <path refid="library.gradle:_com.android.support:loader:28.0.0@aar.classpath"/>
  57. <path refid="library.gradle:_android.arch.core:runtime:1.1.1@aar.classpath"/>
  58. <path refid="library.gradle:_android.arch.lifecycle:livedata-core:1.1.1@aar.classpath"/>
  59. <path refid="library.gradle:_com.android.support:collections:28.0.0@jar.classpath"/>
  60. <path refid="library.gradle:_com.android.support:cursoradapter:28.0.0@aar.classpath"/>
  61. <path refid="library.gradle:_android.arch.lifecycle:runtime:1.1.1@aar.classpath"/>
  62. <path refid="library.gradle:_com.android.support:support-compat:28.0.0@aar.classpath"/>
  63. <path refid="library.gradle:_com.android.support:support-core-ui:28.0.0@aar.classpath"/>
  64. <path refid="library.gradle:_com.android.support:asynclayoutinflater:28.0.0@aar.classpath"/>
  65. <path refid="library.gradle:_com.android.support:print:28.0.0@aar.classpath"/>
  66. <path refid="library.gradle:_android.arch.core:common:1.1.1@jar.classpath"/>
  67. <path refid="library.gradle:_com.android.support:versionedparcelable:28.0.0@aar.classpath"/>
  68. <path refid="library.gradle:_com.android.support:viewpager:28.0.0@aar.classpath"/>
  69. <path refid="library.gradle:_com.android.support:support-core-utils:28.0.0@aar.classpath"/>
  70. <path refid="library.gradle:_com.android.support:recyclerview-v7:28.0.0@aar.classpath"/>
  71. <path refid="library.gradle:_com.android.support:support-vector-drawable:28.0.0@aar.classpath"/>
  72. <path refid="library.gradle:_com.android.support:support-annotations:28.0.0@jar.classpath"/>
  73. <path refid="library.gradle:_android.arch.lifecycle:common:1.1.1@jar.classpath"/>
  74. <path refid="library.gradle:_com.android.support:interpolator:28.0.0@aar.classpath"/>
  75. <path refid="library.gradle:_android.arch.lifecycle:livedata:1.1.1@aar.classpath"/>
  76. <path refid="library.gradle:_com.android.support:drawerlayout:28.0.0@aar.classpath"/>
  77. <path refid="library.gradle:_com.android.support:coordinatorlayout:28.0.0@aar.classpath"/>
  78. <path refid="library.gradle:_com.android.support:customview:28.0.0@aar.classpath"/>
  79. <path refid="library.gradle:_com.android.support:swiperefreshlayout:28.0.0@aar.classpath"/>
  80. </path>
  81. <path id="bsexcel.module.classpath">
  82. <path refid="${module.jdk.classpath.bsexcel}"/>
  83. <pathelement location="${bsexcel.output.dir}"/>
  84. <path refid="library.gradle:_com.android.support:support-fragment:28.0.0@aar.classpath"/>
  85. <path refid="library.gradle:_com.android.support:localbroadcastmanager:28.0.0@aar.classpath"/>
  86. <path refid="library.gradle:_com.android.support:documentfile:28.0.0@aar.classpath"/>
  87. <path refid="library.gradle:_com.android.support:animated-vector-drawable:28.0.0@aar.classpath"/>
  88. <path refid="library.gradle:_com.android.support:slidingpanelayout:28.0.0@aar.classpath"/>
  89. <path refid="library.gradle:_android.arch.lifecycle:viewmodel:1.1.1@aar.classpath"/>
  90. <path refid="library.gradle:_com.android.support:appcompat-v7:28.0.0@aar.classpath"/>
  91. <path refid="library.gradle:_com.android.support.test.espresso:espresso-idling-resource:3.0.2@aar.classpath"/>
  92. <path refid="library.gradle:_com.android.support:loader:28.0.0@aar.classpath"/>
  93. <path refid="library.gradle:_android.arch.core:runtime:1.1.1@aar.classpath"/>
  94. <path refid="library.gradle:_com.android.support.test:runner:1.0.2@aar.classpath"/>
  95. <path refid="library.gradle:_android.arch.lifecycle:livedata-core:1.1.1@aar.classpath"/>
  96. <path refid="library.gradle:_com.android.support:collections:28.0.0@jar.classpath"/>
  97. <path refid="library.gradle:_com.squareup:javawriter:2.1.1@jar.classpath"/>
  98. <path refid="library.gradle:_com.android.support:cursoradapter:28.0.0@aar.classpath"/>
  99. <path refid="library.gradle:_android.arch.lifecycle:runtime:1.1.1@aar.classpath"/>
  100. <path refid="library.gradle:_com.android.support.test.espresso:espresso-core:3.0.2@aar.classpath"/>
  101. <path refid="library.gradle:_com.android.support:support-compat:28.0.0@aar.classpath"/>
  102. <path refid="library.gradle:_com.android.support:support-core-ui:28.0.0@aar.classpath"/>
  103. <path refid="library.gradle:_com.android.support:asynclayoutinflater:28.0.0@aar.classpath"/>
  104. <path refid="library.gradle:_com.android.support:print:28.0.0@aar.classpath"/>
  105. <path refid="library.gradle:_com.google.code.findbugs:jsr305:2.0.1@jar.classpath"/>
  106. <path refid="library.gradle:_javax.inject:javax.inject:1@jar.classpath"/>
  107. <path refid="library.gradle:_android.arch.core:common:1.1.1@jar.classpath"/>
  108. <path refid="library.gradle:_com.android.support:versionedparcelable:28.0.0@aar.classpath"/>
  109. <path refid="library.gradle:_junit:junit:4.12@jar.classpath"/>
  110. <path refid="library.gradle:_org.hamcrest:hamcrest-core:1.3@jar.classpath"/>
  111. <path refid="library.gradle:_com.android.support:viewpager:28.0.0@aar.classpath"/>
  112. <path refid="library.gradle:_com.android.support:support-core-utils:28.0.0@aar.classpath"/>
  113. <path refid="library.gradle:_com.android.support:recyclerview-v7:28.0.0@aar.classpath"/>
  114. <path refid="library.gradle:_com.android.support:support-vector-drawable:28.0.0@aar.classpath"/>
  115. <path refid="library.gradle:_com.android.support.test:monitor:1.0.2@aar.classpath"/>
  116. <path refid="library.gradle:_org.hamcrest:hamcrest-library:1.3@jar.classpath"/>
  117. <path refid="library.gradle:_org.hamcrest:hamcrest-integration:1.3@jar.classpath"/>
  118. <path refid="library.gradle:_com.android.support:support-annotations:28.0.0@jar.classpath"/>
  119. <path refid="library.gradle:_android.arch.lifecycle:common:1.1.1@jar.classpath"/>
  120. <path refid="library.gradle:_com.android.support:interpolator:28.0.0@aar.classpath"/>
  121. <path refid="library.gradle:_android.arch.lifecycle:livedata:1.1.1@aar.classpath"/>
  122. <path refid="library.gradle:_com.android.support:drawerlayout:28.0.0@aar.classpath"/>
  123. <path refid="library.gradle:_com.android.support:coordinatorlayout:28.0.0@aar.classpath"/>
  124. <path refid="library.gradle:_com.android.support:customview:28.0.0@aar.classpath"/>
  125. <path refid="library.gradle:_com.android.support:swiperefreshlayout:28.0.0@aar.classpath"/>
  126. <path refid="library.gradle:_net.sf.kxml:kxml2:2.3.0@jar.classpath"/>
  127. </path>
  128. <path id="bsexcel.runtime.module.classpath">
  129. <pathelement location="${bsexcel.testoutput.dir}"/>
  130. <pathelement location="${bsexcel.output.dir}"/>
  131. <path refid="library.gradle:_com.android.support:support-fragment:28.0.0@aar.classpath"/>
  132. <path refid="library.gradle:_com.android.support:localbroadcastmanager:28.0.0@aar.classpath"/>
  133. <path refid="library.gradle:_com.android.support:documentfile:28.0.0@aar.classpath"/>
  134. <path refid="library.gradle:_com.android.support:animated-vector-drawable:28.0.0@aar.classpath"/>
  135. <path refid="library.gradle:_com.android.support:slidingpanelayout:28.0.0@aar.classpath"/>
  136. <path refid="library.gradle:_android.arch.lifecycle:viewmodel:1.1.1@aar.classpath"/>
  137. <path refid="library.gradle:_com.android.support:appcompat-v7:28.0.0@aar.classpath"/>
  138. <path refid="library.gradle:_com.android.support.test.espresso:espresso-idling-resource:3.0.2@aar.classpath"/>
  139. <path refid="library.gradle:_com.android.support:loader:28.0.0@aar.classpath"/>
  140. <path refid="library.gradle:_android.arch.core:runtime:1.1.1@aar.classpath"/>
  141. <path refid="library.gradle:_com.android.support.test:runner:1.0.2@aar.classpath"/>
  142. <path refid="library.gradle:_android.arch.lifecycle:livedata-core:1.1.1@aar.classpath"/>
  143. <path refid="library.gradle:_com.android.support:collections:28.0.0@jar.classpath"/>
  144. <path refid="library.gradle:_com.squareup:javawriter:2.1.1@jar.classpath"/>
  145. <path refid="library.gradle:_com.android.support:cursoradapter:28.0.0@aar.classpath"/>
  146. <path refid="library.gradle:_android.arch.lifecycle:runtime:1.1.1@aar.classpath"/>
  147. <path refid="library.gradle:_com.android.support.test.espresso:espresso-core:3.0.2@aar.classpath"/>
  148. <path refid="library.gradle:_com.android.support:support-compat:28.0.0@aar.classpath"/>
  149. <path refid="library.gradle:_com.android.support:support-core-ui:28.0.0@aar.classpath"/>
  150. <path refid="library.gradle:_com.android.support:asynclayoutinflater:28.0.0@aar.classpath"/>
  151. <path refid="library.gradle:_com.android.support:print:28.0.0@aar.classpath"/>
  152. <path refid="library.gradle:_com.google.code.findbugs:jsr305:2.0.1@jar.classpath"/>
  153. <path refid="library.gradle:_javax.inject:javax.inject:1@jar.classpath"/>
  154. <path refid="library.gradle:_android.arch.core:common:1.1.1@jar.classpath"/>
  155. <path refid="library.gradle:_com.android.support:versionedparcelable:28.0.0@aar.classpath"/>
  156. <path refid="library.gradle:_junit:junit:4.12@jar.classpath"/>
  157. <path refid="library.gradle:_org.hamcrest:hamcrest-core:1.3@jar.classpath"/>
  158. <path refid="library.gradle:_com.android.support:viewpager:28.0.0@aar.classpath"/>
  159. <path refid="library.gradle:_com.android.support:support-core-utils:28.0.0@aar.classpath"/>
  160. <path refid="library.gradle:_com.android.support:recyclerview-v7:28.0.0@aar.classpath"/>
  161. <path refid="library.gradle:_com.android.support:support-vector-drawable:28.0.0@aar.classpath"/>
  162. <path refid="library.gradle:_com.android.support.test:monitor:1.0.2@aar.classpath"/>
  163. <path refid="library.gradle:_org.hamcrest:hamcrest-library:1.3@jar.classpath"/>
  164. <path refid="library.gradle:_org.hamcrest:hamcrest-integration:1.3@jar.classpath"/>
  165. <path refid="library.gradle:_com.android.support:support-annotations:28.0.0@jar.classpath"/>
  166. <path refid="library.gradle:_android.arch.lifecycle:common:1.1.1@jar.classpath"/>
  167. <path refid="library.gradle:_com.android.support:interpolator:28.0.0@aar.classpath"/>
  168. <path refid="library.gradle:_android.arch.lifecycle:livedata:1.1.1@aar.classpath"/>
  169. <path refid="library.gradle:_com.android.support:drawerlayout:28.0.0@aar.classpath"/>
  170. <path refid="library.gradle:_com.android.support:coordinatorlayout:28.0.0@aar.classpath"/>
  171. <path refid="library.gradle:_com.android.support:customview:28.0.0@aar.classpath"/>
  172. <path refid="library.gradle:_com.android.support:swiperefreshlayout:28.0.0@aar.classpath"/>
  173. <path refid="library.gradle:_net.sf.kxml:kxml2:2.3.0@jar.classpath"/>
  174. </path>
  175. <patternset id="excluded.from.module.bsexcel">
  176. <patternset refid="ignored.files"/>
  177. </patternset>
  178. <patternset id="excluded.from.compilation.bsexcel">
  179. <patternset refid="excluded.from.module.bsexcel"/>
  180. </patternset>
  181. <path id="bsexcel.module.sourcepath">
  182. <dirset dir="${module.bsexcel.basedir}">
  183. <include name="src/main/res"/>
  184. <include name="src/main/java"/>
  185. </dirset>
  186. </path>
  187. <path id="bsexcel.module.test.sourcepath">
  188. <dirset dir="${module.bsexcel.basedir}">
  189. <include name="src/test/java"/>
  190. <include name="src/androidTest/java"/>
  191. </dirset>
  192. </path>
  193. <target name="compile.module.bsexcel" depends="compile.module.bsexcel.production,compile.module.bsexcel.tests" description="Compile module BSExcel"/>
  194. <target name="compile.module.bsexcel.production" depends="register.custom.compilers" description="Compile module BSExcel; production classes">
  195. <mkdir dir="${bsexcel.output.dir}"/>
  196. <javac2 destdir="${bsexcel.output.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true" executable="${module.jdk.bin.bsexcel}/javac">
  197. <compilerarg line="${compiler.args.bsexcel}"/>
  198. <bootclasspath refid="bsexcel.module.bootclasspath"/>
  199. <classpath refid="bsexcel.module.production.classpath"/>
  200. <src refid="bsexcel.module.sourcepath"/>
  201. <patternset refid="excluded.from.compilation.bsexcel"/>
  202. </javac2>
  203. <copy todir="${bsexcel.output.dir}">
  204. <fileset dir="${module.bsexcel.basedir}/src/main/res">
  205. <patternset refid="compiler.resources"/>
  206. <type type="file"/>
  207. </fileset>
  208. <fileset dir="${module.bsexcel.basedir}/src/main/java">
  209. <patternset refid="compiler.resources"/>
  210. <type type="file"/>
  211. </fileset>
  212. </copy>
  213. </target>
  214. <target name="compile.module.bsexcel.tests" depends="register.custom.compilers,compile.module.bsexcel.production" description="compile module BSExcel; test classes" unless="skip.tests">
  215. <mkdir dir="${bsexcel.testoutput.dir}"/>
  216. <javac2 destdir="${bsexcel.testoutput.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true" executable="${module.jdk.bin.bsexcel}/javac">
  217. <compilerarg line="${compiler.args.bsexcel}"/>
  218. <bootclasspath refid="bsexcel.module.bootclasspath"/>
  219. <classpath refid="bsexcel.module.classpath"/>
  220. <src refid="bsexcel.module.test.sourcepath"/>
  221. <patternset refid="excluded.from.compilation.bsexcel"/>
  222. </javac2>
  223. <copy todir="${bsexcel.testoutput.dir}">
  224. <fileset dir="${module.bsexcel.basedir}/src/test/java">
  225. <patternset refid="compiler.resources"/>
  226. <type type="file"/>
  227. </fileset>
  228. <fileset dir="${module.bsexcel.basedir}/src/androidTest/java">
  229. <patternset refid="compiler.resources"/>
  230. <type type="file"/>
  231. </fileset>
  232. </copy>
  233. </target>
  234. <target name="clean.module.bsexcel" description="cleanup module">
  235. <delete dir="${bsexcel.output.dir}"/>
  236. <delete dir="${bsexcel.testoutput.dir}"/>
  237. </target>
  238. </project>