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
data/lib/tetra/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
 
3
3
  # base module for tetra
4
4
  module Tetra
5
- VERSION = "0.46.0"
5
+ VERSION = "0.48.0"
6
6
  end
@@ -0,0 +1,36 @@
1
+ # encoding: UTF-8
2
+
3
+ require "spec_helper"
4
+
5
+ describe Tetra::Ant do
6
+ include Tetra::Mockers
7
+
8
+ before(:each) do
9
+ create_mock_project
10
+ @path = create_mock_executable("ant")
11
+ end
12
+
13
+ let(:instance) { Tetra::Ant.new(".", mock_executable_path("ant")) }
14
+
15
+ after(:each) do
16
+ delete_mock_project
17
+ end
18
+
19
+ describe "#get_ant_commandline" do
20
+ it "returns commandline options for running Ant" do
21
+ @project.from_directory do
22
+ commandline = instance.get_ant_commandline([])
23
+ expect(commandline).to eq "./#{@path} "
24
+ end
25
+ end
26
+ end
27
+
28
+ describe "#ant" do
29
+ it "runs Ant" do
30
+ @project.from_directory do
31
+ instance.ant(["extra-option"])
32
+ expect(File.read("test_out").strip).to match(/extra-option$/)
33
+ end
34
+ end
35
+ end
36
+ end
@@ -29,7 +29,7 @@ describe Tetra::Archivable do
29
29
  instance._to_archive(@project, "test-package", "kit", @project.packages_dir)
30
30
 
31
31
  @project.from_directory do
32
- expect(`tar -Jtf packages/test-package/test-package.tar.xz`.split).to include("kit_test")
32
+ expect(`tar -Jtf packages/test-package/test-package.tar.xz`.split).to include("./kit_test")
33
33
  end
34
34
  end
35
35
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  require "spec_helper"
4
4
 
5
- describe Tetra::BuiltPackage do
5
+ describe Tetra::Package do
6
6
  include Tetra::Mockers
7
7
 
8
8
  before(:each) do
@@ -11,7 +11,7 @@ describe Tetra::BuiltPackage do
11
11
  Dir.chdir(@project_path) do
12
12
  FileUtils.touch(File.join("kit", "jars", "test.jar"))
13
13
  end
14
- @project.finish(false)
14
+ @project.finish
15
15
 
16
16
  @project.from_directory do
17
17
  FileUtils.mkdir_p(File.join("src", "out"))
@@ -28,12 +28,12 @@ describe Tetra::BuiltPackage do
28
28
  FileUtils.touch(File.join("src", "out", "test#{i}.jar"))
29
29
  end
30
30
 
31
- @project.finish(false)
31
+ @project.finish
32
32
  end
33
33
 
34
34
  FileUtils.copy(File.join("spec", "data", "nailgun", "pom.xml"), @project_path)
35
35
 
36
- @package = Tetra::BuiltPackage.new(@project, File.join(@project_path, "pom.xml"), "*.jar")
36
+ @package = Tetra::Package.new(@project, File.join(@project_path, "pom.xml"), "*.jar")
37
37
  end
38
38
 
39
39
  after(:each) do
@@ -62,11 +62,11 @@ describe Tetra::BuiltPackage do
62
62
  @project.from_directory("src") do
63
63
  FileUtils.touch("src_test")
64
64
  end
65
- @project.finish(false)
65
+ @project.finish
66
66
 
67
67
  @package.to_archive
68
68
  @project.from_directory do
69
- expect(`tar -Jtf packages/test-project/test-project.tar.xz`.split).to include("src_test")
69
+ expect(`tar -Jtf packages/test-project/test-project.tar.xz`.split).to include("./src_test")
70
70
  end
71
71
  end
72
72
  end
@@ -0,0 +1,47 @@
1
+ # encoding: UTF-8
2
+
3
+ require "spec_helper"
4
+
5
+ describe Tetra::KitPackage do
6
+ include Tetra::Mockers
7
+
8
+ before(:each) do
9
+ create_mock_project
10
+ end
11
+
12
+ after(:each) do
13
+ delete_mock_project
14
+ end
15
+
16
+ let(:instance) { Tetra::KitPackage.new(@project) }
17
+ let(:package_name) { instance.name }
18
+
19
+ describe "#to_spec" do
20
+ it "generates a specfile" do
21
+ expect(instance.to_spec).to be_truthy
22
+
23
+ @project.from_directory do
24
+ spec_lines = File.readlines(File.join("packages", package_name, "#{package_name}.spec"))
25
+
26
+ expect(spec_lines).to include("Conflicts: otherproviders(tetra-kit)\n")
27
+ expect(spec_lines).to include("Provides: tetra-kit\n")
28
+ end
29
+ end
30
+ end
31
+
32
+ describe "#to_archive" do
33
+ it "generates an archive" do
34
+ @project.from_directory(File.join("kit", "m2")) do
35
+ FileUtils.touch("kit.content")
36
+ end
37
+
38
+ expected_filename = File::SEPARATOR + "#{package_name}.tar.xz"
39
+ expect(instance.to_archive).to end_with(expected_filename)
40
+
41
+ @project.from_directory do
42
+ contents = `tar --list -f packages/#{package_name}/#{package_name}.tar.xz`.split
43
+ expect(contents).to include("./m2/kit.content")
44
+ end
45
+ end
46
+ end
47
+ end
data/spec/lib/kit_spec.rb CHANGED
@@ -9,39 +9,19 @@ describe Tetra::Kit do
9
9
  create_mock_project
