ant.pom 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one or more
  4. contributor license agreements. See the NOTICE file distributed with
  5. this work for additional information regarding copyright ownership.
  6. The ASF licenses this file to You under the Apache License, Version 2.0
  7. (the "License"); you may not use this file except in compliance with
  8. the License. You may obtain a copy of the License at
  9. http://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS,
  12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. See the License for the specific language governing permissions and
  14. limitations under the License.
  15. -->
  16. <!--
  17. This POM has been created manually by the Ant Development Team.
  18. Please contact us if you are not satisfied with the data contained in this POM.
  19. URL : http://ant.apache.org
  20. -->
  21. <project xmlns="http://maven.apache.org/POM/4.0.0"
  22. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  23. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  24. <parent>
  25. <groupId>org.apache.ant</groupId>
  26. <artifactId>ant-parent</artifactId>
  27. <relativePath>../pom.xml</relativePath>
  28. <version>1.10.5</version>
  29. </parent>
  30. <modelVersion>4.0.0</modelVersion>
  31. <url>http://ant.apache.org/</url>
  32. <groupId>org.apache.ant</groupId>
  33. <artifactId>ant</artifactId>
  34. <version>1.10.5</version>
  35. <name>Apache Ant Core</name>
  36. <dependencies>
  37. <dependency>
  38. <groupId>org.apache.ant</groupId>
  39. <artifactId>ant-launcher</artifactId>
  40. <version>1.10.5</version>
  41. <scope>compile</scope>
  42. </dependency>
  43. <dependency>
  44. <groupId>junit</groupId>
  45. <artifactId>junit</artifactId>
  46. <version>4.12</version>
  47. <scope>test</scope>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.hamcrest</groupId>
  51. <artifactId>hamcrest-library</artifactId>
  52. <version>1.3</version>
  53. <scope>test</scope>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.apache.ant</groupId>
  57. <artifactId>ant-antunit</artifactId>
  58. <version>1.3</version>
  59. <scope>test</scope>
  60. <exclusions>
  61. <exclusion>
  62. <groupId>org.apache.ant</groupId>
  63. <artifactId>ant</artifactId>
  64. </exclusion>
  65. <exclusion>
  66. <groupId>org.apache.ant</groupId>
  67. <artifactId>ant-launcher</artifactId>
  68. </exclusion>
  69. </exclusions>
  70. </dependency>
  71. </dependencies>
  72. <build>
  73. <filters>
  74. <filter>../../../../target/ant/.build.timestamp.properties</filter>
  75. </filters>
  76. <plugins>
  77. <plugin>
  78. <groupId>org.apache.maven.plugins</groupId>
  79. <artifactId>maven-jar-plugin</artifactId>
  80. <configuration> </configuration>
  81. </plugin>
  82. <plugin>
  83. <artifactId>maven-antrun-plugin</artifactId>
  84. <executions>
  85. <execution>
  86. <id>create-timestamp-file</id>
  87. <phase>generate-resources</phase>
  88. <goals>
  89. <goal>run</goal>
  90. </goals>
  91. <configuration>
  92. <tasks>
  93. <tstamp/>
  94. <mkdir dir="${project.build.directory}"/>
  95. <touch file="${project.build.directory}/.build.timestamp.properties"/>
  96. <echo file="${project.build.directory}/.build.timestamp.properties" append="false"
  97. message="TODAY=${TODAY}"/>
  98. </tasks>
  99. </configuration>
  100. </execution>
  101. <execution>
  102. <id>delete-timestamp-file</id>
  103. <phase>clean</phase>
  104. <goals>
  105. <goal>run</goal>
  106. </goals>
  107. <configuration>
  108. <tasks>
  109. <delete file="${project.build.directory}/.build.timestamp.properties"/>
  110. </tasks>
  111. </configuration>
  112. </execution>
  113. </executions>
  114. </plugin>
  115. <plugin>
  116. <groupId>org.apache.maven.plugins</groupId>
  117. <artifactId>maven-compiler-plugin</artifactId>
  118. <configuration>
  119. <excludes>
  120. <exclude>org/apache/tools/ant/filters/util/JavaClassHelper*</exclude>
  121. <exclude>org/apache/tools/ant/filters/util/JavaClassHelper*</exclude>
  122. <exclude>org/apache/tools/ant/launch/**</exclude>
  123. <exclude>org/apache/tools/ant/listener/CommonsLoggingListener*</exclude>
  124. <exclude>org/apache/tools/ant/listener/Log4jListener*</exclude>
  125. <exclude>org/apache/tools/ant/taskdefs/email/MimeMailer*</exclude>
  126. <exclude>org/apache/tools/ant/taskdefs/optional/NetRexxC*</exclude>
  127. <exclude>org/apache/tools/ant/taskdefs/optional/Script*</exclude>
  128. <exclude>org/apache/tools/ant/taskdefs/optional/Xalan2TraceSupport*</exclude>
  129. <exclude>org/apache/tools/ant/taskdefs/optional/image/*</exclude>
  130. <exclude>org/apache/tools/ant/taskdefs/optional/jdepend/*</exclude>
  131. <exclude>org/apache/tools/ant/taskdefs/optional/junit/*</exclude>
  132. <exclude>org/apache/tools/ant/taskdefs/optional/junitlauncher/*</exclude>
  133. <exclude>org/apache/tools/ant/taskdefs/optional/net/FTP*</exclude>
  134. <exclude>org/apache/tools/ant/taskdefs/optional/net/RExec*</exclude>
  135. <exclude>org/apache/tools/ant/taskdefs/optional/net/TelnetTask*</exclude>
  136. <exclude>org/apache/tools/ant/taskdefs/optional/script/**</exclude>
  137. <exclude>org/apache/tools/ant/taskdefs/optional/ssh/*</exclude>
  138. <exclude>org/apache/tools/ant/taskdefs/optional/xz/*</exclude>
  139. <exclude>org/apache/tools/ant/types/optional/*Script*</exclude>
  140. <exclude>org/apache/tools/ant/types/optional/image/*</exclude>
  141. <exclude>org/apache/tools/ant/types/optional/xz/*</exclude>
  142. <exclude>org/apache/tools/ant/types/resolver/**</exclude>
  143. <exclude>org/apache/tools/ant/util/ScriptRunner.java</exclude>
  144. <exclude>org/apache/tools/ant/util/depend/bcel/*</exclude>
  145. <exclude>org/apache/tools/ant/util/optional/ScriptRunner.java</exclude>
  146. <exclude>org/apache/tools/ant/util/regexp/JakartaOro*</exclude>
  147. <exclude>org/apache/tools/ant/util/regexp/JakartaRegexp*</exclude>
  148. </excludes>
  149. <testExcludes>
  150. <exclude>org/apache/tools/ant/filters/util/JavaClassHelper*</exclude>
  151. <exclude>org/apache/tools/ant/launch/**</exclude>
  152. <exclude>org/apache/tools/ant/listener/CommonsLoggingListener*</exclude>
  153. <exclude>org/apache/tools/ant/listener/Log4jListener*</exclude>
  154. <exclude>org/apache/tools/ant/taskdefs/StyleTest*</exclude>
  155. <exclude>org/apache/tools/ant/taskdefs/email/MimeMailer*</exclude>
  156. <exclude>org/apache/tools/ant/taskdefs/optional/junit/</exclude>
  157. <exclude>org/apache/tools/ant/taskdefs/optional/junitlauncher/</exclude>
  158. <exclude>org/apache/tools/ant/taskdefs/optional/net/FTP*</exclude>
  159. <exclude>org/apache/tools/ant/taskdefs/optional/ssh/*</exclude>
  160. <exclude>org/apache/tools/ant/types/resolver/**</exclude>
  161. <exclude>org/apache/tools/ant/util/Script*</exclude>
  162. <exclude>org/apache/tools/ant/util/regexp/JakartaOro*</exclude>
  163. <exclude>org/apache/tools/ant/util/regexp/JakartaRegexp*</exclude>
  164. <exclude>org/apache/tools/ant/util/regexp/Jdk14Regexp*</exclude>
  165. </testExcludes>
  166. </configuration>
  167. </plugin>
  168. <plugin>
  169. <groupId>org.apache.maven.plugins</groupId>
  170. <artifactId>maven-surefire-plugin</artifactId>
  171. <configuration>
  172. <basedir>../../../..</basedir>
  173. <systemProperties>
  174. <property>
  175. <name>ant.home</name>
  176. <value>${env.ANT_HOME}</value>
  177. </property>
  178. <property>
  179. <name>build.tests</name>
  180. <value>../../../../target/ant/testcases</value>
  181. </property>
  182. <property>
  183. <name>build.tests.value</name>
  184. <value>../../../../target/ant/testcases</value>
  185. </property>
  186. <property>
  187. <name>offline</name>
  188. <value>true</value>
  189. </property>
  190. </systemProperties>
  191. </configuration>
  192. </plugin>
  193. <plugin>
  194. <groupId>org.apache.maven.plugins</groupId>
  195. <artifactId>maven-surefire-report-plugin</artifactId>
  196. </plugin>
  197. </plugins>
  198. <resources>
  199. <resource>
  200. <directory>../../../../src/main</directory>
  201. <filtering>true</filtering>
  202. <includes>
  203. <include>org/apache/tools/ant/taskdefs/default.properties</include>
  204. <include>org/apache/tools/ant/types/default.properties</include>
  205. <include>org/apache/tools/ant/taskdefs/default.properties</include>
  206. <include>org/apache/tools/ant/types/conditions/antlib.xml</include>
  207. <include>org/apache/tools/ant/defaultManifest.mf</include>
  208. <include>org/apache/tools/ant/version.txt</include>
  209. </includes>
  210. </resource>
  211. <resource>
  212. <directory>../../../../src/resources</directory>
  213. <filtering>true</filtering>
  214. <includes>
  215. <include>**/antlib.xml</include>
  216. </includes>
  217. </resource>
  218. <resource>
  219. <directory>../../../../docs</directory>
  220. <filtering>false</filtering>
  221. <includes>
  222. <include>images/ant_logo_large.gif</include>
  223. </includes>
  224. </resource>
  225. </resources>
  226. <testResources>
  227. <testResource>
  228. <directory>../../../../src/etc/testcases</directory>
  229. <filtering>true</filtering>
  230. </testResource>
  231. <testResource>
  232. <directory>../../../../src/main</directory>
  233. <filtering>true</filtering>
  234. <excludes>
  235. <exclude>**/*.java</exclude>
  236. </excludes>
  237. </testResource>
  238. </testResources>
  239. <sourceDirectory>../../../../src/main</sourceDirectory>
  240. <testSourceDirectory>../../../../src/tests/junit</testSourceDirectory>
  241. <outputDirectory>../../../../target/ant/classes</outputDirectory>
  242. <testOutputDirectory>../../../../target/ant/testcases</testOutputDirectory>
  243. <directory>../../../../target/ant</directory>
  244. </build>
  245. </project>