ant.pom 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  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.9.7</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.9.7</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.9.7</version>
  41. <scope>compile</scope>
  42. </dependency>
  43. <dependency>
  44. <groupId>junit</groupId>
  45. <artifactId>junit</artifactId>
  46. <version>4.11</version>
  47. <scope>test</scope>
  48. </dependency>
  49. </dependencies>
  50. <build>
  51. <filters>
  52. <filter>../../../../target/ant/.build.timestamp.properties</filter>
  53. </filters>
  54. <plugins>
  55. <plugin>
  56. <groupId>org.apache.maven.plugins</groupId>
  57. <artifactId>maven-jar-plugin</artifactId>
  58. <configuration> </configuration>
  59. </plugin>
  60. <plugin>
  61. <artifactId>maven-antrun-plugin</artifactId>
  62. <executions>
  63. <execution>
  64. <id>create-timestamp-file</id>
  65. <phase>generate-resources</phase>
  66. <goals>
  67. <goal>run</goal>
  68. </goals>
  69. <configuration>
  70. <tasks>
  71. <tstamp/>
  72. <mkdir dir="${project.build.directory}"/>
  73. <touch file="${project.build.directory}/.build.timestamp.properties"/>
  74. <echo file="${project.build.directory}/.build.timestamp.properties" append="false"
  75. message="TODAY=${TODAY}"/>
  76. </tasks>
  77. </configuration>
  78. </execution>
  79. <execution>
  80. <id>delete-timestamp-file</id>
  81. <phase>clean</phase>
  82. <goals>
  83. <goal>run</goal>
  84. </goals>
  85. <configuration>
  86. <tasks>
  87. <delete file="${project.build.directory}/.build.timestamp.properties"/>
  88. </tasks>
  89. </configuration>
  90. </execution>
  91. </executions>
  92. </plugin>
  93. <plugin>
  94. <groupId>org.apache.maven.plugins</groupId>
  95. <artifactId>maven-compiler-plugin</artifactId>
  96. <configuration>
  97. <excludes>
  98. <exclude>org/apache/tools/ant/filters/util/JavaClassHelper*</exclude>
  99. <exclude>org/apache/tools/ant/types/resolver/**</exclude>
  100. <exclude>org/apache/tools/ant/listener/Log4jListener*</exclude>
  101. <exclude>org/apache/tools/ant/listener/CommonsLoggingListener*</exclude>
  102. <exclude>org/apache/tools/ant/util/regexp/JakartaRegexp*</exclude>
  103. <exclude>org/apache/tools/ant/util/regexp/JakartaOro*</exclude>
  104. <exclude>org/apache/tools/ant/taskdefs/email/MimeMailer*</exclude>
  105. <exclude>org/apache/tools/ant/launch/**</exclude>
  106. <exclude>org/apache/tools/ant/taskdefs/optional/net/FTP*</exclude>
  107. <exclude>org/apache/tools/ant/taskdefs/optional/net/RExec*</exclude>
  108. <exclude>org/apache/tools/ant/taskdefs/optional/net/TelnetTask*</exclude>
  109. <exclude>org/apache/tools/ant/taskdefs/optional/junit/*</exclude>
  110. <exclude>org/apache/tools/ant/taskdefs/optional/ssh/*</exclude>
  111. <exclude>org/apache/tools/ant/taskdefs/optional/image/*</exclude>
  112. <exclude>org/apache/tools/ant/types/optional/image/*</exclude>
  113. <exclude>org/apache/tools/ant/taskdefs/optional/Script*</exclude>
  114. <exclude>org/apache/tools/ant/taskdefs/optional/script/**</exclude>
  115. <exclude>org/apache/tools/ant/types/optional/*Script*</exclude>
  116. <exclude>org/apache/tools/ant/util/ScriptRunner.java</exclude>
  117. <exclude>org/apache/tools/ant/util/optional/ScriptRunner.java</exclude>
  118. <exclude>org/apache/tools/ant/filters/util/JavaClassHelper*</exclude>
  119. <exclude>org/apache/tools/ant/util/depend/bcel/*</exclude>
  120. <exclude>org/apache/tools/ant/taskdefs/optional/NetRexxC*</exclude>
  121. <exclude>org/apache/tools/ant/taskdefs/optional/Xalan2TraceSupport*</exclude>
  122. <exclude>org/apache/tools/ant/taskdefs/optional/jdepend/*</exclude>
  123. </excludes>
  124. <testExcludes>
  125. <exclude>org/apache/tools/ant/filters/util/JavaClassHelper*</exclude>
  126. <exclude>org/apache/tools/ant/types/resolver/**</exclude>
  127. <exclude>org/apache/tools/ant/util/Script*</exclude>
  128. <exclude>org/apache/tools/ant/listener/Log4jListener*</exclude>
  129. <exclude>org/apache/tools/ant/listener/CommonsLoggingListener*</exclude>
  130. <exclude>org/apache/tools/ant/util/regexp/JakartaRegexp*</exclude>
  131. <exclude>org/apache/tools/ant/util/regexp/JakartaOro*</exclude>
  132. <exclude>org/apache/tools/ant/util/regexp/Jdk14Regexp*</exclude>
  133. <exclude>org/apache/tools/ant/taskdefs/email/MimeMailer*</exclude>
  134. <exclude>org/apache/tools/ant/launch/**</exclude>
  135. <exclude>org/apache/tools/ant/taskdefs/StyleTest*</exclude>
  136. <exclude>org/apache/tools/ant/taskdefs/optional/junit/</exclude>
  137. <exclude>org/apache/tools/ant/taskdefs/optional/net/FTP*</exclude>
  138. <exclude>org/apache/tools/ant/taskdefs/optional/ssh/*</exclude>
  139. </testExcludes>
  140. </configuration>
  141. </plugin>
  142. <plugin>
  143. <groupId>org.apache.maven.plugins</groupId>
  144. <artifactId>maven-surefire-plugin</artifactId>
  145. <configuration>
  146. <omitBasedir>true</omitBasedir>
  147. <systemProperties>
  148. <property>
  149. <name>ant.home</name>
  150. <value>${env.ANT_HOME}</value>
  151. </property>
  152. <property>
  153. <name>build.tests</name>
  154. <value>../../../../target/ant/testcases</value>
  155. </property>
  156. <property>
  157. <name>build.tests.value</name>
  158. <value>../../../../target/ant/testcases</value>
  159. </property>
  160. <property>
  161. <name>offline</name>
  162. <value>true</value>
  163. </property>
  164. <property>
  165. <name>root</name>
  166. <value>../../../..</value>
  167. </property>
  168. </systemProperties>
  169. </configuration>
  170. </plugin>
  171. <plugin>
  172. <groupId>org.apache.maven.plugins</groupId>
  173. <artifactId>maven-surefire-report-plugin</artifactId>
  174. </plugin>
  175. </plugins>
  176. <resources>
  177. <resource>
  178. <directory>../../../../src/main</directory>
  179. <filtering>true</filtering>
  180. <includes>
  181. <include>org/apache/tools/ant/taskdefs/default.properties</include>
  182. <include>org/apache/tools/ant/types/default.properties</include>
  183. <include>org/apache/tools/ant/taskdefs/default.properties</include>
  184. <include>org/apache/tools/ant/types/conditions/antlib.xml</include>
  185. <include>org/apache/tools/ant/defaultManifest.mf</include>
  186. <include>org/apache/tools/ant/version.txt</include>
  187. </includes>
  188. </resource>
  189. <resource>
  190. <directory>../../../../src/resources</directory>
  191. <filtering>true</filtering>
  192. <includes>
  193. <include>**/antlib.xml</include>
  194. </includes>
  195. </resource>
  196. <resource>
  197. <directory>../../../../docs</directory>
  198. <filtering>false</filtering>
  199. <includes>
  200. <include>images/ant_logo_large.gif</include>
  201. </includes>
  202. </resource>
  203. </resources>
  204. <testResources>
  205. <testResource>
  206. <directory>../../../../src/etc/testcases</directory>
  207. <filtering>true</filtering>
  208. </testResource>
  209. <testResource>
  210. <directory>../../../../src/main</directory>
  211. <filtering>true</filtering>
  212. <excludes>
  213. <exclude>**/*.java</exclude>
  214. </excludes>
  215. </testResource>
  216. </testResources>
  217. <sourceDirectory>../../../../src/main</sourceDirectory>
  218. <testSourceDirectory>../../../../src/tests/junit</testSourceDirectory>
  219. <outputDirectory>../../../../target/ant/classes</outputDirectory>
  220. <testOutputDirectory>../../../../target/ant/testcases</testOutputDirectory>
  221. <directory>../../../../target/ant</directory>
  222. </build>
  223. </project>