tetra 0.46.0 → 0.48.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (223) hide show
  1. data/.rubocop.yml +6 -0
  2. data/README.md +5 -12
  3. data/SPECIAL_CASES.md +3 -74
  4. data/integration-tests/build-commons.sh +5 -8
  5. data/lib/template/kit/CONTENTS +4 -3
  6. data/lib/template/kit/apache-ant-1.9.4/INSTALL +2 -0
  7. data/lib/template/kit/apache-ant-1.9.4/KEYS +1497 -0
  8. data/lib/template/kit/apache-ant-1.9.4/LICENSE +272 -0
  9. data/lib/template/kit/apache-ant-1.9.4/NOTICE +9 -0
  10. data/lib/template/kit/apache-ant-1.9.4/README +97 -0
  11. data/lib/template/kit/apache-ant-1.9.4/WHATSNEW +6108 -0
  12. data/lib/template/kit/apache-ant-1.9.4/bin/ant +336 -0
  13. data/lib/template/kit/apache-ant-1.9.4/bin/ant.bat +218 -0
  14. data/lib/template/kit/apache-ant-1.9.4/bin/ant.cmd +93 -0
  15. data/lib/template/kit/apache-ant-1.9.4/bin/antRun +24 -0
  16. data/lib/template/kit/apache-ant-1.9.4/bin/antRun.bat +50 -0
  17. data/lib/template/kit/apache-ant-1.9.4/bin/antRun.pl +66 -0
  18. data/lib/template/kit/apache-ant-1.9.4/bin/antenv.cmd +98 -0
  19. data/lib/template/kit/apache-ant-1.9.4/bin/complete-ant-cmd.pl +114 -0
  20. data/lib/template/kit/apache-ant-1.9.4/bin/envset.cmd +131 -0
  21. data/lib/template/kit/apache-ant-1.9.4/bin/lcp.bat +31 -0
  22. data/lib/template/kit/apache-ant-1.9.4/bin/runant.pl +153 -0
  23. data/lib/template/kit/apache-ant-1.9.4/bin/runant.py +102 -0
  24. data/lib/template/kit/apache-ant-1.9.4/bin/runrc.cmd +60 -0
  25. data/lib/template/kit/apache-ant-1.9.4/etc/ant-bootstrap.jar +0 -0
  26. data/lib/template/kit/apache-ant-1.9.4/etc/changelog.xsl +148 -0
  27. data/lib/template/kit/apache-ant-1.9.4/etc/checkstyle/checkstyle-frames.xsl +299 -0
  28. data/lib/template/kit/apache-ant-1.9.4/etc/checkstyle/checkstyle-text.xsl +34 -0
  29. data/lib/template/kit/apache-ant-1.9.4/etc/checkstyle/checkstyle-xdoc.xsl +130 -0
  30. data/lib/template/kit/apache-ant-1.9.4/etc/coverage-frames.xsl +489 -0
  31. data/lib/template/kit/apache-ant-1.9.4/etc/jdepend-frames.xsl +487 -0
  32. data/lib/template/kit/apache-ant-1.9.4/etc/jdepend.xsl +276 -0
  33. data/lib/template/kit/apache-ant-1.9.4/etc/junit-frames-xalan1.xsl +745 -0
  34. data/lib/template/kit/apache-ant-1.9.4/etc/junit-frames.xsl +955 -0
  35. data/lib/template/kit/apache-ant-1.9.4/etc/junit-noframes.xsl +496 -0
  36. data/lib/template/kit/apache-ant-1.9.4/etc/log.xsl +203 -0
  37. data/lib/template/kit/apache-ant-1.9.4/etc/maudit-frames.xsl +503 -0
  38. data/lib/template/kit/apache-ant-1.9.4/etc/mmetrics-frames.xsl +1026 -0
  39. data/lib/template/kit/apache-ant-1.9.4/etc/tagdiff.xsl +179 -0
  40. data/lib/template/kit/apache-ant-1.9.4/fetch.xml +335 -0
  41. data/lib/template/kit/apache-ant-1.9.4/get-m2.xml +121 -0
  42. data/lib/template/kit/apache-ant-1.9.4/lib/README +3 -0
  43. data/lib/template/kit/apache-ant-1.9.4/lib/ant-antlr.jar +0 -0
  44. data/lib/template/kit/apache-ant-1.9.4/lib/ant-antlr.pom +75 -0
  45. data/lib/template/kit/apache-ant-1.9.4/lib/ant-apache-bcel.jar +0 -0
  46. data/lib/template/kit/apache-ant-1.9.4/lib/ant-apache-bcel.pom +71 -0
  47. data/lib/template/kit/apache-ant-1.9.4/lib/ant-apache-bsf.jar +0 -0
  48. data/lib/template/kit/apache-ant-1.9.4/lib/ant-apache-bsf.pom +74 -0
  49. data/lib/template/kit/apache-ant-1.9.4/lib/ant-apache-log4j.jar +0 -0
  50. data/lib/template/kit/apache-ant-1.9.4/lib/ant-apache-log4j.pom +69 -0
  51. data/lib/template/kit/apache-ant-1.9.4/lib/ant-apache-oro.jar +0 -0
  52. data/lib/template/kit/apache-ant-1.9.4/lib/ant-apache-oro.pom +74 -0
  53. data/lib/template/kit/apache-ant-1.9.4/lib/ant-apache-regexp.jar +0 -0
  54. data/lib/template/kit/apache-ant-1.9.4/lib/ant-apache-regexp.pom +70 -0
  55. data/lib/template/kit/apache-ant-1.9.4/lib/ant-apache-resolver.jar +0 -0
  56. data/lib/template/kit/apache-ant-1.9.4/lib/ant-apache-resolver.pom +69 -0
  57. data/lib/template/kit/apache-ant-1.9.4/lib/ant-apache-xalan2.jar +0 -0
  58. data/lib/template/kit/apache-ant-1.9.4/lib/ant-apache-xalan2.pom +94 -0
  59. data/lib/template/kit/apache-ant-1.9.4/lib/ant-commons-logging.jar +0 -0
  60. data/lib/template/kit/apache-ant-1.9.4/lib/ant-commons-logging.pom +70 -0
  61. data/lib/template/kit/apache-ant-1.9.4/lib/ant-commons-net.jar +0 -0
  62. data/lib/template/kit/apache-ant-1.9.4/lib/ant-commons-net.pom +75 -0
  63. data/lib/template/kit/apache-ant-1.9.4/lib/ant-jai.jar +0 -0
  64. data/lib/template/kit/apache-ant-1.9.4/lib/ant-jai.pom +85 -0
  65. data/lib/template/kit/apache-ant-1.9.4/lib/ant-javamail.jar +0 -0
  66. data/lib/template/kit/apache-ant-1.9.4/lib/ant-javamail.pom +78 -0
  67. data/lib/template/kit/apache-ant-1.9.4/lib/ant-jdepend.jar +0 -0
  68. data/lib/template/kit/apache-ant-1.9.4/lib/ant-jdepend.pom +72 -0
  69. data/lib/template/kit/apache-ant-1.9.4/lib/ant-jmf.jar +0 -0
  70. data/lib/template/kit/apache-ant-1.9.4/lib/ant-jmf.pom +65 -0
  71. data/lib/template/kit/apache-ant-1.9.4/lib/ant-jsch.jar +0 -0
  72. data/lib/template/kit/apache-ant-1.9.4/lib/ant-jsch.pom +74 -0
  73. data/lib/template/kit/apache-ant-1.9.4/lib/ant-junit.jar +0 -0
  74. data/lib/template/kit/apache-ant-1.9.4/lib/ant-junit.pom +101 -0
  75. data/lib/template/kit/apache-ant-1.9.4/lib/ant-junit4.jar +0 -0
  76. data/lib/template/kit/apache-ant-1.9.4/lib/ant-junit4.pom +71 -0
  77. data/lib/template/kit/apache-ant-1.9.4/lib/ant-launcher.jar +0 -0
  78. data/lib/template/kit/apache-ant-1.9.4/lib/ant-launcher.pom +57 -0
  79. data/lib/template/kit/apache-ant-1.9.4/lib/ant-netrexx.jar +0 -0
  80. data/lib/template/kit/apache-ant-1.9.4/lib/ant-netrexx.pom +98 -0
  81. data/lib/template/kit/apache-ant-1.9.4/lib/ant-parent.pom +151 -0
  82. data/lib/template/kit/apache-ant-1.9.4/lib/ant-swing.jar +0 -0
  83. data/lib/template/kit/apache-ant-1.9.4/lib/ant-swing.pom +66 -0
  84. data/lib/template/kit/apache-ant-1.9.4/lib/ant-testutil.jar +0 -0
  85. data/lib/template/kit/apache-ant-1.9.4/lib/ant-testutil.pom +74 -0
  86. data/lib/template/kit/apache-ant-1.9.4/lib/ant.jar +0 -0
  87. data/lib/template/kit/apache-ant-1.9.4/lib/ant.pom +225 -0
  88. data/lib/template/kit/apache-ant-1.9.4/lib/libraries.properties +65 -0
  89. data/lib/template/kit/apache-maven-3.2.5/LICENSE +302 -0
  90. data/lib/template/kit/apache-maven-3.2.5/NOTICE +8 -0
  91. data/lib/template/kit/apache-maven-3.2.5/README.txt +77 -0
  92. data/lib/template/kit/apache-maven-3.2.5/bin/m2.conf +8 -0
  93. data/lib/template/kit/apache-maven-3.2.5/bin/mvn +202 -0
  94. data/lib/template/kit/apache-maven-3.2.5/bin/mvn.bat +197 -0
  95. data/lib/template/kit/apache-maven-3.2.5/bin/mvnDebug +200 -0
  96. data/lib/template/kit/apache-maven-3.2.5/bin/mvnDebug.bat +200 -0
  97. data/lib/template/kit/apache-maven-3.2.5/bin/mvnyjp +207 -0
  98. data/lib/template/kit/apache-maven-3.2.5/boot/plexus-classworlds-2.5.2.jar +0 -0
  99. data/lib/template/kit/apache-maven-3.2.5/conf/logging/simplelogger.properties +25 -0
  100. data/lib/template/kit/apache-maven-3.2.5/conf/settings.xml +257 -0
  101. data/lib/template/kit/apache-maven-3.2.5/lib/aether-api-1.0.0.v20140518.jar +0 -0
  102. data/lib/template/kit/apache-maven-3.2.5/lib/aether-api.license +261 -0
  103. data/lib/template/kit/apache-maven-3.2.5/lib/aether-connector-basic-1.0.0.v20140518.jar +0 -0
  104. data/lib/template/kit/apache-maven-3.2.5/lib/aether-connector-basic.license +261 -0
  105. data/lib/template/kit/apache-maven-3.2.5/lib/aether-impl-1.0.0.v20140518.jar +0 -0
  106. data/lib/template/kit/apache-maven-3.2.5/lib/aether-impl.license +261 -0
  107. data/lib/template/kit/apache-maven-3.2.5/lib/aether-spi-1.0.0.v20140518.jar +0 -0
  108. data/lib/template/kit/apache-maven-3.2.5/lib/aether-spi.license +261 -0
  109. data/lib/template/kit/apache-maven-3.2.5/lib/aether-transport-wagon-1.0.0.v20140518.jar +0 -0
  110. data/lib/template/kit/apache-maven-3.2.5/lib/aether-transport-wagon.license +261 -0
  111. data/lib/template/kit/apache-maven-3.2.5/lib/aether-util-1.0.0.v20140518.jar +0 -0
  112. data/lib/template/kit/apache-maven-3.2.5/lib/aether-util.license +261 -0
  113. data/lib/template/kit/apache-maven-3.2.5/lib/aopalliance-1.0.jar +0 -0
  114. data/lib/template/kit/apache-maven-3.2.5/lib/cdi-api-1.0.jar +0 -0
  115. data/lib/template/kit/apache-maven-3.2.5/lib/cdi-api.license +445 -0
  116. data/lib/template/kit/apache-maven-3.2.5/lib/commons-cli-1.2.jar +0 -0
  117. data/lib/template/kit/apache-maven-3.2.5/lib/commons-io-2.2.jar +0 -0
  118. data/lib/template/kit/apache-maven-3.2.5/lib/commons-lang-2.6.jar +0 -0
  119. data/lib/template/kit/apache-maven-3.2.5/lib/ext/README.txt +2 -0
  120. data/lib/template/kit/apache-maven-3.2.5/lib/guava-18.0.jar +0 -0
  121. data/lib/template/kit/apache-maven-3.2.5/lib/javax.inject-1.jar +0 -0
  122. data/lib/template/kit/apache-maven-3.2.5/lib/jsoup-1.7.2.jar +0 -0
  123. data/lib/template/kit/apache-maven-3.2.5/lib/jsoup.license +66 -0
  124. data/lib/template/kit/apache-maven-3.2.5/lib/jsr250-api-1.0.jar +0 -0
  125. data/lib/template/kit/apache-maven-3.2.5/lib/jsr250-api.license +406 -0
  126. data/lib/template/kit/apache-maven-3.2.5/lib/maven-aether-provider-3.2.5.jar +0 -0
  127. data/lib/template/kit/apache-maven-3.2.5/lib/maven-aether-provider.license +202 -0
  128. data/lib/template/kit/apache-maven-3.2.5/lib/maven-artifact-3.2.5.jar +0 -0
  129. data/lib/template/kit/apache-maven-3.2.5/lib/maven-artifact.license +202 -0
  130. data/lib/template/kit/apache-maven-3.2.5/lib/maven-compat-3.2.5.jar +0 -0
  131. data/lib/template/kit/apache-maven-3.2.5/lib/maven-compat.license +202 -0
  132. data/lib/template/kit/apache-maven-3.2.5/lib/maven-core-3.2.5.jar +0 -0
  133. data/lib/template/kit/apache-maven-3.2.5/lib/maven-core.license +202 -0
  134. data/lib/template/kit/apache-maven-3.2.5/lib/maven-embedder-3.2.5.jar +0 -0
  135. data/lib/template/kit/apache-maven-3.2.5/lib/maven-embedder.license +202 -0
  136. data/lib/template/kit/apache-maven-3.2.5/lib/maven-model-3.2.5.jar +0 -0
  137. data/lib/template/kit/apache-maven-3.2.5/lib/maven-model-builder-3.2.5.jar +0 -0
  138. data/lib/template/kit/apache-maven-3.2.5/lib/maven-model-builder.license +202 -0
  139. data/lib/template/kit/apache-maven-3.2.5/lib/maven-model.license +202 -0
  140. data/lib/template/kit/apache-maven-3.2.5/lib/maven-plugin-api-3.2.5.jar +0 -0
  141. data/lib/template/kit/apache-maven-3.2.5/lib/maven-plugin-api.license +202 -0
  142. data/lib/template/kit/apache-maven-3.2.5/lib/maven-repository-metadata-3.2.5.jar +0 -0
  143. data/lib/template/kit/apache-maven-3.2.5/lib/maven-repository-metadata.license +202 -0
  144. data/lib/template/kit/apache-maven-3.2.5/lib/maven-settings-3.2.5.jar +0 -0
  145. data/lib/template/kit/apache-maven-3.2.5/lib/maven-settings-builder-3.2.5.jar +0 -0
  146. data/lib/template/kit/apache-maven-3.2.5/lib/maven-settings-builder.license +202 -0
  147. data/lib/template/kit/apache-maven-3.2.5/lib/maven-settings.license +202 -0
  148. data/lib/template/kit/apache-maven-3.2.5/lib/org.eclipse.sisu.inject-0.3.0.M1.jar +0 -0
  149. data/lib/template/kit/apache-maven-3.2.5/lib/org.eclipse.sisu.inject.license +261 -0
  150. data/lib/template/kit/apache-maven-3.2.5/lib/org.eclipse.sisu.plexus-0.3.0.M1.jar +0 -0
  151. data/lib/template/kit/apache-maven-3.2.5/lib/org.eclipse.sisu.plexus.license +261 -0
  152. data/lib/template/kit/apache-maven-3.2.5/lib/plexus-cipher-1.7.jar +0 -0
  153. data/lib/template/kit/apache-maven-3.2.5/lib/plexus-cipher.license +445 -0
  154. data/lib/template/kit/apache-maven-3.2.5/lib/plexus-component-annotations-1.5.5.jar +0 -0
  155. data/lib/template/kit/apache-maven-3.2.5/lib/plexus-interpolation-1.21.jar +0 -0
  156. data/lib/template/kit/apache-maven-3.2.5/lib/plexus-sec-dispatcher-1.3.jar +0 -0
  157. data/lib/template/kit/apache-maven-3.2.5/lib/plexus-sec-dispatcher.license +445 -0
  158. data/lib/template/kit/apache-maven-3.2.5/lib/plexus-utils-3.0.20.jar +0 -0
  159. data/lib/template/kit/apache-maven-3.2.5/lib/sisu-guice-3.2.3-no_aop.jar +0 -0
  160. data/lib/template/kit/apache-maven-3.2.5/lib/slf4j-api-1.7.5.jar +0 -0
  161. data/lib/template/kit/apache-maven-3.2.5/lib/slf4j-api.license +190 -0
  162. data/lib/template/kit/apache-maven-3.2.5/lib/slf4j-simple-1.7.5.jar +0 -0
  163. data/lib/template/kit/apache-maven-3.2.5/lib/slf4j-simple.license +190 -0
  164. data/lib/template/kit/apache-maven-3.2.5/lib/wagon-file-2.8.jar +0 -0
  165. data/lib/template/kit/apache-maven-3.2.5/lib/wagon-file.license +202 -0
  166. data/lib/template/kit/apache-maven-3.2.5/lib/wagon-http-2.8-shaded.jar +0 -0
  167. data/lib/template/kit/apache-maven-3.2.5/lib/wagon-http-shared-2.8.jar +0 -0
  168. data/lib/template/kit/apache-maven-3.2.5/lib/wagon-http-shared.license +202 -0
  169. data/lib/template/kit/apache-maven-3.2.5/lib/wagon-http.license +202 -0
  170. data/lib/template/kit/apache-maven-3.2.5/lib/wagon-provider-api-2.8.jar +0 -0
  171. data/lib/template/kit/apache-maven-3.2.5/lib/wagon-provider-api.license +202 -0
  172. data/lib/tetra.rb +30 -29
  173. data/lib/tetra/facades/ant.rb +27 -0
  174. data/lib/tetra/{git.rb → facades/git.rb} +29 -24
  175. data/lib/tetra/facades/mvn.rb +44 -0
  176. data/lib/tetra/facades/process_runner.rb +65 -0
  177. data/lib/tetra/facades/tar.rb +20 -0
  178. data/lib/tetra/{kit_runner.rb → kit.rb} +3 -10
  179. data/lib/tetra/main.rb +12 -36
  180. data/lib/tetra/maven_website.rb +1 -1
  181. data/lib/tetra/packages/archivable.rb +3 -11
  182. data/lib/tetra/packages/{kit.rb → kit_package.rb} +1 -1
  183. data/lib/tetra/packages/{built_package.rb → package.rb} +2 -2
  184. data/lib/tetra/packages/scriptable.rb +27 -15
  185. data/lib/tetra/project.rb +18 -14
  186. data/lib/tetra/{commands/ant.rb → ui/ant_subcommand.rb} +5 -5
  187. data/lib/tetra/ui/dry_run_subcommand.rb +44 -0
  188. data/lib/tetra/{commands/generate_all.rb → ui/generate_all_subcommand.rb} +5 -5
  189. data/lib/tetra/{commands/generate_archive.rb → ui/generate_archive_subcommand.rb} +2 -2
  190. data/lib/tetra/{commands/generate_kit.rb → ui/generate_kit_subcommand.rb} +2 -2
  191. data/lib/tetra/{commands/generate_script.rb → ui/generate_script_subcommand.rb} +2 -2
  192. data/lib/tetra/{commands/generate_spec.rb → ui/generate_spec_subcommand.rb} +2 -2
  193. data/lib/tetra/{commands/get_pom.rb → ui/get_pom_subcommand.rb} +1 -1
  194. data/lib/tetra/{commands/init.rb → ui/init_subcommand.rb} +1 -1
  195. data/lib/tetra/{commands/move_jars_to_kit.rb → ui/move_jars_to_kit_subcommand.rb} +1 -1
  196. data/lib/tetra/{commands/mvn.rb → ui/mvn_subcommand.rb} +5 -5
  197. data/lib/tetra/{commands/base.rb → ui/subcommand.rb} +19 -6
  198. data/lib/tetra/version.rb +1 -1
  199. data/spec/lib/ant_spec.rb +36 -0
  200. data/spec/lib/archivable_spec.rb +1 -1
  201. data/spec/lib/built_package_spec.rb +6 -6
  202. data/spec/lib/kit_package_spec.rb +47 -0
  203. data/spec/lib/kit_spec.rb +8 -28
  204. data/spec/lib/mvn_spec.rb +47 -0
  205. data/spec/lib/project_spec.rb +11 -11
  206. data/spec/lib/scriptable_spec.rb +8 -16
  207. data/spec/spec_helper.rb +13 -4
  208. data/tetra.gemspec +1 -0
  209. metadata +207 -31
  210. data/lib/tetra/ant_runner.rb +0 -27
  211. data/lib/tetra/commands/download_maven_source_jars.rb +0 -29
  212. data/lib/tetra/commands/dry_run.rb +0 -17
  213. data/lib/tetra/commands/finish.rb +0 -22
  214. data/lib/tetra/commands/get_source.rb +0 -30
  215. data/lib/tetra/commands/list_kit_missing_sources.rb +0 -21
  216. data/lib/tetra/kit_checker.rb +0 -104
  217. data/lib/tetra/maven_runner.rb +0 -43
  218. data/lib/tetra/source_getter.rb +0 -41
  219. data/spec/lib/ant_runner_spec.rb +0 -45
  220. data/spec/lib/kit_checker_spec.rb +0 -119
  221. data/spec/lib/maven_runner_spec.rb +0 -68
  222. data/spec/lib/source_getter_spec.rb +0 -36
  223. data/spec/support/kit_runner_examples.rb +0 -15
