ant.pom 9.4 KB

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