10
10
  end
11
11
 
12
+ let(:instance) { Tetra::Kit.new(@project) }
13
+
12
14
  after(:each) do
13
15
  delete_mock_project
14
16
  end
15
17
 
16
- let(:instance) { Tetra::Kit.new(@project) }
17
- let(:package_name) { instance.name }
18
-
19
- describe "#to_spec" do
20
- it "generates a specfile" do
21
- expect(instance.to_spec).to be_truthy
22
-
23
- @project.from_directory do
24
- spec_lines = File.readlines(File.join("packages", package_name, "#{package_name}.spec"))
25
-
26
- expect(spec_lines).to include("Conflicts: otherproviders(tetra-kit)\n")
27
- expect(spec_lines).to include("Provides: tetra-kit\n")
28
- end
18
+ describe "#find_executable" do
19
+ it "finds an executable in kit" do
20
+ executable_path = create_mock_executable("any")
21
+ expect(instance.find_executable("any")).to eq executable_path
29
22
  end
30
- end
31
-
32
- describe "#to_archive" do
33
- it "generates an archive" do
34
- @project.from_directory(File.join("kit", "m2")) do
35
- FileUtils.touch("kit.content")
36
- end
37
-
38
- expected_filename = File::SEPARATOR + "#{package_name}.tar.xz"
39
- expect(instance.to_archive).to end_with(expected_filename)
40
-
41
- @project.from_directory do
42
- contents = `tar --list -f packages/#{package_name}/#{package_name}.tar.xz`.split
43
- expect(contents).to include("m2/kit.content")
44
- end
23
+ it "doesn't find an executable in kit" do
24
+ expect { instance.find_executable("any") }.to raise_error(Tetra::ExecutableNotFoundError)
45
25
  end
46
26
  end
47
27
  end
@@ -0,0 +1,47 @@
1
+ # encoding: UTF-8
2
+
3
+ require "spec_helper"
4
+
5
+ describe Tetra::Mvn do
6
+ include Tetra::Mockers
7
+
8
+ before(:each) do
9
+ create_mock_project
10
+ @path = create_mock_executable("mvn")
11
+ end
12
+
13
+ let(:instance) { Tetra::Mvn.new(".", mock_executable_path("mvn")) }
14
+
15
+ after(:each) do
16
+ delete_mock_project
17
+ end
18
+
19
+ describe "#get_mvn_commandline" do
20
+ it "returns commandline options for running maven" do
21
+ @project.from_directory do
22
+ commandline = instance.get_mvn_commandline(["--otheroption"])
23
+ expected_commandline = "./#{@path} -Dmaven.repo.local=./kit/m2 --settings \
24
+ ./kit/m2/settings.xml --strict-checksums --otheroption"
25
+ expect(commandline).to eq expected_commandline
26
+ end
27
+ end
28
+ end
29
+
30
+ describe "#mvn" do
31
+ it "runs maven" do
32
+ @project.from_directory do
33
+ instance.mvn(["extra-option"])
34
+ expect(File.read("test_out").strip).to match(/extra-option$/)
35
+ end
36
+ end
37
+ end
38
+
39
+ describe "#get_effective_pom" do
40
+ it "runs maven to get an effective pom" do
41
+ @project.from_directory do
42
+ expect(instance.get_effective_pom("test.pom")).to eq "test.pom.effective"
43
+ expect(File.read("test_out").strip).to match(/help:effective-pom -ftest.pom -Doutput=test.pom.effective$/)
44
+ end
45
+ end
46
+ end
47
+ end
@@ -57,7 +57,7 @@ describe Tetra::Project do
57
57
  expect(@project.dry_running?).to be_falsey
58
58
  @project.dry_run
59
59
  expect(@project.dry_running?).to be_truthy
60
- @project.finish(false)
60
+ @project.finish
61
61
  expect(@project.dry_running?).to be_falsey
62
62
  end
63
63
  end
@@ -90,8 +90,8 @@ describe Tetra::Project do
90
90
  File.open(File.join("src", "test"), "w") { |f| f.write("A") }
91
91
  end
92
92
 
93
- expect(@project.finish(true)).to be_falsey
94
- expect(@project.finish(false)).to be_falsey
93
+ expect(@project.abort).to be_falsey
94
+ expect(@project.finish).to be_falsey
95
95
 