@@ -0,0 +1,179 @@
1
+ <?xml version="1.0"?>
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
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <!-- a stylesheet to display changelogs ala netbeans -->
19
+ <xsl:stylesheet
20
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
21
+ version="1.0">
22
+ <xsl:param name="title"/>
23
+ <xsl:param name="module"/>
24
+ <xsl:param name="cvsweb"/>
25
+
26
+ <xsl:output method="html" indent="yes"/>
27
+
28
+ <!-- Copy standard document elements. Elements that
29
+ should be ignored must be filtered by apply-templates
30
+ tags. -->
31
+ <xsl:template match="*">
32
+ <xsl:copy>
33
+ <xsl:copy-of select="attribute::*[. != '']"/>
34
+ <xsl:apply-templates/>
35
+ </xsl:copy>
36
+ </xsl:template>
37
+
38
+ <xsl:template match="tagdiff">
39
+ <html>
40
+ <head>
41
+ <title><xsl:value-of select="$title"/></title>
42
+ <style type="text/css">
43
+ body, p {
44
+ font-family: verdana,arial,helvetica;
45
+ font-size: 80%;
46
+ color:#000000;
47
+ }
48
+ .dateAndAuthor {
49
+ font-family: verdana,arial,helvetica;
50
+ font-size: 80%;
51
+ font-weight: bold;
52
+ text-align:left;
53
+ background:#a6caf0;
54
+ }
55
+ tr, td{
56
+ font-family: verdana,arial,helvetica;
57
+ font-size: 80%;
58
+ background:#eeeee0;
59
+ }
60
+ </style>
61
+ </head>
62
+ <body link="#000000" alink="#000000" vlink="#000000" text="#000000">
63
+ <h1>
64
+ <a name="top"><xsl:value-of select="$title"/></a>
65
+ </h1>
66
+ Tagdiff between <xsl:value-of select="@startTag"/> <xsl:value-of select="@startDate"/> and
67
+ <xsl:value-of select="@endTag"/> <xsl:value-of select="@endDate"/>
68
+ <p align="right">Designed for use with <a href="http://ant.apache.org/">Ant</a>.</p>
69
+ <hr size="2"/>
70
+ <a name="TOP"/>
71
+ <table width="100%">
72
+ <tr>
73
+ <td align="right">
74
+ <a href="#New">New Files</a> |
75
+ <a href="#Modified">Modified Files</a> |
76
+ <a href="#Removed">Removed Files</a>
77
+ </td>
78
+ </tr>
79
+ </table>
80
+ <table border="0" width="100%" cellpadding="3" cellspacing="1">
81
+ <xsl:call-template name="show-entries">
82
+ <xsl:with-param name="title">New Files</xsl:with-param>
83
+ <xsl:with-param name="anchor">New</xsl:with-param>
84
+ <xsl:with-param name="entries" select=".//entry[file/revision][not(file/prevrevision)]"/>
85
+ </xsl:call-template>
86
+
87
+ <xsl:call-template name="show-entries">
88
+ <xsl:with-param name="title">Modified Files</xsl:with-param>
89
+ <xsl:with-param name="anchor">Modified</xsl:with-param>
90
+ <xsl:with-param name="entries" select=".//entry[file/revision][file/prevrevision]"/>
91
+ </xsl:call-template>
92
+
93
+ <!-- change to entries select to address bug #36827 -->
94
+ <xsl:call-template name="show-entries">
95
+ <xsl:with-param name="title">Removed Files</xsl:with-param>
96
+ <xsl:with-param name="anchor">Removed</xsl:with-param>
97
+ <xsl:with-param name="entries" select=".//entry[not(file/revision)][file/prevrevision]"/>
98
+ </xsl:call-template>
99
+ </table>
100
+
101
+ </body>
102
+ </html>
103
+ </xsl:template>
104
+
105
+ <xsl:template name="show-entries">
106
+ <xsl:param name="title"/>
107
+ <xsl:param name="anchor"/>
108
+ <xsl:param name="entries"/>
109
+ <tr>
110
+ <td colspan="2" class="dateAndAuthor">
111
+ <a>
112
+ <xsl:attribute name="name"><xsl:value-of select="$anchor"/></xsl:attribute>
113
+ <xsl:value-of select="$title"/> - <xsl:value-of select="count($entries)"/> entries
114
+ </a>
115
+ <a href="#TOP">(back to top)</a>
116
+ </td>
117
+ </tr>
118
+ <tr>
119
+ <td width="20">
120
+ <xsl:text> </xsl:text>
121
+ </td>
122
+ <td>
123
+ <ul>
124
+ <xsl:apply-templates select="$entries"/>
125
+ </ul>
126
+ </td>
127
+ </tr>
128
+ </xsl:template>
129
+
130
+ <xsl:template match="entry">
131
+ <xsl:apply-templates select="file"/>
132
+ </xsl:template>
133
+
134
+ <xsl:template match="date">
135
+ <i><xsl:value-of select="."/></i>
136
+ </xsl:template>
137
+
138
+ <xsl:template match="time">
139
+ <i><xsl:value-of select="."/></i>
140
+ </xsl:template>
141
+
142
+ <xsl:template match="author">
143
+ <i>
144
+ <a>
145
+ <xsl:attribute name="href">mailto:<xsl:value-of select="."/></xsl:attribute>
146
+ <xsl:value-of select="."/>
147
+ </a>
148
+ </i>
149
+ </xsl:template>
150
+
151
+ <xsl:template match="file">
152
+ <li>
153
+ <a target="_new">
154
+ <xsl:attribute name="href"><xsl:value-of select="$cvsweb"/><xsl:value-of select="$module" />/<xsl:value-of select="name" /></xsl:attribute>
155
+ <xsl:value-of select="name" />
156
+ </a>
157
+ <xsl:if test="string-length(prevrevision) > 0 or string-length(revision) > 0">
158
+ <xsl:text> </xsl:text>
159
+ <a target="_new">
160
+ <xsl:choose>
161
+ <xsl:when test="string-length(prevrevision) = 0 ">
162
+ <xsl:attribute name="href"><xsl:value-of select="$cvsweb"/><xsl:value-of select="$module" />/<xsl:value-of select="name" />?rev=<xsl:value-of select="revision" />&amp;content-type=text/x-cvsweb-markup</xsl:attribute>
163
+ </xsl:when>
164
+ <xsl:otherwise>
165
+ <xsl:attribute name="href"><xsl:value-of select="$cvsweb"/><xsl:value-of select="$module" />/<xsl:value-of select="name" />?r1=<xsl:value-of select="revision" />&amp;r2=<xsl:value-of select="prevrevision"/>&amp;diff_format=h</xsl:attribute>
166
+ </xsl:otherwise>
167
+ </xsl:choose> (<xsl:if test="count(prevrevision) &gt; 0"> <xsl:value-of select="prevrevision"/> --&gt; </xsl:if> <xsl:value-of select="revision"/>)
168
+ </a>
169
+ </xsl:if>
170
+ </li>
171
+ </xsl:template>
172
+
173
+ <!-- Any elements within a msg are processed,
174
+ so that we can preserve HTML tags. -->
175
+ <xsl:template match="msg">
176
+ <b><xsl:apply-templates/></b>
177
+ </xsl:template>
178
+
179
+ </xsl:stylesheet>
@@ -0,0 +1,335 @@
1
+ <?xml version="1.0"?>
2
+
3
+ <!--
4
+ Licensed to the Apache Software Foundation (ASF) under one or more
5
+ contributor license agreements. See the NOTICE file distributed with
6
+ this work for additional information regarding copyright ownership.
7
+ The ASF licenses this file to You under the Apache License, Version 2.0
8
+ (the "License"); you may not use this file except in compliance with
9
+ the License. You may obtain a copy of the License at
10
+
11
+ http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ Unless required by applicable law or agreed to in writing, software
14
+ distributed under the License is distributed on an "AS IS" BASIS,
15
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ See the License for the specific language governing permissions and
17
+ limitations under the License.
18
+ -->
19
+ <!--
20
+ =======================================================================
21
+ Build file to fetch optional libraries for Apache Ant
22
+ =======================================================================
23
+ -->
24
+ <project name="fetch" default="all" basedir=".">
25
+
26
+ <description>
27
+ This build file downloads JAR files that optional Ant tasks use,
28
+ and installs them in a location that is accessible the next time Ant runs.
29
+
30
+ You can choose three locations, by going -Ddest=LOCATION on the command line
31
+ -Ddest=user user lib dir ${user.home}/.ant/lib
32
+ -Ddest=system ant lib dir ${ant.home}/lib
33
+ -Ddest=optional optional dir $${basedir}/lib/optional (for Ant developers)
34
+
35
+ You may also need to set proxy settings. On Java1.5, Ant tries to get
36
+ this from the OS, unless you use the -noproxy option.
37
+
38
+ Proxies can be configured manually setting the JVM proxy values in the
39
+ ANT_OPTS environment variable.
40
+
41
+ For example, to set the proxy up in the tcsh shell, the command would be
42
+ something like:
43
+
44
+ For csh/tcsh:
45
+ setenv ANT_OPTS "-Dhttp.proxyHost=proxy -Dhttp.proxyPort=8080"
46
+ For bash:
47
+ export ANT_OPTS="-Dhttp.proxyHost=proxy -Dhttp.proxyPort=8080"
48
+ For Windows, set the environment variable in the appropriate dialog box
49
+ and open a new console. or, by hand
50
+ set ANT_OPTS = -Dhttp.proxyHost=proxy -Dhttp.proxyPort=8080
51
+ </description>
52
+
53
+ <!-- Give user a chance to override without editing this file
54
+ (and without typing -D each time it compiles it) -->
55
+ <property file="${user.home}/.ant/ant.properties"/>
56
+ <property name="lib.dir" location="lib" />
57
+ <property name="optional.dir" location="${lib.dir}/optional" />
58
+ <property name="userlib.dir" location="${user.home}/.ant/lib" />
59
+
60
+ <!-- load in our properties table -->
61
+ <property file="${lib.dir}/libraries.properties"/>
62
+
63
+ <!-- Temporary cache for working files -->
64
+ <property name="temp.dir" location="${user.home}/.ant/tempcache" />
65
+ <property name="keep.temp.dir" value="true" />
66
+
67
+ <import file="get-m2.xml" />
68
+
69
+ <target name="pick-dest">
70
+ <fail>
71
+ <condition>
72
+ <not>
73
+ <isset property="dest"/>
74
+ </not>
75
+ </condition>ERROR
76
+ Set -Ddest=LOCATION on the command line
77
+ -Ddest=user user lib dir ${user.home}/.ant/lib
78
+ -Ddest=system ant lib dir ${ant.home}/lib
79
+ -Ddest=optional optional dir $${basedir}/lib/optional (for Ant developers)
80
+ </fail>
81
+
82
+ <condition property="dest.dir"
83
+ value="${lib.dir}">
84
+ <equals arg1="${dest}" arg2="system" />
85
+ </condition>
86
+ <condition property="dest.dir"
87
+ value="${optional.dir}">
88
+ <equals arg1="${dest}" arg2="optional" />
89
+ </condition>
90
+ <condition property="dest.dir"
91
+ value="${userlib.dir}">
92
+ <equals arg1="${dest}" arg2="user" />
93
+ </condition>
94
+ <fail unless="dest.dir">Unknown destination : ${dest}</fail>
95
+ <echo>Downloading to ${dest.dir}</echo>
96
+ <property name="m2.dest.dir" value="${dest.dir}" />
97
+ </target>
98
+
99
+
100
+ <target name="macros" depends="pick-dest,get-m2"
101
+ xmlns:artifact="antlib:org.apache.maven.artifact.ant">
102
+
103
+ <macrodef name="f2">
104
+ <attribute name="project" />
105
+ <attribute name="archive" default="@{project}"/>
106
+ <attribute name="repository" default="${m2.repo}"/>
107
+ <sequential>
108
+ <fail>
109
+ Unknown archive @{archive} -no property @{archive}.version defined in ${lib.dir}/libraries.properties.
110
+ <condition>
111
+ <not>
112
+ <isset property="@{archive}.version"/>
113
+ </not>
114
+ </condition>
115
+ </fail>
116
+ <artifact:dependencies pathID="@{archive}.path">
117
+ <dependency groupID="@{project}"
118
+ artifactID="@{archive}"
119
+ version="${@{archive}.version}"/>
120
+ <remoteRepository url="@{repository}" />
121
+ </artifact:dependencies>
122
+ <!-- now we are left with the problem of getting the files
123
+ into our directory -->
124
+ <copy todir="${dest.dir}">
125
+ <path refid="@{archive}.path" />
126
+ <flattenmapper/>
127
+ </copy>
128
+ </sequential>
129
+ </macrodef>
130
+ </target>
131
+
132
+ <target name="nonm2-macros" depends="pick-dest">
133
+ <macrodef name="get-ftp-file">
134
+ <attribute name="host" />
135
+ <attribute name="port" default="21"/>
136
+ <attribute name="remotedir" />
137
+ <attribute name="filename" />
138
+ <attribute name="localdir" default="${dest.dir}" />
139
+ <attribute name="user" default="anonymous"/>
140
+ <attribute name="pw" default="anonymous"/>
141
+ <sequential>
142
+ <ftp server="@{host}" port="@{port}" userid="@{user}" password="@{pw}" passive="true"
143
+ remotedir="@{remotedir}" action="get" depends="true" preserveLastModified="true"
144
+ skipFailedTransfers="true">
145
+ <fileset dir="@{localdir}">
146
+ <include name="@{filename}" />
147
+ </fileset>
148
+ </ftp>
149
+ </sequential>
150
+ </macrodef>
151
+
152
+ </target>
153
+
154
+
155
+
156
+ <!-- any init stuff -->
157
+ <target name="init" depends="macros" />
158
+
159
+ <target name="init-no-m2" depends="nonm2-macros" />
160
+
161
+ <target name="init-cache">
162
+ <available property="temp.cache.already.exists" file="${temp.dir}" type="dir" />
163
+ <condition property="user.wants.temp.cache">
164
+ <and>
165
+ <isset property="keep.temp.dir" />
166
+ <not>
167
+ <or>
168
+ <equals arg1="${keep.temp.dir}" arg2="false" casesensitive="false" />
169
+ <equals arg1="${keep.temp.dir}" arg2="no" casesensitive="false" />
170
+ <equals arg1="${keep.temp.dir}" arg2="off" casesensitive="false" />
171
+ </or>
172
+ </not>
173
+ </and>
174
+ </condition>
175
+ <condition property="delete.temp.cache">
176
+ <and>
177
+ <not>
178
+ <isset property="temp.cache.already.exists" />
179
+ </not>
180
+ <not>
181
+ <isset property="user.wants.temp.cache" />
182
+ </not>
183
+ </and>
184
+ </condition>
185
+ </target>
186
+
187
+ <target name="-setup-temp-cache" depends="init-cache" unless="temp.cache.already.exists"
188
+ description="Setup temporary cache for downloaded files">
189
+ <mkdir dir="${temp.dir}" />
190
+ </target>
191
+
192
+ <target name="-cleanup-temp-cache" depends="init-cache" if="delete.temp.cache"
193
+ description="Gets rid of the temporary cache directory">
194
+ <delete dir="${temp.dir}" />
195
+ </target>
196
+
197
+
198
+ <target name="diag" depends="init">
199
+ <echoproperties />
200
+ </target>
201
+
202
+ <target name="logging"
203
+ description="load logging libraries"
204
+ depends="init">
205
+ <f2 project="log4j" />
206
+ <f2 project="commons-logging" archive="commons-logging-api" />
207
+ </target>
208
+
209
+ <target name="junit"
210
+ description="load junit libraries"
211
+ depends="init">
212
+ <f2 project="junit" />
213
+ </target>
214
+
215
+ <target name="xml"
216
+ description="load full XML libraries (xalan, resolver)"
217
+ depends="init">
218
+ <f2 project="xalan" />
219
+ <f2 project="xml-resolver" />
220
+ </target>
221
+
222
+ <target name="networking"
223
+ description="load networking libraries (commons-net; jsch)"
224
+ depends="init">
225
+ <f2 project="commons-net" />
226
+ <f2 project="com.jcraft" archive="jsch"/>
227
+ </target>
228
+
229
+ <target name="regexp"
230
+ description="load regexp libraries"
231
+ depends="init">
232
+ <f2 project="regexp" />
233
+ <f2 project="oro" />
234
+ </target>
235
+
236
+ <target name="antlr"
237
+ description="load antlr libraries"
238
+ depends="init">
239
+ <f2 project="antlr" />
240
+ </target>
241
+
242
+ <target name="bcel"
243
+ description="load bcel libraries"
244
+ depends="init">
245
+ <f2 project="bcel" />
246
+ </target>
247
+
248
+ <target name="jdepend"
249
+ description="load jdepend libraries"
250
+ depends="init">
251
+ <f2 project="jdepend" />
252
+ </target>
253
+
254
+ <target name="bsf"
255
+ description="load bsf libraries"
256
+ depends="init">
257
+ <f2 project="bsf" />
258
+ </target>
259
+
260
+ <target name="jruby"
261
+ description="load jruby"
262
+ depends="bsf">
263
+ <f2 project="org.jruby" archive="jruby"/>
264
+ </target>
265
+
266
+ <target name="beanshell"
267
+ description="load beanshell support"
268
+ depends="bsf">
269
+ <f2 project="org.beanshell" archive="bsh"/>
270
+ <f2 project="org.beanshell" archive="bsh-core"/>
271
+ </target>
272
+
273
+ <target name="jython"
274
+ description="load jython"
275
+ depends="bsf">
276
+ <f2 project="jython" archive="jython"/>
277
+ </target>
278
+
279
+ <target name="rhino"
280
+ description="load rhino"
281
+ depends="bsf">
282
+ <f2 project="rhino" archive="js"/>
283
+ </target>
284
+
285
+ <target name="script"
286
+ description="load script languages (except jython)"
287
+ depends="bsf,jruby,beanshell,rhino"/>
288
+
289
+ <target name="debugging"
290
+ description="internal ant debugging"
291
+ depends="init">
292
+ <f2 project="which" />
293
+ </target>
294
+
295
+ <target name="javamail" depends="init"
296
+ description="load javamail">
297
+ <f2 project="javax.mail" archive="mail"/>
298
+ </target>
299
+
300
+ <target name="jspc" depends="init" description="loads Jasper">
301
+ <f2 project="tomcat" archive="jasper-compiler"/>
302
+ <f2 project="tomcat" archive="jasper-runtime"/>
303
+ <f2 project="javax.servlet" archive="servlet-api"/>
304
+ </target>
305
+
306
+ <target name="jai" depends="init"
307
+ description="load java advanced imaging">
308
+ <f2 project="javax.media" archive="jai-core" repository="https://repository.jboss.org/nexus/content/groups/public/"/>
309
+ <f2 project="com.sun.media" archive="jai-codec" repository="https://repository.jboss.org/nexus/content/groups/public/"/>
310
+ </target>
311
+
312
+ <target name="netrexx" depends="init-no-m2,-setup-temp-cache,-fetch-netrexx,-fetch-netrexx-no-commons-net"
313
+ description="load NetRexx compiler">
314
+ <copy todir="${dest.dir}" flatten="true">
315
+ <zipfileset src="${temp.dir}/NetRexx.zip">
316
+ <include name="NetRexx\lib\NetRexxC.jar" />
317
+ <include name="NetRexx\browse\license.txt" />
318
+ </zipfileset>
319
+ </copy>
320
+ <antcall target="-cleanup-temp-cache"/>
321
+ </target>
322
+ <available property="have.commons.net" classname="org.apache.commons.net.ftp.FTPClientConfig"/>
323
+ <target name="-fetch-netrexx" if="have.commons.net">
324
+ <get-ftp-file host="ftp.software.ibm.com" remotedir="/software/awdtools/netrexx"
325
+ filename="NetRexx.zip" localdir="${temp.dir}" />
326
+ </target>
327
+ <target name="-fetch-netrexx-no-commons-net" unless="have.commons.net">
328
+ <get src="ftp://ftp.software.ibm.com/software/awdtools/netrexx/NetRexx.zip" dest="${temp.dir}/NetRexx.zip" skipexisting="true"/>
329
+ </target>
330
+
331
+ <target name="all"
332
+ description="load all the libraries (except jython)"
333
+ depends="logging,junit,xml,networking,regexp,antlr,bcel,jdepend,bsf,debugging,script,javamail,jspc,jai,netrexx" />
334
+
335
+ </project>