Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one
  4. or more contributor license agreements. See the NOTICE file
  5. distributed with this work for additional information
  6. regarding copyright ownership. The ASF licenses this file
  7. to you under the Apache License, Version 2.0 (the
  8. "License"); you may not use this file except in compliance
  9. with the License. You may obtain a copy of the License at
  10. http://www.apache.org/licenses/LICENSE-2.0
  11. Unless required by applicable law or agreed to in writing,
  12. software distributed under the License is distributed on an
  13. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  14. KIND, either express or implied. See the License for the
  15. specific language governing permissions and limitations
  16. under the License.
  17. -->
  18. <project name="Cordova" default="jar">
  19. <!-- LOAD VERSION -->
  20. <loadfile property="version" srcFile="../VERSION">
  21. <filterchain>
  22. <striplinebreaks/>
  23. </filterchain>
  24. </loadfile>
  25. <!-- check that the version of ant is at least 1.8.0 -->
  26. <antversion property="thisantversion" atleast="1.8.0" />
  27. <fail message="The required minimum version of ant is 1.8.0, you have ${ant.version}"
  28. unless="thisantversion" />
  29. <!-- The local.properties file is created and updated by the 'android'
  30. tool. (For example "sdkdir/tools/android update project -p ." inside
  31. of this directory where the AndroidManifest.xml file exists. This
  32. properties file that gets built contains the path to the SDK. It
  33. should *NOT* be checked into Version Control Systems since it holds
  34. data about the local machine. -->
  35. <available file="local.properties" property="exists.local.properties" />
  36. <fail message="You need to create the file 'local.properties' by running 'android update project -p .' here."
  37. unless="exists.local.properties" />
  38. <loadproperties srcFile="local.properties" />
  39. <!-- The ant.properties file can be created by you. It is only edited by the
  40. 'android' tool to add properties to it.
  41. This is the place to change some Ant specific build properties.
  42. Here are some properties you may want to change/update:
  43. source.dir
  44. The name of the source directory. Default is 'src'.
  45. out.dir
  46. The name of the output directory. Default is 'bin'.
  47. For other overridable properties, look at the beginning of the rules
  48. files in the SDK, at tools/ant/build.xml
  49. Properties related to the SDK location or the project target should
  50. be updated using the 'android' tool with the 'update' action.
  51. This file is an integral part of the build system for your
  52. application and should be checked into Version Control Systems.
  53. -->
  54. <property file="ant.properties" />
  55. <!-- The project.properties file is created and updated by the 'android'
  56. tool, as well as ADT.
  57. This contains project specific properties such as project target, and library
  58. dependencies. Lower level build properties are stored in ant.properties
  59. (or in .classpath for Eclipse projects).
  60. This file is an integral part of the build system for your
  61. application and should be checked into Version Control Systems. -->
  62. <loadproperties srcFile="project.properties" />
  63. <!-- quick check on sdk.dir -->
  64. <fail
  65. message="sdk.dir is missing. Make sure to generate local.properties using 'android update project'"
  66. unless="sdk.dir"
  67. />
  68. <!-- version-tag: custom -->
  69. <!-- extension targets. Uncomment the ones where you want to do custom work
  70. in between standard targets -->
  71. <!--
  72. <target name="-pre-build">
  73. </target>
  74. <target name="-pre-compile">
  75. </target>
  76. /* This is typically used for code obfuscation.
  77. Compiled code location: ${out.classes.absolute.dir}
  78. If this is not done in place, override ${out.dex.input.absolute.dir} */
  79. <target name="-post-compile">
  80. </target>
  81. -->
  82. <target name="-pre-clean">
  83. <!-- delete generated javadoc -->
  84. <delete dir="javadoc-public" failonerror="false" />
  85. <delete dir="javadoc-private" failonerror="false" />
  86. <!-- delete generated jar -->
  87. <delete file="cordova-${version}.jar" failonerror="false" />
  88. </target>
  89. <!-- Import the actual build file.
  90. To customize existing targets, there are two options:
  91. - Customize only one target:
  92. - copy/paste the target into this file, *before* the
  93. <import> task.
  94. - customize it to your needs.
  95. - Customize the whole content of build.xml
  96. - copy/paste the content of the rules files (minus the top node)
  97. into this file, replacing the <import> task.
  98. - customize to your needs.
  99. ***********************
  100. ****** IMPORTANT ******
  101. ***********************
  102. In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
  103. in order to avoid having your file be overridden by tools such as "android update project"
  104. -->
  105. <import file="${sdk.dir}/tools/ant/build.xml" />
  106. <!-- Build Cordova jar file that includes all native code, and Cordova JS file
  107. that includes all JavaScript code.
  108. -->
  109. <target name="jar" depends="-compile">
  110. <jar
  111. basedir="bin/classes"
  112. excludes="org/apache/cordova/R.class,org/apache/cordova/R$*.class"
  113. jarfile="cordova-${version}.jar" />
  114. </target>
  115. <target name="javadoc">
  116. <delete dir="javadoc-public" failonerror="false" />
  117. <javadoc
  118. access="public"
  119. destdir="javadoc-public"
  120. classpath="${sdk.dir}/platforms/${target}/android.jar">
  121. <packageset dir="src">
  122. <include name="org/apache/cordova/**" />
  123. </packageset>
  124. </javadoc>
  125. <delete dir="javadoc-private" failonerror="false" />
  126. <javadoc
  127. access="private"
  128. destdir="javadoc-private"
  129. classpath="${sdk.dir}/platforms/${target}/android.jar">
  130. <packageset dir="src">
  131. <include name="org/apache/cordova/**" />
  132. </packageset>
  133. </javadoc>
  134. </target>
  135. <!-- tests for Java files -->
  136. <property name="test.dir" location="test/org/apache/cordova" />
  137. <path id="test.classpath">
  138. <!-- requires both junit and cordova -->
  139. <pathelement location="libs/junit-4.10.jar" />
  140. <pathelement location="cordova-${version}.jar" />
  141. <pathelement location="${test.dir}" />
  142. </path>
  143. <target name="compile-test">
  144. <javac srcdir="${test.dir}" >
  145. <classpath refid="test.classpath" />
  146. </javac>
  147. </target>
  148. <target name="test" depends="jar, compile-test">
  149. <junit showoutput="true">
  150. <classpath refid="test.classpath" />
  151. <formatter type="brief" usefile="false" />
  152. <batchtest fork="yes">
  153. <fileset dir="${test.dir}">
  154. <include name="*Test.java" />
  155. <include name="**/*Test.java" />
  156. </fileset>
  157. </batchtest>
  158. </junit>
  159. </target>
  160. <target name="cordova_debug" depends="debug">
  161. </target>
  162. <target name="cordova_release" depends="release">
  163. </target>
  164. </project>