96
96
  expect(@project.dry_run).to be_truthy
97
97
 
@@ -100,7 +100,7 @@ describe Tetra::Project do
100
100
  FileUtils.touch(File.join("src", "test2"))
101
101
  end
102
102
 
103
- expect(@project.finish(false)).to be_truthy
103
+ expect(@project.finish).to be_truthy
104
104
  expect(@project.dry_running?).to be_falsey
105
105
 
106
106
  @project.from_directory do
@@ -117,8 +117,8 @@ describe Tetra::Project do
117
117
  File.open(File.join("kit", "test"), "w") { |f| f.write("A") }
118
118
  end
119
119
 
120
- expect(@project.finish(true)).to be_falsey
121
- expect(@project.finish(false)).to be_falsey
120
+ expect(@project.abort).to be_falsey
121
+ expect(@project.finish).to be_falsey
122
122
 
123
123
  expect(@project.dry_run).to be_truthy
124
124
 
@@ -129,7 +129,7 @@ describe Tetra::Project do
129
129
  FileUtils.touch(File.join("kit", "test2"))
130
130
  end
131
131
 
132
- expect(@project.finish(true)).to be_truthy
132
+ expect(@project.abort).to be_truthy
133
133
  expect(@project.dry_running?).to be_falsey
134
134
 
135
135
  @project.from_directory do
@@ -145,7 +145,7 @@ describe Tetra::Project do
145
145
 
146
146
  describe "#dry_run" do
147
147
  it "starts a dry running phase" do
148
- expect(@project.finish(false)).to be_falsey
148
+ expect(@project.finish).to be_falsey
149
149
 
150
150
  @project.from_directory do
151
151
  FileUtils.touch(File.join("src", "test"))
@@ -175,13 +175,13 @@ describe Tetra::Project do
175
175
  File.open(File.join("src", "added_in_first_dry_run"), "w") { |f| f.write("A") }
176
176
  File.open("added_outside_directory", "w") { |f| f.write("A") }
177
177
  end
178
- expect(@project.finish(false)).to be_truthy
178
+ expect(@project.finish).to be_truthy
179
179
 
180
180
  expect(@project.dry_run).to be_truthy
181
181
  @project.from_directory do
182
182
  File.open(File.join("src", "added_in_second_dry_run"), "w") { |f| f.write("A") }
183
183
  end
184
- expect(@project.finish(false)).to be_truthy
184
+ expect(@project.finish).to be_truthy
185
185
 
186
186
  list = @project.produced_files
187
187
  expect(list).to include("added_in_first_dry_run")
@@ -197,7 +197,7 @@ describe Tetra::Project do
197
197
  @project.from_directory do
198
198
  File.open(File.join("src", "test.jar"), "w") { |f| f.write("jarring") }
199
199
  end
200
- expect(@project.finish(false)).to be_falsey
200
+ expect(@project.finish).to be_falsey
201
201
 
202
202
  @project.purge_jars
203
203
 
@@ -11,10 +11,10 @@ describe Tetra::Scriptable do
11
11
  @project.from_directory do
12
12
  File.open("history", "w") do |io|
13
13
  io.puts "some earlier command"
14
- io.puts "tetra dry-run --unwanted-options"
14
+ io.puts "tetra dry-run start --unwanted-options"
15
15
  io.puts "cd somewhere significant"
16
16
  io.puts "tetra mvn --options"
17
- io.puts "tetra finish -a"
17
+ io.puts "tetra dry-run finish -a"
18
18
  io.puts "some later command"
19
19
  end
20
20
 
@@ -22,7 +22,8 @@ describe Tetra::Scriptable do
22
22
  @project.dry_run
23
23
  end
24
24
 
25
- mock_maven_executable
25
+ create_mock_executable("ant")
26
+ create_mock_executable("mvn")
26
27
  end
27
28
 
28
29
  after(:each) do
@@ -32,15 +33,16 @@ describe Tetra::Scriptable do
32
33
  describe "#generate_build_script" do
33
34
  it "generates a build script from the history" do
34
35
  @project.from_directory do
35
- @package = Tetra::BuiltPackage.new(@project)
36
+ @package = Tetra::Package.new(@project)
36
37
  @package.to_script("history")
37
38
 
38
39
  lines = File.readlines(File.join("packages", "test-project", "build.sh"))
39
40
 
40
41
  expect(lines).to include("#!/bin/bash\n")
41
42
  expect(lines).to include("cd somewhere significant\n")
