buildr-tomcat 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/README.md +33 -13
  2. data/lib/tomcat.rb +0 -1
  3. metadata +40 -21
data/README.md CHANGED
@@ -5,30 +5,50 @@ buildr-tomcat provides a plugin for Buildr that allows you to run a war-packaged
5
5
 
6
6
  It is largely based on the Jetty plugin, but is somewhat simplified.
7
7
 
8
- Installation:
8
+ Installation
9
+ ------------
9
10
 
10
11
  git clone https://github.com/technophobia/buildr-tomcat.git
11
12
  cd buildr-tomcat
12
13
  ./build.sh
14
+ gem install ./buildr-tomcat-0.0.1.gem
13
15
 
14
- Example:
16
+ Usage
17
+ -----
15
18
 
16
19
  require 'tomcat'
20
+
21
+ ...
17
22
 
18
- define "my-webapp" do
19
- compile.with # some dependencies here
20
- package(:war)
23
+ desc 'This is my project'
21
24
 
22
- task('tomcat') do |task|
23
- name = 'my-webapp'
24
- Buildr::Tomcat::explode(self)
25
- Buildr::Tomcat.new(name, "http://localhost:8084/#{name}", "#{name}/target/#{name}-#{VERSION_NUMBER}").run
25
+ define 'MyProject' do
26
26
 
27
- trap 'SIGINT' do
28
- puts "Stopping Tomcat"
29
- tomcat.stop
27
+ define "my-webapp" do
28
+ compile.with # some dependencies here
29
+ package(:war)
30
+
31
+ task('tomcat') do |task|
32
+ name = 'my-webapp'
33
+ Buildr::Tomcat::explode(self)
34
+ Buildr::Tomcat.new(name, "http://localhost:8084/#{name}", "#{name}/target/#{name}-#{VERSION_NUMBER}").run
35
+
36
+ trap 'SIGINT' do
37
+ puts "Stopping Tomcat"
38
+ tomcat.stop
39
+ end
40
+ Thread.stop
30
41
  end
31
- Thread.stop
32
42
  end
43
+
44
+ ...
45
+
33
46
  end
34
47
 
48
+ Modification
49
+ ------------
50
+ If you need to modify the Java code (in *java/src/main/java*), there's a Buildr *buildfile* in *java/*.
51
+ Simply execute '''buildr eclipse''' to generate the necessary Eclipse project files, and import as usual.
52
+ (You can do IDEA too, if that's your thing).
53
+
54
+ You can rebuild the whole thing (including the Java) and repackage as a Gem by running '''build.sh'''.
data/lib/tomcat.rb CHANGED
@@ -10,7 +10,6 @@ class Tomcat
10
10
 
11
11
  TOMCAT_VERSION = '7.0.21'
12
12
  TOMCAT = [ "org.apache.tomcat.embed:tomcat-embed-jasper:jar:#{TOMCAT_VERSION}", "org.apache.tomcat:tomcat-catalina:jar:#{TOMCAT_VERSION}", "org.apache.tomcat:tomcat-jasper:jar:#{TOMCAT_VERSION}", "org.apache.tomcat:tomcat-servlet-api:jar:#{TOMCAT_VERSION}", "org.apache.tomcat.embed:tomcat-embed-core:jar:#{TOMCAT_VERSION}", "org.apache.tomcat.embed:tomcat-embed-logging-log4j:jar:#{TOMCAT_VERSION}" ]
13
- TOMCAT << 'buildr-tomcat:buildr-tomcat:jar:1.0.0'
14
13
 
15
14
  Java.classpath << File.dirname(__FILE__)
16
15
  Java.classpath << TOMCAT
metadata CHANGED
@@ -1,52 +1,71 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: buildr-tomcat
3
- version: !ruby/object:Gem::Version
4
- version: 0.0.1
3
+ version: !ruby/object:Gem::Version
4
+ hash: 27
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 2
10
+ version: 0.0.2
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Rory Gibson
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2012-07-26 00:00:00.000000000 Z
17
+
18
+ date: 2012-07-26 00:00:00 Z
13
19
  dependencies: []
14
- description: ! " Provides the ability to run a war-packaged artifact using an embedded
15
- Tomcat. \n"
20
+
21
+ description: " Provides the ability to run a war-packaged artifact using an embedded Tomcat. \n"
16
22
  email: rgibson@technophobia.com
17
23
  executables: []
24
+
18
25
  extensions: []
26
+
19
27
  extra_rdoc_files: []
20
- files:
28
+
29
+ files:
21
30
  - README.md
22
31
  - Rakefile
23
32
  - COPYING.LESSER
24
- - lib/tomcat.rb
25
33
  - lib/com/technophobia/buildr/tomcat/TomcatWrapper$2.class
26
- - lib/com/technophobia/buildr/tomcat/TomcatWrapper.class
27
34
  - lib/com/technophobia/buildr/tomcat/TomcatWrapper$1.class
35
+ - lib/com/technophobia/buildr/tomcat/TomcatWrapper.class
36
+ - lib/tomcat.rb
28
37
  homepage: http://github.com/technophobia/buildr-tomcat
29
38
  licenses: []
39
+
30
40
  post_install_message:
31
41
  rdoc_options: []
32
- require_paths:
42
+
43
+ require_paths:
33
44
  - lib
34
- required_ruby_version: !ruby/object:Gem::Requirement
45
+ required_ruby_version: !ruby/object:Gem::Requirement
35
46
  none: false
36
- requirements:
37
- - - ! '>='
38
- - !ruby/object:Gem::Version
39
- version: '0'
40
- required_rubygems_version: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ hash: 3
51
+ segments:
52
+ - 0
53
+ version: "0"
54
+ required_rubygems_version: !ruby/object:Gem::Requirement
41
55
  none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: '0'
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ hash: 3
60
+ segments:
61
+ - 0
62
+ version: "0"
46
63
  requirements: []
64
+
47
65
  rubyforge_project:
48
66
  rubygems_version: 1.8.24
49
67
  signing_key:
50
68
  specification_version: 3
51
69
  summary: Tomcat plugin for Buildr
52
70
  test_files: []
71
+