42
- expect(lines).to include("$PROJECT_PREFIX/kit/mvn/bin/mvn -Dmaven.repo.local=$PROJECT_PREFIX/kit/m2 " \
43
- "-s$PROJECT_PREFIX/kit/m2/settings.xml -o --options\n"
43
+ expect(lines).to include("$PROJECT_PREFIX/kit/apache-maven-3.2.5/bin/mvn \
44
+ -Dmaven.repo.local=$PROJECT_PREFIX/kit/m2 --settings $PROJECT_PREFIX/kit/m2/settings.xml \
45
+ --strict-checksums -o --options\n"
44
46
  )
45
47
 
46
48
  expect(lines).not_to include("some earlier command\n")
@@ -51,14 +53,4 @@ describe Tetra::Scriptable do
51
53
  end
52
54
  end
53
55
  end
54
-
55
- def mock_maven_executable
56
- Dir.chdir(@project_path) do
57
- @bin_dir = File.join("kit", "mvn", "bin")
58
- FileUtils.mkdir_p(@bin_dir)
59
- @maven_executable = File.join(@bin_dir, "mvn")
60
- File.open(@maven_executable, "w") { |io| io.puts "echo $0 $*>test_out" }
61
- File.chmod(0777, @maven_executable)
62
- end
63
- end
64
56
  end
data/spec/spec_helper.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  # encoding: UTF-8
2
2
 
3
3
  require "tetra"
4
- Dir["./spec/support/**/*.rb"].sort.each { |f| require f }
5
4
 
6
5
  module Tetra
7
6
  # custom mock methods
@@ -25,13 +24,23 @@ module Tetra
25
24
  # full path
26
25
  def create_mock_executable(executable_name)
27
26
  Dir.chdir(@project_path) do
28
- bin_dir = File.join("kit", executable_name, "bin")
29
- FileUtils.mkdir_p(bin_dir)
30
- executable_path = File.join(bin_dir, executable_name)
27
+ dir = mock_executable_dir(executable_name)
28
+ FileUtils.mkdir_p(dir)
29
+ executable_path = mock_executable_path(executable_name)
31
30
  File.open(executable_path, "w") { |io| io.puts "echo $0 $*>test_out" }
32
31
  File.chmod(0777, executable_path)
33
32
  executable_path
34
33
  end
35
34
  end
35
+
36
+ # returns the path for a mocked executable's directory
37
+ def mock_executable_dir(executable_name)
38
+ File.join("kit", executable_name, "bin")
39
+ end
40
+
41
+ # returns the path for a mocked executable
42
+ def mock_executable_path(executable_name)
43
+ File.join(mock_executable_dir(executable_name), executable_name)
44
+ end
36
45
  end
37
46
  end
data/tetra.gemspec CHANGED
@@ -28,4 +28,5 @@ Gem::Specification.new do |s|
28
28
  s.add_runtime_dependency "json"
29
29
  s.add_runtime_dependency "text"
30
30
  s.add_runtime_dependency "nokogiri"
31
+ s.add_runtime_dependency "open4"
31
32
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tetra
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.46.0
4
+ version: 0.48.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-12-31 00:00:00.000000000 Z
12
+ date: 2015-01-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -139,6 +139,22 @@ dependencies:
139
139
  - - ! '>='
140
140
  - !ruby/object:Gem::Version
141
141
  version: '0'
142
+ - !ruby/object:Gem::Dependency
143
+ name: open4
144
+ requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ! '>='
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
150
+ type: :runtime
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ! '>='
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
142
158
  description: Tetra simplifies the creation of spec files and archives to distribute
143
159
  Java projects in RPM format
144
160
  email:
@@ -165,45 +181,207 @@ files:
165
181
  - lib/template/gitignore
166
182
  - lib/template/kit.spec
167
183
  - lib/template/kit/CONTENTS
184
+ - lib/template/kit/apache-ant-1.9.4/INSTALL
185
+ - lib/template/kit/apache-ant-1.9.4/KEYS
186
+ - lib/template/kit/apache-ant-1.9.4/LICENSE
187
+ - lib/template/kit/apache-ant-1.9.4/NOTICE
188
+ - lib/template/kit/apache-ant-1.9.4/README
189
+ - lib/template/kit/apache-ant-1.9.4/WHATSNEW
190
+ - lib/template/kit/apache-ant-1.9.4/bin/ant
191
+ - lib/template/kit/apache-ant-1.9.4/bin/ant.bat
192
+ - lib/template/kit/apache-ant-1.9.4/bin/ant.cmd
193
+ - lib/template/kit/apache-ant-1.9.4/bin/antRun
194
+ - lib/template/kit/apache-ant-1.9.4/bin/antRun.bat
195
+ - lib/template/kit/apache-ant-1.9.4/bin/antRun.pl
196
+ - lib/template/kit/apache-ant-1.9.4/bin/antenv.cmd
197
+ - lib/template/kit/apache-ant-1.9.4/bin/complete-ant-cmd.pl
198
+ - lib/template/kit/apache-ant-1.9.4/bin/envset.cmd
199
+ - lib/template/kit/apache-ant-1.9.4/bin/lcp.bat
200
+ - lib/template/kit/apache-ant-1.9.4/bin/runant.pl
201
+ - lib/template/kit/apache-ant-1.9.4/bin/runant.py
202
+ - lib/template/kit/apache-ant-1.9.4/bin/runrc.cmd
203
+ - lib/template/kit/apache-ant-1.9.4/etc/ant-bootstrap.jar
204
+ - lib/template/kit/apache-ant-1.9.4/etc/changelog.xsl
205
+ - lib/template/kit/apache-ant-1.9.4/etc/checkstyle/checkstyle-frames.xsl
206
+ - lib/template/kit/apache-ant-1.9.4/etc/checkstyle/checkstyle-text.xsl
207
+ - lib/template/kit/apache-ant-1.9.4/etc/checkstyle/checkstyle-xdoc.xsl
208
+ - lib/template/kit/apache-ant-1.9.4/etc/coverage-frames.xsl
209
+ - lib/template/kit/apache-ant-1.9.4/etc/jdepend-frames.xsl
210
+ - lib/template/kit/apache-ant-1.9.4/etc/jdepend.xsl
211
+ - lib/template/kit/apache-ant-1.9.4/etc/junit-frames-xalan1.xsl
212
+ - lib/template/kit/apache-ant-1.9.4/etc/junit-frames.xsl
213
+ - lib/template/kit/apache-ant-1.9.4/etc/junit-noframes.xsl
214
+ - lib/template/kit/apache-ant-1.9.4/etc/log.xsl
215
+ - lib/template/kit/apache-ant-1.9.4/etc/maudit-frames.xsl
216
+ - lib/template/kit/apache-ant-1.9.4/etc/mmetrics-frames.xsl
217
+ - lib/template/kit/apache-ant-1.9.4/etc/tagdiff.xsl
218
+ - lib/template/kit/apache-ant-1.9.4/fetch.xml
219
+ - lib/template/kit/apache-ant-1.9.4/get-m2.xml
220
+ - lib/template/kit/apache-ant-1.9.4/lib/README
221
+ - lib/template/kit/apache-ant-1.9.4/lib/ant-antlr.jar
222
+ - lib/template/kit/apache-ant-1.9.4/lib/ant-antlr.pom
223
+ - lib/template/kit/apache-ant-1.9.4/lib/ant-apache-bcel.jar
224
+ - lib/template/kit/apache-ant-1.9.4/lib/ant-apache-bcel.pom
225
+ - lib/template/kit/apache-ant-1.9.4/lib/ant-apache-bsf.jar
226
+ - lib/template/kit/apache-ant-1.9.4/lib/ant-apache-bsf.pom
227
+ - lib/template/kit/apache-ant-1.9.4/lib/ant-apache-log4j.jar
228
+ - lib/template/kit/apache-ant-1.9.4/lib/ant-apache-log4j.pom
229
+ - lib/template/kit/apache-ant-1.9.4/lib/ant-apache-oro.jar
230
+ - lib/template/kit/apache-ant-1.9.4/lib/ant-apache-oro.pom
231
+ - lib/template/kit/apache-ant-1.9.4/lib/ant-apache-regexp.jar
232
+ - lib/template/kit/apache-ant-1.9.4/lib/ant-apache-regexp.pom
233
+ - lib/template/kit/apache-ant-1.9.4/lib/ant-apache-resolver.jar
234
+ - lib/template/kit/apache-ant-1.9.4/lib/ant-apache-resolver.pom
235
+ - lib/template/kit/apache-ant-1.9.4/lib/ant-apache-xalan2.jar
236
+ - lib/template/kit/apache-ant-1.9.4/lib/ant-apache-xalan2.pom
237
+ - lib/template/kit/apache-ant-1.9.4/lib/ant-commons-logging.jar
238
+ - lib/template/kit/apache-ant-1.9.4/lib/ant-commons-logging.pom
239
+ - lib/template/kit/apache-ant-1.9.4/lib/ant-commons-net.jar
240
+ - lib/template/kit/apache-ant-1.9.4/lib/ant-commons-net.pom
241
+ - lib/template/kit/apache-ant-1.9.4/lib/ant-jai.jar
242
+ - lib/template/kit/apache-ant-1.9.4/lib/ant-jai.pom
243
+ - lib/template/kit/apache-ant-1.9.4/lib/ant-javamail.jar
244
+ - lib/template/kit/apache-ant-1.9.4/lib/ant-javamail.pom
245
+ - lib/template/kit/apache-ant-1.9.4/lib/ant-jdepend.jar
246
+ - lib/template/kit/apache-ant-1.9.4/lib/ant-jdepend.pom
247
+ - lib/template/kit/apache-ant-1.9.4/lib/ant-jmf.jar
248
+ - lib/template/kit/apache-ant-1.9.4/lib/ant-jmf.pom
249
+ - lib/template/kit/apache-ant-1.9.4/lib/ant-jsch.jar
250
+ - lib/template/kit/apache-ant-1.9.4/lib/ant-jsch.pom
251
+ - lib/template/kit/apache-ant-1.9.4/lib/ant-junit.jar
252
+ - lib/template/kit/apache-ant-1.9.4/lib/ant-junit.pom
253
+ - lib/template/kit/apache-ant-1.9.4/lib/ant-junit4.jar
254
+ - lib/template/kit/apache-ant-1.9.4/lib/ant-junit4.pom
255
+ - lib/template/kit/apache-ant-1.9.4/lib/ant-launcher.jar
256
+ - lib/template/kit/apache-ant-1.9.4/lib/ant-launcher.pom
257
+ - lib/template/kit/apache-ant-1.9.4/lib/ant-netrexx.jar
258
+ - lib/template/kit/apache-ant-1.9.4/lib/ant-netrexx.pom
259
+ - lib/template/kit/apache-ant-1.9.4/lib/ant-parent.pom
260
+ - lib/template/kit/apache-ant-1.9.4/lib/ant-swing.jar
261
+ - lib/template/kit/apache-ant-1.9.4/lib/ant-swing.pom
262
+ - lib/template/kit/apache-ant-1.9.4/lib/ant-testutil.jar
263
+ - lib/template/kit/apache-ant-1.9.4/lib/ant-testutil.pom
264
+ - lib/template/kit/apache-ant-1.9.4/lib/ant.jar
265
+ - lib/template/kit/apache-ant-1.9.4/lib/ant.pom
266
+ - lib/template/kit/apache-ant-1.9.4/lib/libraries.properties
267
+ - lib/template/kit/apache-maven-3.2.5/LICENSE
268
+ - lib/template/kit/apache-maven-3.2.5/NOTICE
269
+ - lib/template/kit/apache-maven-3.2.5/README.txt
270
+ - lib/template/kit/apache-maven-3.2.5/bin/m2.conf
271
+ - lib/template/kit/apache-maven-3.2.5/bin/mvn
272
+ - lib/template/kit/apache-maven-3.2.5/bin/mvn.bat
273
+ - lib/template/kit/apache-maven-3.2.5/bin/mvnDebug
274
+ - lib/template/kit/apache-maven-3.2.5/bin/mvnDebug.bat
275
+ - lib/template/kit/apache-maven-3.2.5/bin/mvnyjp
276
+ - lib/template/kit/apache-maven-3.2.5/boot/plexus-classworlds-2.5.2.jar
277
+ - lib/template/kit/apache-maven-3.2.5/conf/logging/simplelogger.properties
278
+ - lib/template/kit/apache-maven-3.2.5/conf/settings.xml
279
+ - lib/template/kit/apache-maven-3.2.5/lib/aether-api-1.0.0.v20140518.jar
280
+ - lib/template/kit/apache-maven-3.2.5/lib/aether-api.license
281
+ - lib/template/kit/apache-maven-3.2.5/lib/aether-connector-basic-1.0.0.v20140518.jar
282
+ - lib/template/kit/apache-maven-3.2.5/lib/aether-connector-basic.license
283
+ - lib/template/kit/apache-maven-3.2.5/lib/aether-impl-1.0.0.v20140518.jar
284
+ - lib/template/kit/apache-maven-3.2.5/lib/aether-impl.license
285
+ - lib/template/kit/apache-maven-3.2.5/lib/aether-spi-1.0.0.v20140518.jar
286
+ - lib/template/kit/apache-maven-3.2.5/lib/aether-spi.license
287
+ - lib/template/kit/apache-maven-3.2.5/lib/aether-transport-wagon-1.0.0.v20140518.jar
288
+ - lib/template/kit/apache-maven-3.2.5/lib/aether-transport-wagon.license
289
+ - lib/template/kit/apache-maven-3.2.5/lib/aether-util-1.0.0.v20140518.jar
290
+ - lib/template/kit/apache-maven-3.2.5/lib/aether-util.license
291
+ - lib/template/kit/apache-maven-3.2.5/lib/aopalliance-1.0.jar
292
+ - lib/template/kit/apache-maven-3.2.5/lib/cdi-api-1.0.jar
293
+ - lib/template/kit/apache-maven-3.2.5/lib/cdi-api.license
294
+ - lib/template/kit/apache-maven-3.2.5/lib/commons-cli-1.2.jar
295
+ - lib/template/kit/apache-maven-3.2.5/lib/commons-io-2.2.jar
296
+ - lib/template/kit/apache-maven-3.2.5/lib/commons-lang-2.6.jar
297
+ - lib/template/kit/apache-maven-3.2.5/lib/ext/README.txt
298
+ - lib/template/kit/apache-maven-3.2.5/lib/guava-18.0.jar
299
+ - lib/template/kit/apache-maven-3.2.5/lib/javax.inject-1.jar
300
+ - lib/template/kit/apache-maven-3.2.5/lib/jsoup-1.7.2.jar
301
+ - lib/template/kit/apache-maven-3.2.5/lib/jsoup.license
302
+ - lib/template/kit/apache-maven-3.2.5/lib/jsr250-api-1.0.jar
303
+ - lib/template/kit/apache-maven-3.2.5/lib/jsr250-api.license
304
+ - lib/template/kit/apache-maven-3.2.5/lib/maven-aether-provider-3.2.5.jar
305
+ - lib/template/kit/apache-maven-3.2.5/lib/maven-aether-provider.license
306
+ - lib/template/kit/apache-maven-3.2.5/lib/maven-artifact-3.2.5.jar
307
+ - lib/template/kit/apache-maven-3.2.5/lib/maven-artifact.license
308
+ - lib/template/kit/apache-maven-3.2.5/lib/maven-compat-3.2.5.jar
309
+ - lib/template/kit/apache-maven-3.2.5/lib/maven-compat.license
310
+ - lib/template/kit/apache-maven-3.2.5/lib/maven-core-3.2.5.jar
311
+ - lib/template/kit/apache-maven-3.2.5/lib/maven-core.license
312
+ - lib/template/kit/apache-maven-3.2.5/lib/maven-embedder-3.2.5.jar
313
+ - lib/template/kit/apache-maven-3.2.5/lib/maven-embedder.license
314
+ - lib/template/kit/apache-maven-3.2.5/lib/maven-model-3.2.5.jar
315
+ - lib/template/kit/apache-maven-3.2.5/lib/maven-model-builder-3.2.5.jar
316
+ - lib/template/kit/apache-maven-3.2.5/lib/maven-model-builder.license
317
+ - lib/template/kit/apache-maven-3.2.5/lib/maven-model.license
318
+ - lib/template/kit/apache-maven-3.2.5/lib/maven-plugin-api-3.2.5.jar
319
+ - lib/template/kit/apache-maven-3.2.5/lib/maven-plugin-api.license
320
+ - lib/template/kit/apache-maven-3.2.5/lib/maven-repository-metadata-3.2.5.jar
321
+ - lib/template/kit/apache-maven-3.2.5/lib/maven-repository-metadata.license
322
+ - lib/template/kit/apache-maven-3.2.5/lib/maven-settings-3.2.5.jar
323
+ - lib/template/kit/apache-maven-3.2.5/lib/maven-settings-builder-3.2.5.jar
324
+ - lib/template/kit/apache-maven-3.2.5/lib/maven-settings-builder.license
325
+ - lib/template/kit/apache-maven-3.2.5/lib/maven-settings.license
326
+ - lib/template/kit/apache-maven-3.2.5/lib/org.eclipse.sisu.inject-0.3.0.M1.jar
327
+ - lib/template/kit/apache-maven-3.2.5/lib/org.eclipse.sisu.inject.license
328
+ - lib/template/kit/apache-maven-3.2.5/lib/org.eclipse.sisu.plexus-0.3.0.M1.jar
329
+ - lib/template/kit/apache-maven-3.2.5/lib/org.eclipse.sisu.plexus.license
330
+ - lib/template/kit/apache-maven-3.2.5/lib/plexus-cipher-1.7.jar
331
+ - lib/template/kit/apache-maven-3.2.5/lib/plexus-cipher.license
332
+ - lib/template/kit/apache-maven-3.2.5/lib/plexus-component-annotations-1.5.5.jar
333
+ - lib/template/kit/apache-maven-3.2.5/lib/plexus-interpolation-1.21.jar
334
+ - lib/template/kit/apache-maven-3.2.5/lib/plexus-sec-dispatcher-1.3.jar
335
+ - lib/template/kit/apache-maven-3.2.5/lib/plexus-sec-dispatcher.license
336
+ - lib/template/kit/apache-maven-3.2.5/lib/plexus-utils-3.0.20.jar
337
+ - lib/template/kit/apache-maven-3.2.5/lib/sisu-guice-3.2.3-no_aop.jar
338
+ - lib/template/kit/apache-maven-3.2.5/lib/slf4j-api-1.7.5.jar
339
+ - lib/template/kit/apache-maven-3.2.5/lib/slf4j-api.license
340
+ - lib/template/kit/apache-maven-3.2.5/lib/slf4j-simple-1.7.5.jar
341
+ - lib/template/kit/apache-maven-3.2.5/lib/slf4j-simple.license
342
+ - lib/template/kit/apache-maven-3.2.5/lib/wagon-file-2.8.jar
343
+ - lib/template/kit/apache-maven-3.2.5/lib/wagon-file.license
344
+ - lib/template/kit/apache-maven-3.2.5/lib/wagon-http-2.8-shaded.jar
345
+ - lib/template/kit/apache-maven-3.2.5/lib/wagon-http-shared-2.8.jar
346
+ - lib/template/kit/apache-maven-3.2.5/lib/wagon-http-shared.license
347
+ - lib/template/kit/apache-maven-3.2.5/lib/wagon-http.license
348
+ - lib/template/kit/apache-maven-3.2.5/lib/wagon-provider-api-2.8.jar
349
+ - lib/template/kit/apache-maven-3.2.5/lib/wagon-provider-api.license
168
350
  - lib/template/kit/jars/CONTENTS
169
351
  - lib/template/kit/m2/settings.xml
170
352
  - lib/template/package.spec
171
353
  - lib/template/packages/CONTENTS
172
354
  - lib/template/src/CONTENTS
173
355
  - lib/tetra.rb
174
- - lib/tetra/ant_runner.rb
175
- - lib/tetra/commands/ant.rb
176
- - lib/tetra/commands/base.rb
177
- - lib/tetra/commands/download_maven_source_jars.rb
178
- - lib/tetra/commands/dry_run.rb
179
- - lib/tetra/commands/finish.rb
180
- - lib/tetra/commands/generate_all.rb
181
- - lib/tetra/commands/generate_archive.rb
182
- - lib/tetra/commands/generate_kit.rb
183
- - lib/tetra/commands/generate_script.rb
184
- - lib/tetra/commands/generate_spec.rb
185
- - lib/tetra/commands/get_pom.rb
186
- - lib/tetra/commands/get_source.rb
187
- - lib/tetra/commands/init.rb
188
- - lib/tetra/commands/list_kit_missing_sources.rb
189
- - lib/tetra/commands/move_jars_to_kit.rb
190
- - lib/tetra/commands/mvn.rb
191
- - lib/tetra/git.rb
192
- - lib/tetra/kit_checker.rb
193
- - lib/tetra/kit_runner.rb
356
+ - lib/tetra/facades/ant.rb
357
+ - lib/tetra/facades/git.rb
358
+ - lib/tetra/facades/mvn.rb
359
+ - lib/tetra/facades/process_runner.rb
360
+ - lib/tetra/facades/tar.rb
361
+ - lib/tetra/kit.rb
194
362
  - lib/tetra/logger.rb
195
363
  - lib/tetra/main.rb
196
- - lib/tetra/maven_runner.rb
197
364
  - lib/tetra/maven_website.rb
198
365
  - lib/tetra/packages/archivable.rb
199
- - lib/tetra/packages/built_package.rb
200
- - lib/tetra/packages/kit.rb
366
+ - lib/tetra/packages/kit_package.rb
367
+ - lib/tetra/packages/package.rb
201
368
  - lib/tetra/packages/scriptable.rb
202
369
  - lib/tetra/packages/speccable.rb
203
370
  - lib/tetra/pom.rb
204
371
  - lib/tetra/pom_getter.rb
205
372
  - lib/tetra/project.rb
206
- - lib/tetra/source_getter.rb
373
+ - lib/tetra/ui/ant_subcommand.rb
374
+ - lib/tetra/ui/dry_run_subcommand.rb
375
+ - lib/tetra/ui/generate_all_subcommand.rb
376
+ - lib/tetra/ui/generate_archive_subcommand.rb
377
+ - lib/tetra/ui/generate_kit_subcommand.rb
378
+ - lib/tetra/ui/generate_script_subcommand.rb
379
+ - lib/tetra/ui/generate_spec_subcommand.rb
380
+ - lib/tetra/ui/get_pom_subcommand.rb
381
+ - lib/tetra/ui/init_subcommand.rb
382
+ - lib/tetra/ui/move_jars_to_kit_subcommand.rb
383
+ - lib/tetra/ui/mvn_subcommand.rb
384
+ - lib/tetra/ui/subcommand.rb
207
385
  - lib/tetra/version.rb
208
386
  - lib/tetra/version_matcher.rb
209
387
  - spec/data/ant-super-simple-code/build.xml
@@ -222,23 +400,21 @@ files:
222
400
  - spec/data/nailgun/pom.xml
223
401
  - spec/data/struts-apps/pom.xml
224
402
  - spec/data/tomcat/pom.xml
225
- - spec/lib/ant_runner_spec.rb
403
+ - spec/lib/ant_spec.rb
226
404
  - spec/lib/archivable_spec.rb
227
405
  - spec/lib/built_package_spec.rb
228
406
  - spec/lib/git_spec.rb
229
- - spec/lib/kit_checker_spec.rb
407
+ - spec/lib/kit_package_spec.rb
230
408
  - spec/lib/kit_spec.rb
231
- - spec/lib/maven_runner_spec.rb
232
409
  - spec/lib/maven_website_spec.rb
410
+ - spec/lib/mvn_spec.rb
233
411
  - spec/lib/pom_getter_spec.rb
234
412
  - spec/lib/pom_spec.rb
235
413
  - spec/lib/project_spec.rb
236
414
  - spec/lib/scriptable_spec.rb
237
- - spec/lib/source_getter_spec.rb
238
415
  - spec/lib/speccable.rb
239
416
  - spec/lib/version_matcher_spec.rb
240
417
  - spec/spec_helper.rb
241
- - spec/support/kit_runner_examples.rb
242
418
  - tetra.gemspec
243
419
  - utils/delete_nonet_user.sh
244
420
  - utils/setup_nonet_user.sh